12c Database Datapump Enhancements
Below are some of enhancements for Datapump
1) In 12c You can use the DISABLE_ARCHIVE_LOGGING Parameter
to specify that objects be loaded with nologging of redo.
Example:
Schema level
$ impdp scott/tiger directory=RM_dir dumpfile=scott01.dmp transform=disable_archive_logging:Y
Import: Release 12.1.0.1.0 - Production on Mon Jul 6 05:20:49 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt ions
Master table "SCOTT"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SCOTT"."SYS_IMPORT_FULL_01": scott/******** directory=RM_dir dumpfile =scott01.dmp transform=disable_archive_logging:Y
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 "SCOTT"."DEPT" 6.007 KB 4 rows
. . imported "SCOTT"."EMP" 8.757 KB 14 rows
. . imported "SCOTT"."SALGRADE" 5.937 KB 5 rows
. . imported "SCOTT"."BONUS" 0 KB 0 rows
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SCOTT"."SYS_IMPORT_FULL_01" successfully completed at Mon Jul 6 05:21:00 20 15 elapsed 0 00:00:10
Nologging for Index
$impdp system/admin DIRECTORY=RM_dir DUMPFILE=scott02.dmp schemas=scott TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y:INDEX
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01": system/******** DIRECTORY=RM_dir DUMPFILE=scott02.dmp schemas=scott TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y:INDEX
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
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 "SCOTT"."DEPT" 6.007 KB 4 rows
. . imported "SCOTT"."EMP" 8.757 KB 14 rows
. . imported "SCOTT"."SALGRADE" 5.937 KB 5 rows
. . imported "SCOTT"."BONUS" 0 KB 0 rows
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:26:12 2015 elapsed 0 00:00:12
Logging Table No, but for other objects logging=Y
$impdp system/admin DIRECTORY=RM_dir DUMPFILE=scott02.dmp schemas=scott TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y TRANSFORM=DISABLE_ARCHIVE_LOGGING:N:TABLE
Import: Release 12.1.0.1.0 - Production on Mon Jul 6 05:42:28 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01": system/******** DIRECTORY=RM_dir DUMPFILE=scott02.dmp schemas=scott TRANSFORM=DISABLE_ARCHIVE_LOGGING:Y TRANSFORM=DISABLE_ARCHIVE_LOGGING:N:TABLE
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
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 "SCOTT"."DEPT" 6.007 KB 4 rows
. . imported "SCOTT"."EMP" 8.757 KB 14 rows
. . imported "SCOTT"."SALGRADE" 5.937 KB 5 rows
. . imported "SCOTT"."BONUS" 0 KB 0 rows
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:42:40 2015 elapsed 0 00:00:11
2) You can have timestamp printed for every object that is imported. Also during export you can use same.
Example:
During export:
$expdp system/admin DIRECTORY=RM_dir DUMPFILE=scott04.dmp schemas=scott logtime=all
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 05:46:14 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
06-JUL-15 05:46:15.975: Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** DIRECTORY=RM_dir DUMPFILE=scott04.dmp schemas=scott logtime=all
06-JUL-15 05:46:16.293: Estimate in progress using BLOCKS method...
06-JUL-15 05:46:17.441: Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
06-JUL-15 05:46:17.487: Total estimation using BLOCKS method: 192 KB
06-JUL-15 05:46:17.734: Processing object type SCHEMA_EXPORT/USER
06-JUL-15 05:46:17.785: Processing object type SCHEMA_EXPORT/ROLE_GRANT
06-JUL-15 05:46:17.803: Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
06-JUL-15 05:46:17.825: Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
06-JUL-15 05:46:18.144: Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
06-JUL-15 05:46:27.070: Processing object type SCHEMA_EXPORT/TABLE/TABLE
06-JUL-15 05:46:27.921: Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
06-JUL-15 05:46:28.863: Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
06-JUL-15 05:46:28.900: Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
06-JUL-15 05:46:29.199: Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
06-JUL-15 05:46:29.666: Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
06-JUL-15 05:46:29.681: Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
06-JUL-15 05:46:36.757: . . exported "SCOTT"."DEPT" 6.007 KB 4 rows
06-JUL-15 05:46:36.781: . . exported "SCOTT"."EMP" 8.757 KB 14 rows
06-JUL-15 05:46:36.803: . . exported "SCOTT"."SALGRADE" 5.937 KB 5 rows
06-JUL-15 05:46:36.808: . . exported "SCOTT"."BONUS" 0 KB 0 rows
06-JUL-15 05:46:37.316: Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
06-JUL-15 05:46:37.321: ******************************************************************************
06-JUL-15 05:46:37.322: Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
06-JUL-15 05:46:37.324: /u02/datapump/scott04.dmp
06-JUL-15 05:46:37.328: Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:46:37 2015 elapsed 0 00:00:22
During import:
$impdp system/admin DIRECTORY=RM_dir DUMPFILE=scott04.dmp schemas=scott logtime=all
Import: Release 12.1.0.1.0 - Production on Mon Jul 6 05:48:39 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
06-JUL-15 05:48:41.814: Master table "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded
06-JUL-15 05:48:42.022: Starting "SYSTEM"."SYS_IMPORT_SCHEMA_01": system/******** DIRECTORY=RM_dir DUMPFILE=scott04.dmp schemas=scott logtime=all
06-JUL-15 05:48:45.462: Processing object type SCHEMA_EXPORT/USER
06-JUL-15 05:48:45.464: Processing object type SCHEMA_EXPORT/ROLE_GRANT
06-JUL-15 05:48:45.465: Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
06-JUL-15 05:48:45.465: Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
06-JUL-15 05:48:45.466: Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
06-JUL-15 05:48:45.467: Processing object type SCHEMA_EXPORT/TABLE/TABLE
06-JUL-15 05:48:45.549: Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
06-JUL-15 05:48:45.645: . . imported "SCOTT"."DEPT" 6.007 KB 4 rows
06-JUL-15 05:48:45.648: . . imported "SCOTT"."EMP" 8.757 KB 14 rows
06-JUL-15 05:48:45.651: . . imported "SCOTT"."SALGRADE" 5.937 KB 5 rows
06-JUL-15 05:48:45.654: . . imported "SCOTT"."BONUS" 0 KB 0 rows
06-JUL-15 05:48:45.783: Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
06-JUL-15 05:48:45.786: Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
06-JUL-15 05:48:45.789: Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
06-JUL-15 05:48:48.306: Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
06-JUL-15 05:48:48.309: Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
06-JUL-15 05:48:48.312: Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
06-JUL-15 05:48:53.077: Job "SYSTEM"."SYS_IMPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:48:53 2015 elapsed 0 00:00:12
3) You can change a table’s compression characteristics when importing the table.
$ vi import.par ----add below parameters into file.
userid=system/admin
dumpfile=scott04.dmp
directory=RM_dir
transform=table_compression_clause:compress
:wq!
$ impdp parfile=import.par
Import: Release 12.1.0.1.0 - Production on Mon Jul 6 05:52:32 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** parfile=import.par
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
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 "SCOTT"."DEPT" 6.007 KB 4 rows
. . imported "SCOTT"."EMP" 8.757 KB 14 rows
. . imported "SCOTT"."SALGRADE" 5.937 KB 5 rows
. . imported "SCOTT"."BONUS" 0 KB 0 rows
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Mon Jul 6 05:52:42 2015 elapsed 0 00:00:10
4) You can specify the compress Algorithm during export.
-BASIC
-LOW
-MEDIUM
Example:
$expdp scott/tiger dumpfile=scott06.dmp directory=RM_dir compression=all compression_algorithm=MEDIUM
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 05:54:36 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": scott/******** dumpfile=scott06.dmp directory=RM_dir compression=all compression_algorithm=MEDIUM
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
. . exported "SCOTT"."DEPT" 4.687 KB 4 rows
. . exported "SCOTT"."EMP" 5.109 KB 14 rows
. . exported "SCOTT"."SALGRADE" 4.601 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
/u02/datapump/scott06.dmp
Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:55:06 2015 elapsed 0 00:00:29
$expdp scott/tiger dumpfile=scott07.dmp directory=RM_dir compression=all compression_algorithm=LOW
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 05:56:28 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": scott/******** dumpfile=scott07.dmp directory=RM_dir compression=all compression_algorithm=LOW
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
. . exported "SCOTT"."DEPT" 4.695 KB 4 rows
. . exported "SCOTT"."EMP" 5.273 KB 14 rows
. . exported "SCOTT"."SALGRADE" 4.609 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
/u02/datapump/scott07.dmp
Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:56:58 2015 elapsed 0 00:00:28
$expdp scott/tiger dumpfile=scott08.dmp directory=RM_dir compression=all compression_algorithm=BASIC
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 05:57:07 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": scott/******** dumpfile=scott08.dmp directory=RM_dir compression=all compression_algorithm=BASIC
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
. . exported "SCOTT"."DEPT" 5 KB 4 rows
. . exported "SCOTT"."EMP" 5.648 KB 14 rows
. . exported "SCOTT"."SALGRADE" 4.906 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
/u02/datapump/scott08.dmp
Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Jul 6 05:57:37 2015 elapsed 0 00:00:29
$ expdp scott/tiger dumpfile=scott09.dmp directory=RM_dir compression=all compression_algorithm=HIGH
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 06:06:53 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_SCHEMA_01": scott/******** dumpfile=scott09.dmp directory=RM_dir compression=all compression_algorithm=HIGH
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 192 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
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/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type SCHEMA_EXPORT/STATISTICS/MARKER
. . exported "SCOTT"."DEPT" 4.664 KB 4 rows
. . exported "SCOTT"."EMP" 5.023 KB 14 rows
. . exported "SCOTT"."SALGRADE" 4.585 KB 5 rows
. . exported "SCOTT"."BONUS" 0 KB 0 rows
Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
/u02/datapump/scott09.dmp
Job "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully completed at Mon Jul 6 06:07:23 2015 elapsed 0 00:00:29
Size of export files.
[oracle@O12c datapump]$ ls -ltr
-rw-r----- 1 oracle oinstall 110592 Jul 6 05:55 scott06.dmp ---- MEDIUM
-rw-r----- 1 oracle oinstall 126976 Jul 6 05:56 scott07.dmp ----- LOW
-rw-r----- 1 oracle oinstall 110592 Jul 6 05:57 scott08.dmp ----- BASIC
-rw-r----- 1 oracle oinstall 102400 Jul 6 06:07 scott09.dmp ----- HIGH
5) You can now specify the LOB Storage during import
Example:
$impdp scott/tiger DIRECTORY=RM_dir DUMPFILE=scott09.dmp LOB_STORAGE:SECUREFILE
6 ) You can allows data pump jobs to be audited by creating an audit policy.
Example:
[oracle@O12c datapump]$ sqlplus
SQL*Plus: Release 12.1.0.1.0 Production on Mon Jul 6 06:15:29 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Enter user-name: /as sysdba
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt ions
SQL> CREATE AUDIT POLICY audit_dp_all_policy ACTIONS COMPONENT=DATAPUMP ALL;
Audit policy created.
SQL> AUDIT POLICY audit_dp_all_policy BY system;
Audit succeeded.
[oracle@O12c datapump]$ expdp system/admin tables=scott.emp directory=RM_dir dumpfile=scott10.dmp logfile=scott10.log
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 06:16:45 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Starting "SYSTEM"."SYS_EXPORT_TABLE_01": system/******** tables=scott.emp directory=RM_dir dumpfile=scott10.dmp logfile=scott10.log
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/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
. . exported "SCOTT"."EMP" 8.757 KB 14 rows
Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
/u02/datapump/scott10.dmp
Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at Mon Jul 6 06:16:59 2015 elapsed 0 00:00:13
sql>EXEC DBMS_AUDIT_MGMT.FLUSH_UNIFIED_AUDIT_TRAIL;
sql>SET LINESIZE 200
sql>COLUMN event_timestamp FORMAT A30
sql>COLUMN dp_text_parameters1 FORMAT A30
sql>COLUMN dp_boolean_parameters1 FORMAT A30
sql>SELECT event_timestamp,
dp_text_parameters1,
dp_boolean_parameters1
FROM unified_audit_trail
WHERE audit_type = 'Datapump';
EVENT_TIMESTAMP DP_TEXT_PARAMETERS1 DP_BOOLEAN_PARAMETERS1
------------------------------ ------------------------------ ------------------------------
06-JUL-15 06.16.47.359565 AM MASTER TABLE: "SYSTEM"."SYS_E MASTER_ONLY: FALSE, DATA_ONLY:
XPORT_TABLE_01" , JOB_TYPE: EX FALSE, METADATA_ONLY: FALSE,
PORT, METADATA_JOB_MODE: TABLE DUMPFILE_PRESENT: TRUE, JOB_RE
_EXPORT, JOB VERSION: 12.1.0.0 STARTED: FALSE
.0, ACCESS METHOD: AUTOMATIC,
DATA OPTIONS: 0, DUMPER DIRECT
ORY: NULL REMOTE LINK: NULL,
TABLE EXISTS: NULL, PARTITION
OPTIONS: NONE
7) In Oracle 12c, The ENCRYPTION_PWD_PROMPT parameter enables encryption without requiring the password to be entered as a command line parameter. Instead, the user is prompted for the password at run time, with their response not echoed to the screen.
ENCRYPTION_PWD_PROMPT=[YES | NO]
Example:
$expdp system/admin tables=scott.emp directory=RM_dir dumpfile=scott12.dmp logfile=expdp_emp.log encryption_pwd_prompt=yes
Export: Release 12.1.0.1.0 - Production on Mon Jul 6 06:25:52 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Password:
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Encryption Password:
Starting "SYSTEM"."SYS_EXPORT_TABLE_01": system/******** tables=scott.emp directory=RM_dir dumpfile=scott12.dmp logfile=expdp_emp.log encryption_pwd_prompt=yes
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/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
. . exported "SCOTT"."EMP" 8.765 KB 14 rows
Master table "SYSTEM"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_TABLE_01 is:
/u02/datapump/scott12.dmp
Job "SYSTEM"."SYS_EXPORT_TABLE_01" successfully completed at Mon Jul 6 06:26:19 2015 elapsed 0 00:00:23
$ impdp system/admin tables=scott.emp directory=RM_dir dumpfile=scott12.dmp logfile=expdp_emp.log encryption_pwd_prompt=yes
Import: Release 12.1.0.1.0 - Production on Mon Jul 6 06:33:26 2015
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Encryption Password:
Master table "SYSTEM"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_TABLE_01": system/******** tables=scott.emp directory=RM_dir dumpfile=scott12.dmp logfile=expdp_emp.log encryption_pwd_prompt=yes
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39151: Table "SCOTT"."EMP" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Job "SYSTEM"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at Mon Jul 6 06:33:32 2015 elapsed 0 00:00:05