RT/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
. . exported "U1"."FAMILY" 5.984 KB 2 rows
Master table "U1"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for U1.SYS_EXPORT_SCHEMA_01 is:
/oracle/backup/u1.dump
Job "U1"."SYS_EXPORT_SCHEMA_01" successfully completed at 13:26:06
#导入按照用户导出的数据
[oracle@host2 ~]$ impdp u2/tiger dumpfile=u1.dump directory=dump_dir REMAP_SCHEMA=u1:u2
Import: Release 10.2.0.5.0 - 64bit Production on Monday, 11 August, 2014 13:26:58
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
Master table "U2"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "U2"."SYS_IMPORT_FULL_01": u2/******** dumpfile=u1.dump directory=dump_dir REMAP_SCHEMA=u1:u2
Processing object type SCHEMA_EXPORT/USER
ORA-31684: Object type USER:"U2" already exists
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/TABLE_DATA
. . imported "U2"."FAMILY" 5.984 KB 2 rows
Job "U2"."SYS_IMPORT_FULL_01" completed with 1 error(s) at 13:27:02
#按照表空间导出
[oracle@host2 ~]$ expdp u1/tiger tablespace=u1 dumpfile='u1_u1.dump' directory=dump_dir
LRM-00101: unknown parameter name 'tablespace'
[oracle@host2 ~]$ expdp u1/tiger tablespaces=u1 dumpfile='u1_u1.dump' directory=dump_dir
Export: Release 10.2.0.5.0 - 64bit Production on Monday, 11 August, 2014 13:28:39
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
Starting "U1"."SYS_EXPORT_TABLESPACE_01": u1/******** tablespaces=u1 dumpfile=u1_u1.dump directory=dump_dir
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/IND