oracle
数据库导入导出
exp user/pwd file=expfile.dmp
imp user1/pwd fromuser=user touser=user1 ignore=y file=*.dmp
数据库备份方式
1、物理备份,可实现数据库的完整恢复
2、逻辑备份:表备份、用户备份和完全备份
表
exp user/pwd rows=y indexes=y compress=n file=*.dmp log=*.log tables=employee,employee2
备份完整模式
exp user1/pwd rows=y indexes=y compress=n file=*.dmp log=*.log full=y
注:关于增量备份必须满足下列条件:
1. 只对完整数据库备份有效,且第一次需要full=y参数,以后需要inctype=incremental参数。
2. 用户必须有EXP_FULL_DATABASE的系统角色。
恢复
表
imp user1/pwd fromuser=user touser=user1 ignore=y indexes=y rows=y commit=y file=*.dmp tables=employee,employee2
备份完整模式
imp user1/pwd fromuser=user touser=user1 ignore=y file=*.dmp full=y