码迷,mamicode.com
首页 > 其他好文 > 详细

Imp导入与exp导出

时间:2014-10-23 22:45:51      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:style   ar   sp   文件   数据   on   log   ad   bs   

按方案导入(须加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

 

 

Imp导入与exp导出

标签:style   ar   sp   文件   数据   on   log   ad   bs   

原文地址:http://blog.csdn.net/u012750578/article/details/40404175

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!