oracle-11G转10G
先查询directory的地址 导出的文件必须放在此目录
select * from dba_directories;
找到directory_name的值 ,也可以新建一个
create directory test as 'f:\test'
11g 导出语句:EXPDP USERID='facial/facial@orcl' schemas=facial directory=test dumpfile=aa.dmp logfile=aa.log version=10.2.0.1.0
10g 导入语句:IMPDP USERID='facial/facial@orcl' schemas=facial directory=test dumpfile=aa.dmp logfile=aa.log version=10.2.0.1.0
EXPDP USERID='facial/facial@orcl' schemas=facial directory=TEST dumpfile=20150306.dmp logfile=20150306.log version=10.2.0.1.0 EXCLUDE=TABLE:\"IN('XT_LOG','PM_FILE')\"
IMPDP USERID='facial/facial@orcl' REMAP_SCHEMA=zyws:zyws REMAP_TABLESPACE=users:users directory=TEST dumpfile=20150409.DMP logfile=20150409.log
IMPDP USERID='facial/facial@orcl' REMAP_SCHEMA=QD:QD REMAP_TABLESPACE=INSIDE:INSIDE directory=TEST dumpfile=20150409.DMP logfile=20150410.log exclude=TRIGGER
一、数据导出(exp.exe)
1、将数据库orcl完全导出,用户名system,密码accp,导出到d:\daochu.dmp文件中
exp system/accp@orcl file=d:\daochu.dmp full=y
2、将数据库orcl中scott用户的对象导出
exp scott/accp@orcl file=d:\daochu.dmp owner=(scott)
3、将数据库orcl中的scott用户的表emp、dept导出
exp scott/accp@orcl file= d:\daochu.dmp tables=(emp,dept)
4、将数据库orcl中的表空间testSpace导出
exp system/accp@orcl file=d:\daochu.dmp tablespaces=(testSpace)
二、数据导入(imp.exe)
1、将d:\daochu.dmp 中的数据导入 orcl数据库中。
imp system/accp@orcl file=d:\daochu.dmp full=y
2、如果导入时,数据表已经存在,将报错,对该表不会进行导入;加上ignore=y即可,表示忽略现有表,在现有表上追加记录。
imp scott/accp@orcl file=d:\daochu.dmp full=y ignore=y
3、将d:\daochu.dmp中的表emp导入
imp scott/accp@orcl file=d:\daochu.dmp tables=(emp)
三、注意
1、导入语句中加入transform=segment_attributes:n参数。该参数可与忽略expdp导出时附带的相关表空间和存储子句约束。
2、IGNORE=Y oracle导入数据库时忽略错误继续执行下去
3、将d:\daochu.dmp中的表emp导入
imp scott/accp@orcl file=d:\daochu.dmp tables=(emp)
最新文章
- backbone库学习-View
- 应用alter index ××× monitoring usage;语句监控索引使用与否
- IT技术很好的视频网址
- FOJ 2161 Jason and Number
- Linux神器之Strace的实践(Ubuntu上服务幽灵般的消失)
- HDU3232 Crossing rivers
- Contest 高数题 樹的點分治 樹形DP
- Oracle EBS-SQL (PO-12):检查期间请购单的下达记录数.sql
- 【疑问】css
- C#使用Xamarin开发可移植移动应用进阶篇(6.使用渲染器针对单个平台自定义控件..很很很很重要..),附源码
- jsp pageEncoding属性详解
- 【python教程01】 编辑器
- PyQtdeploy-V2.4 User Guide 中文 (一)
- 基于PLC1850平台的UDP报文接收与发送
- hex转mif文件 verilog
- js 查找当前元素/this
- 洛谷P3248 树 [HNOI2016] 主席树+倍增+分治
- vc/vs开发的应用程序添加dump崩溃日志<;转>;
- PostgreSQL逻辑复制之slony篇
- CF特征码遍历
热门文章
- elementui-日期选择器时间清空报错踩坑
- spring 事务失效的几种场景
- 【get√】golang新手理解了一点点gin框架的中间件
- spring拦截机制中Filter(过滤器)、interceptor(拦截器)和Aspect(切面)的使用及区别
- ServletContext类介绍(对象的作用及演示、像map一样存取数据)
- 【Azure Developer】使用 Azure Python SDK时,遇见 The resource principal named https://management.azure.com was not found in the tenant China Azure问题的解决办法
- Reset the default deployment target in Windows Phone Developer Tools
- Java多线程专题2: JMM(Java内存模型)
- Typora + picgo + Chevereto 优雅地上传图片
- java中的泛型,简单介绍。 修饰方法的用法