oracle中include,impdp&expdp的content和include选项

由于导出和导入时需要关注索引是否被导入,进行实验。本实验主要目的是理解content的两个参数项:date_only和metadata_only,其中涉及include。1.分别使用以下三种方式导出分区表ACTIVE_PARTITION的数据、元数据expdp scott/scottdirectory=HOME_Odumpfile=scott_expdp1.dmplogfile=scott_ex...
摘要由CSDN通过智能技术生成

由于导出和导入时需要关注索引是否被导入,进行实验。

本实验主要目的是理解content的两个参数项:date_only和metadata_only,其中涉及include。

1.分别使用以下三种方式导出分区表ACTIVE_PARTITION的数据、元数据

expdp  scott/scott

directory=HOME_O

dumpfile=scott_expdp1.dmp

logfile=scott_expdp1.log tables=ACTIVE_PARTITION

expdp  scott/scott

directory=HOME_O

dumpfile=scott_expdp2.dmp

logfile=scott_expdp2.log tables=ACTIVE_PARTITION content=data_only

expdp  scott/scott

directory=HOME_O

dumpfile=scott_expdp3.dmp

logfile=scott_expdp3.log tables=ACTIVE_PARTITION content=metadata_only

[oracle@ogg2 ~]$

expdp  scott/scott  directory=HOME_O   dumpfile=scott_expdp1.dmp  logfile=scott_expdp1.log

tables=ACTIVE_PARTITION

Export: Release

11.2.0.1.0 - Production on Mon Mar 9 14:45:17 2015

Copyright (c) 1982,

2009, Oracle and/or its affiliates.  All

rights reserved.

Connected to: Oracle

Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the

Partitioning, OLAP, Data Mining and Real Application Testing options

Starting

"SCOTT"."SYS_EXPORT_TABLE_02":  scott/******** directory=HOME_O

dumpfile=scott_expdp1.dmp logfile=scott_expdp1.log tables=ACTIVE_PARTITION

Estimate in progress

using BLOCKS method...

Processing object

type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation

using BLOCKS method: 8.5 MB

Processing object

type TABLE_EXPORT/TABLE/TABLE

Processing object

type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT

Processing object

type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS

Processing object

type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

. . exported

"SCOTT"."ACTIVE_PARTITION":"P5"             5.896 MB   60275 rows

. . exported

"SCOTT"."ACTIVE_PARTITION":"P4"             459.5 KB    5033 rows

. . exported

"SCOTT"."ACTIVE_PARTITION":"P3"             385.1 KB    3834 rows

. . exported

"SCOTT"."ACTIVE_PARTITION":"P1"             280.8 KB    2847 rows

. . exported

"SCOTT"."ACTIVE_PARTITION":"P2"             31.52 KB     226 rows

Master table

"SCOTT"."SYS_EXPORT_TABLE_02" successfully loaded/unloaded

******************************************************************************

Dump file set for

SCOTT.SYS_EXPORT_TABLE_02 is:

/home/oracle/scott_expdp1.dmp

Job

"SCOTT"."SYS_EXPORT_TABLE_02" successfully completed at

14:45:28

[oracle@ogg2 ~]$

expdp  scott/scott  directory=HOME_O   dumpfile=scott_expdp2.dmp  logfile=scott_expdp2.log

tables=ACTIVE_PARTITION content=data_only

Export: Release

11.2.0.1.0 - Production on Mon Mar 9 14:45:41 2015

Copyright (c) 1982,

2009, Oracle and/or its affiliates.  All

rights reserved.

Connected to: Oracle

Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the

Partitioning, OLAP, Data Mining and Real Application Testing options

Starting

"SCOTT"."SYS_EXPORT_TABLE_02":  scott/******** directory=HOME_O

dumpfile=scott_expdp2.dmp logfile=scott_expdp2.log tables=ACTIVE_PARTITION

content=data_only

Estimate in progress

using BLOCKS method...

Processing object

type TABLE_EXPORT/TABLE/TABLE_DATA

Total estimation

using BLOCKS method: 8.5 MB

. . exported

"SCOTT"."ACTIVE_PARTITION":"P5"             5.896 MB   60275

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值