Data Pump Parameter-Encryption

ENCRYPTION and ENCRYPTION_PASSWORD

ENCRYPTION = {ALL
| DATA_ONLY | ENCRYPTED_COLUMNS_ONLY | METADATA_ONLY | NONE
}

The available options are:
ALL: Both metadata and data are encrypted.
DATA_ONLY:
Only data is encrypted.
ENCRYPTED_COLUMNS_ONLY:
Only encrypted columns are written to the dump file in an encrypted format.
METADATA_ONLY:
Only metadata is encrypted.

NONE: Nothing is encrypted.


expdp scott/tiger tables=emp directory=TEST_DIR dumpfile=emp.dmp
logfile=emp.log encryption=all
encryption_password=oracle123



[oracle@oracle11g dump]$ expdp scott/tiger tables=emp directory=TEST_DIR dumpfile=emp.dmp logfile=emp.log encryption=all encryption_password=oracle123

Export: Release 11.2.0.3.0 – Production on Mon Aug 31 13:55:39 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting “SCOTT”.”SYS_EXPORT_TABLE_01″:  scott/******** tables=emp directory=TEST_DIR dumpfile=emp.dmp logfile=emp.log encryption=all encryption_password=********
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/CONSTRAINT/REF_CONSTRAINT
. . exported “SCOTT”.”EMP”                               8.578 KB      14 rows
Master table “SCOTT”.”SYS_EXPORT_TABLE_01″ successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
  /u01/dump/emp.dmp
Job “SCOTT”.”SYS_EXPORT_TABLE_01″ successfully completed at 13:55:57
[oracle@oracle11g dump]$ impdp system/oracle directory=TEST_DIR dumpfile=emp.dmp remap_schema=scott:ram
Import: Release 11.2.0.3.0 – Production on Mon Aug 31 13:58:18 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39174: Encryption password must be supplied.




[oracle@oracle11g dump]$ impdp system/oracle directory=TEST_DIR dumpfile=emp.dmp remap_schema=scott:ram encryption_password=oracle123
Import: Release 11.2.0.3.0 – Production on Mon Aug 31 13:59:21 2015
Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 – Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table “SYSTEM”.”SYS_IMPORT_FULL_01″ successfully loaded/unloaded
Starting “SYSTEM”.”SYS_IMPORT_FULL_01″:  system/******** directory=TEST_DIR dumpfile=emp.dmp remap_schema=scott:ram encryption_password=********
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported “RAM”.”EMP”                                 8.578 KB      14 rows
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT








  • August 31, 2015 | 15 views
  • Comments