1.一般测试
ROOTDBA@ora11g>create table t_lob as select * from dba_objects where 1=2;
Table created.
Elapsed: 00:00:00.06
ROOTDBA@ora11g>create table t_char as select * from dba_objects where 1=2;
Table created.
Elapsed: 00:00:00.05
ROOTDBA@ora11g>alter table t_lob add f1_lob clob;
Table altered.
Elapsed: 00:00:00.02
ROOTDBA@ora11g>alter table t_char add f1_char varchar2(4000);
Table altered.
Elapsed: 00:00:00.02
ROOTDBA@ora11g>insert into t_lob select a.*,rpad(’rootdba’,3000,’ rootdba ‘) from dba_objects a ;
17711 rows created.
Elapsed: 00:00:37.33
ROOTDBA@ora11g>commit;
Commit complete.
Elapsed: 00:00:00.01
ROOTDBA@ora11g>insert into t_char select a.*,rpad(’rootdba’,3000,’ rootdba ‘) from dba_objects a ;
17711 rows created.
Elapsed: 00:00:26.14
ROOTDBA@ora11g>commit;
Commit complete.
Elapsed: 00:00:00.07
ROOTDBA@ora11g>insert into t_lob select * from t_lob;
17711 rows created.
Elapsed: 00:01:11.82
ROOTDBA@ora11g>commit;
Commit complete.
Elapsed: 00:00:00.11
ROOTDBA@ora11g>
ROOTDBA@ora11g>
ROOTDBA@ora11g>insert into t_char select * from t_char;
17711 rows created.
Elapsed: 00:00:43.27
ROOTDBA@ora11g>commit;
Commit complete.
Elapsed: 00:00:00.05
ROOTDBA@ora11g>
ROOTDBA@ora11g>
ROOTDBA@ora11g>
ROOTDBA@ora11g>
ROOTDBA@ora11g>insert into t_char select * from t_char;
35422 rows created.
Elapsed: 00:00:58.76
ROOTDBA@ora11g>commit;
Commit complete.
Elapsed: 00:00:00.10
ROOTDBA@ora11g>
ROOTDBA@ora11g>
oracle@dbatest1:/u01/dmpdir #time expdp rootdba/abc123 directory=dmpdir dumpfile=t_lob.dmp tables=t_lob
Export: Release 11.2.0.1.0 – Production on Wed Sep 30 13:53:48 2009
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, Data Mining and Real Application Testing options
Starting “ROOTDBA”.”SYS_EXPORT_TABLE_01″: rootdba/******** directory=dmpdir dumpfile=t_lob.dmp tables=t_lob
Estimate in progress using BLOCKS method…
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 285 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported “ROOTDBA”.”T_LOB” 206.0 MB 35422 rows
Master table “ROOTDBA”.”SYS_EXPORT_TABLE_01″ successfully loaded/unloaded
******************************************************************************
Dump file set for ROOTDBA.SYS_EXPORT_TABLE_01 is:
/u01/dmpdir/t_lob.dmp
Job “ROOTDBA”.”SYS_EXPORT_TABLE_01″ successfully completed at 13:54:43
real 0m57.580s
user 0m0.026s
sys 0m0.019s
oracle@dbatest1:/u01/dmpdir #time expdp rootdba/abc123 directory=dmpdir dumpfile=t_char.dmp tables=t_char
Export: Release 11.2.0.1.0 – Production on Wed Sep 30 14:00:03 2009
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, Data Mining and Real Application Testing options
Starting “ROOTDBA”.”SYS_EXPORT_TABLE_01″: rootdba/******** directory=dmpdir dumpfile=t_char.dmp tables=t_char
Estimate in progress using BLOCKS method…
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 280 MB
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported “ROOTDBA”.”T_CHAR” 209.3 MB 70844 rows
Master table “ROOTDBA”.”SYS_EXPORT_TABLE_01″ successfully loaded/unloaded
******************************************************************************
Dump file set for ROOTDBA.SYS_EXPORT_TABLE_01 is:
/u01/dmpdir/t_char.dmp
Job “ROOTDBA”.”SYS_EXPORT_TABLE_01″ successfully completed at 14:00:36
real 0m33.963s
user 0m0.022s
sys 0m0.023s
2.使用exclude功能
oracle@dbatest1:/u01/dmpdir # expdp rootdba/abc123 directory=dmpdir dumpfile=rootdba.dmp schemas=rootdba EXCLUDE=TABLE:”\=\’T_LOB’”
Export: Release 11.2.0.1.0 – Production on Wed Sep 30 14:09:10 2009
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, Data Mining and Real Application Testing options
FLASHBACK automatically enabled to preserve database integrity.
Starting “ROOTDBA”.”SYS_EXPORT_SCHEMA_01″: rootdba/********
directory=dmpdir dumpfile=rootdba.dmp schemas=rootdba
EXCLUDE=TABLE:\=\’T_LOB’
Estimate in progress using BLOCKS method…
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 720.1 MB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/POST_TABLE_ACTION
Processing object type SCHEMA_EXPORT/TABLE/MATERIALIZED_VIEW_LOG
. . exported “ROOTDBA”.”T_CHAR” 209.3 MB 70844 rows
. . exported “ROOTDBA”.”T_P”:”P40″ 203.1 MB 11835831 rows
. . exported “ROOTDBA”.”T_P”:”P30″ 105.8 MB 6163359 rows
. . exported “ROOTDBA”.”T_P”:”P20″ 52.43 MB 3054408 rows
. . exported “ROOTDBA”.”EXP_DG” 5.460 KB 4 rows
. . exported “ROOTDBA”.”TP”:”P1″ 5.453 KB 3 rows
. . exported “ROOTDBA”.”T_MV” 5.437 KB 2 rows
. . exported “ROOTDBA”.”MLOG$_T_MV” 0 KB 0 rows
. . exported “ROOTDBA”.”TP”:”P2″ 0 KB 0 rows
. . exported “ROOTDBA”.”T_P”:”P10″ 0 KB 0 rows
. . exported “ROOTDBA”.”T_P_LIST”:”P1″ 0 KB 0 rows
. . exported “ROOTDBA”.”T_P_LIST”:”P2″ 0 KB 0 rows
Master table “ROOTDBA”.”SYS_EXPORT_SCHEMA_01″ successfully loaded/unloaded
******************************************************************************
Dump file set for ROOTDBA.SYS_EXPORT_SCHEMA_01 is:
/u01/dmpdir/rootdba.dmp
Job “ROOTDBA”.”SYS_EXPORT_SCHEMA_01″ successfully completed at 14:10:33
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7364032/viewspace-615928/ ,如需转载,请注明出处,否则将追究法律责任。