`
zhaoshunxin
  • 浏览: 29048 次
  • 来自: 济南
社区版块
存档分类
最新评论

ORACLE 导入导出

 
阅读更多

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

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics