设为首页 加入收藏

TOP

Imp导入与exp导出
2015-07-24 11:09:57 来源: 作者: 【 】 浏览:1
Tags:Imp 导入 exp 导出

按方案导入(须加log文件):
C:\Users\Administrator>exp scott/scott@orcl11g file='d:/temp/1.dmp' log='d:/temp/log.log'

导出注意事项:导出的是当前用户的的数据,当前用户如果有DBA的权限,则导出所有数据!所以 full=y要确定应用环境
C:\Users\Administrator>exp scott/scott@orcl11g file='d:/temp/1.dmp' log='d:/temp/log.log' full=y

导出特定表
C:\Users\Administrator>exp scott/scott@orcl11g file='d:/temp/1.dmp' log='d:/temp/log.log' tables=scott.dept

数据库中system用户与sys用户的表导出
exp scott/scott@orcl11g file=d:\daochu.dmp owner=(system,sys)

数据库中的表emp中的字段empno以"79"打头的数据导出
exp scott/scott@orcl11g file=d:\scott.dmp tables=(emp) query=\" where empno like '79%'\"

不同名之间的数据导入:(按方案导入导出)
C:\Users\Administrator>imp scott2/scott2@orcl11g file='d:/temp/1.dmp' log='d:/temp./1.log' fromuser=scott touser=scott2
同名之间数据导入

C:\Users\Administrator>imp scott2/scott2@orcl11g file='d:/temp/1.dmp' log='d:/temp./1.log'

imp hkb/hkb@xe file=c:\orabackup\hkbfull.dmp log=c:\orabackup\hkbimp.log full=y

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Chapter3ProtectingtheData(2).. 下一篇JDBC数据库连接

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·数据库:推荐几款 Re (2025-12-25 12:17:11)
·如何最简单、通俗地 (2025-12-25 12:17:09)
·什么是Redis?为什么 (2025-12-25 12:17:06)
·对于一个想入坑Linux (2025-12-25 11:49:07)
·Linux 怎么读? (2025-12-25 11:49:04)