设为首页 加入收藏

TOP

数据泵expdp,impdp使用结(六)
2015-07-24 11:20:58 来源: 作者: 【 】 浏览:25
Tags:数据 expdp impdp 使用
t_e.log directory=DIR_EXP job_name=my_job
include=TABLE:\"NOT LIKE \'E$%\'\"

Export: Release 10.2.0.1.0 - Production on 星期一, 27 10月, 2014 17:42:42

Copyright (c) 2003, 2005, Oracle. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
启动 "SCOTT"."MY_JOB": scott/********@192.168.11.1:1521/orcl schemas=scott dump
file=scott_not_e.dmp logfile=scott_not_e.log directory=DIR_EXP job_name=my_job i
nclude=TABLE:"NOT LIKE \'E$%\'"
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 192 KB
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/INDEX
处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
处理对象类型 SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
处理对象类型 SCHEMA_EXPORT/TABLE/COMMENT
处理对象类型 SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
处理对象类型 SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . 导出了 "SCOTT"."DEPT" 5.656 KB 4 行
. . 导出了 "SCOTT"."EMP" 7.820 KB 14 行
. . 导出了 "SCOTT"."SALGRADE" 5.585 KB 5 行
. . 导出了 "SCOTT"."BONUS" 0 KB 0 行
已成功加载/卸载了主表 "SCOTT"."MY_JOB"
******************************************************************************
SCOTT.MY_JOB 的转储文件集为:
D:\DIREXP\SCOTT_NOT_E.DMP
作业 "SCOTT"."MY_JOB" 已于 17:42:56 成功完成


--仅导出scott用户下的所有存储过程:
expdp scott/scott@192.168.11.1:1521/orcl schemas=scott dumpfile=scott_procedure.dmp logfile=scott_procedure.log directory=DIR_EXP job_name=my_job include=PROCEDUR

2、Exclude导出用户中指定类型的指定对象
--导出lttfm用户下除TABLE类型以外的所有对象,如果表不导出那么与表相关的索引,约束等与表有关联的对象类型也不会被导出:
expdp scott/scott@192.168.11.1:1521/orcl schemas=scott dumpfile=scott_not_table.dmp logfile=scott_not_table.log directory=DIR_EXP job_name=my_job exclude=TABLE;

C:\Users\Administrator>expdp scott/scott@192.168.11.1:1521/orcl schemas=scott du
mpfile=scott_not_table.dmp logfile=scott_not_table.log directory=DIR_EXP job_nam
e=my_job exclude=TABLE

Export: Release 10.2.0.1.0 - Production on 星期一, 27 10月, 2014 17:56:08

Copyright (c) 2003, 2005, Oracle. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
启动 "SCOTT"."MY_JOB": scott/********@192.168.11.1:1521/orcl schemas=scott dump
file=scott_not_table.dmp logfile=scott_not_table.log directory=DIR_EXP job_name=
my_job exclude=TABLE
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 0 KB
处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
已成功加载/卸载了主表 "SCOTT"."MY_JOB"
******************************************************************************
SCOTT.MY_JOB 的转储文件集为:
D:\DIREXP\SCOTT_NOT_TABLE.DMP
作业 "SCOTT"."MY_JOB" 已于 17:56:11 成功完成

--导出scott用户下排除E$开头的所有表:
expdp scott/scott@192.168.11.1:1521/orcl dumpfile=scott_not_e_begin.dmp logfile=scott_not_e_begin.log directory=DIR_EXP job_name=my_job exclude=TABLE:\"LIKE\'e$%\'\"
C:\Users\Administrator>expdp scott/scott@192.168.11.1:1521/orcl dumpfile=scott_n
ot_e_begin.dmp logfile=scott_not_e_begin.log directory=DIR_EXP job_name=my_job e
xclude=TABLE:\"LIKE\'e$%\'\"

Export: Release 10.2.0.1.0 - Production on 星期一, 27 10月, 2014 17:58:16

Copyright (c) 2003, 2005, Oracle. All rights reserved.

连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP

首页 上一页 3 4 5 6 7 8 9 下一页 尾页 6/9/9
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇DB2使用Hibernate拦截器实现脏读.. 下一篇数据库中导出表中相应字段到指定..

评论

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

·工业机器人TCP校准中 (2025-12-25 05:19:17)
·opc 通讯协议与 TCP (2025-12-25 05:19:15)
·labview中tcp/ip通信 (2025-12-25 05:19:13)
·新书介绍《Python数 (2025-12-25 04:49:47)
·怎么利用 Python 进 (2025-12-25 04:49:45)