ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle 10g expdp/impdp的CONTENT选项体验

Oracle 10g expdp/impdp的CONTENT选项体验

Linux操作系统 作者:luckyfriends 时间:2015-03-10 15:43:44 0 删除 编辑

CONTENT用于指定要导入/出的内容.默认值为ALL
CONTENT={ALL | DATA_ONLY | METADATA_ONLY}
当设置CONTENT为ALL 时,将导出对象定义及其所有数据.
为DATA_ONLY时,只导出对象数据,
为METADATA_ONLY时,只导出对象定义

语法:
expdp user/pass DIRECTORY=dump DUMPFILE=data.dump CONTENT=METADATA_ONLY
impdp user/pass DIRECTORY=dump DUMPFILE=data.dump CONTENT=METADATA_ONLY


下面我今天体验的一个简单测试

E:>expdp study/study tables=toms dumpfile=toms.dmp content=ALL

Export: Release 10.2.0.1.0 - Production on 星期日, 11 2月, 2007 21:00:09

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
启动 "STUDY"."SYS_EXPORT_TABLE_01": study/******** tables=toms dumpfile=toms.dm
p content=ALL
正在使用 BLOCKS 方法进行估计...
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 256 KB
处理对象类型 TABLE_EXPORT/TABLE/TABLE
处理对象类型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
. . 导出了 "STUDY"."TOMS" 9.335 KB 9 行
已成功加载/卸载了主表 "STUDY"."SYS_EXPORT_TABLE_01"
******************************************************************************
STUDY.SYS_EXPORT_TABLE_01 的转储文件集为:
E:ORACLE10GADMINORA10DPDUMPTOMS.DMP
作业 "STUDY"."SYS_EXPORT_TABLE_01" 已于 21:01:33 成功完成


E:>expdp study/study tables=toms dumpfile=toms_data_only.dmp content=DATA_ONLY

Export: Release 10.2.0.1.0 - Production on 星期日, 11 2月, 2007 21:01: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
启动 "STUDY"."SYS_EXPORT_TABLE_01": study/******** tables=toms dumpfile=toms_da
ta_only.dmp content=DATA_ONLY
正在使用 BLOCKS 方法进行估计...
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
使用 BLOCKS 方法的总估计: 256 KB
. . 导出了 "STUDY"."TOMS" 9.335 KB 9 行
已成功加载/卸载了主表 "STUDY"."SYS_EXPORT_TABLE_01"
******************************************************************************
STUDY.SYS_EXPORT_TABLE_01 的转储文件集为:
E:ORACLE10GADMINORA10DPDUMPTOMS_DATA_ONLY.DMP
作业 "STUDY"."SYS_EXPORT_TABLE_01" 已于 21:02:58 成功完成


E:>expdp study/study tables=toms dumpfile=toms_metadata_only.dmp content=METADA
TA_ONLY

Export: Release 10.2.0.1.0 - Production on 星期日, 11 2月, 2007 21:03:33

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
启动 "STUDY"."SYS_EXPORT_TABLE_01": study/******** tables=toms dumpfile=toms_me
tadata_only.dmp content=METADATA_ONLY
处理对象类型 TABLE_EXPORT/TABLE/TABLE
处理对象类型 TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
已成功加载/卸载了主表 "STUDY"."SYS_EXPORT_TABLE_01"
******************************************************************************
STUDY.SYS_EXPORT_TABLE_01 的转储文件集为:
E:ORACLE10GADMINORA10DPDUMPTOMS_METADATA_ONLY.DMP
作业 "STUDY"."SYS_EXPORT_TABLE_01" 已于 21:04:05 成功完成


E:>
E:>impdp study/study dumpfile=toms_data_only.dmp content=DATA_ONLY

Import: Release 10.2.0.1.0 - Production on 星期日, 11 2月, 2007 21:07:50

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
已成功加载/卸载了主表 "STUDY"."SYS_IMPORT_FULL_01"
启动 "STUDY"."SYS_IMPORT_FULL_01": study/******** dumpfile=toms_data_only.dmp c
ontent=DATA_ONLY
处理对象类型 TABLE_EXPORT/TABLE/TABLE_DATA
. . 导入了 "STUDY"."TOMS" 9.335 KB 9 行
作业 "STUDY"."SYS_IMPORT_FULL_01" 已于 21:08:10 成功完成


E:>

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14710393/viewspace-1454873/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OpenStack 和 Ceph
请登录后发表评论 登录
全部评论
长期从事IT相关工作。

注册时间:2009-06-06

  • 博文量
    465
  • 访问量
    3307400