14.3.2 调用IMPDP——导入表

来源:互联网 发布:人工智能在智慧物流 编辑:程序博客网 时间:2024/04/29 16:48

一、删除表

C:/>sqlplus scott/tiger@orcl

SQL*Plus: Release 10.2.0.1.0 - Production on 星期日 1月 4 17:19:39 2009

Copyright (c) 1982, 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

SQL> drop table emp;

表已删除。

SQL> drop table dept;

表已删除。

二、导出到自身方案

C:/>impdp scott/tiger@orcl directory=dump_dir dumpfile=tab.dmp tables=dept,emp

Import: Release 10.2.0.1.0 - Production on 星期日, 04 1月, 2009 17:26:59

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"."SYS_IMPORT_TABLE_01"
启动 "SCOTT"."SYS_IMPORT_TABLE_01":  scott/********@orcl directory=dump_dir dump
file=tab.dmp tables=dept,emp
处理对象类型 TABLE_EXPORT/TABLE/TABLE
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
. . 导入了 "SCOTT"."DEPT"                              5.656 KB       4 行
. . 导入了 "SCOTT"."EMP"                               7.820 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" 已于 17:27:04 成功完成

三、导入到其它方案中

C:/>impdp system/orcl@orcl directory=dump_dir dumpfile=tab.dmp tables=scott.dept
,scott.emp remap_schema=scott:system

Import: Release 10.2.0.1.0 - Production on 星期日, 04 1月, 2009 17:29:02

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
已成功加载/卸载了主表 "SYSTEM"."SYS_IMPORT_TABLE_01"
启动 "SYSTEM"."SYS_IMPORT_TABLE_01":  system/********@orcl directory=dump_dir du
mpfile=tab.dmp tables=scott.dept,scott.emp remap_schema=scott:system
处理对象类型 TABLE_EXPORT/TABLE/TABLE
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
. . 导入了 "SYSTEM"."DEPT"                             5.656 KB       4 行
. . 导入了 "SYSTEM"."EMP"                              7.820 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
作业 "SYSTEM"."SYS_IMPORT_TABLE_01" 已于 17:29:07 成功完成

原创粉丝点击