mpdp scott/tiger@ptian tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log
?
Import: Release 11.2.0.1.0 - Production on 星期四 11月 27 16:39:14 2014
?
Copyright (c) 1982, 2009, Oracle and/or its affiliates. ?All rights reserved.
?
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
已成功加载/卸载了主表 "SCOTT"."SYS_IMPORT_TABLE_01"
启动 "SCOTT"."SYS_IMPORT_TABLE_01": ?scott/********@ptian tables=EMP,DEPT directory=TEST_DIR dumpfile=EMP_DEPT.dmp logfile=impdpEMP_DEPT.log
处理对象类型 TABLE_EXPORT/TABLE/TABLE
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
. . 导入了 "SCOTT"."DEPT" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?5.937 KB ? ? ? 4 行
. . 导入了 "SCOTT"."EMP" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8.570 KB ? ? ?14 行
处理对象类型 TABLE_EXPORT/TABLE/INDEX/INDEX
处理对象类型 TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
处理对象类型 TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
处理对象类型 TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
处理对象类型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
作业 "SCOTT"."SYS_IMPORT_TABLE_01" 已于 16:39:16 成功完成
?
5.Schema Exports/Imports
Data Pump可以针对Schema来做数据导出/导入。
?
5.1 Schema Exports
C:\Users\TianPan>expdp scott/tiger@ptian schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
?
Export: Release 11.2.0.1.0 - Production on 星期四 11月 27 16:46:28 2014
?
Copyright (c) 1982, 2009, Oracle and/or its affiliates. ?All rights reserved.
?
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
启动 "SCOTT"."SYS_EXPORT_SCHEMA_01": ?scott/********@ptian schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log
正在使用 BLOCKS 方法进行估计...
处理对象类型 SCHEMA_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 192 KB
处理对象类型 SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
处理对象类型 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.937 KB ? ? ? 4 行
. . 导出了 "SCOTT"."EMP" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 8.570 KB ? ? ?14 行
. . 导出了 "SCOTT"."SALGRADE" ? ? ? ? ? ? ? ? ? ? ? ? ?5.867 KB ? ? ? 5 行
. . 导出了 "SCOTT"."BONUS" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0 KB ? ? ? 0 行
已成功加载/卸载了主表 "SCOTT"."SYS_EXPORT_SCHEMA_01"
******************************************************************************
SCOTT.SYS_EXPORT_SCHEMA_01 的转储文件集为:
? C:\TEST\SCOTT.DMP
作业 "SCOTT"."SYS_EXPORT_SCHEMA_01" 已于 16:46:53 成功完成
?
5.2 Schema Imports
impdp scott/tiger@ptian schemas=SCOTT directory=TEST_DIR dumpfile=SCOTT.dmp logfile=impdpSCOTT.log
?
?
6. Database Exports/Imports
6.1 Database Export
设置FULL参数,整库导出。
C:\Users\TianPan>expdp system/welcome@ptian full=Y directory=TEST_DIR dumpfile=DB11G.dmp logfile=expdpDB11G.log
?
Export: Release 11.2.0.1.0 - Production on 星期四 11月 27 16:57:21 2014
?
Copyright (c) 1982, 2009, Oracle and/or its affiliates. ?All rights reserved.
?
连接到: Oracle Database 11g En