Imp导入与exp导出
2016-04-09 17:17
225 查看
按方案导入(须加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
说明:本人于ITEYE创建于2013年,现转移到CSDN
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
说明:本人于ITEYE创建于2013年,现转移到CSDN
相关文章推荐
- 常用PLSQL子程序
- 神经网络资料
- 归并排序链表
- Java异常处理和I/O处理
- python函数式编程之(open(var1 if not var2 else var2))
- 虚幻4 TaskGraph小记
- 使用canvas编写环形图.
- 扩展型模式之Decorator(装饰器)模式
- 希尔排序算法的C语言实现示例
- JavaScript里的类和继承
- BZOJ3439: Kpm的MC密码
- 根据前序遍历判断二叉搜索树
- winedt 自动换行
- CSS3实例教程:详解calc()函数功能
- 关于写保护
- 20145120 《Java程序设计》实验一实验报告
- 关于storm0.10.0版本的一个小bug
- 二叉树前序、中序、后序遍历相互求法
- Android数据转化为Excel表格导入导出
- Python抽象之类