Data Pump (expdp, impdp) Enhancements in Oracle Database 12c Release 2 (12.2)
This article provides an overview of the main Data Pump enhancements in Oracle Database 12c Release 2 (12.2).
oracle 12cconfigurationintermediate
by OracleDba
13 views
This article provides an overview of the main Data Pump enhancements in Oracle Database 12c Release 2 (12.2).
1234567
# This
transport_datafiles=/my/path/file10.dbf,/my/path/file11.dbf,/my/path/file12.dbf
# becomes one of these alternatives.
transport_datafiles=/my/path/file*.dbf
transport_datafiles=/my/path/file1*.dbf
transport_datafiles=/my/path/file1?.dbf12345678910111213141516171819202122232425
$ expdp system/OraPasswd1@pdb1 schemas=OE directory=TEST_DIR
dumpfile=OE_%T_%L.dmp
logfile=expdpOE.log
parallel=4
Export: Release 12.2.0.1.0 - Production on Wed Mar 22 16:04:32 2017
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/********@pdb1 schemas=OE directory=TEST_DIR dumpfile=OE_%T_%L.dmp logfile=expdpOE.log parallel=4
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
.
.
.
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/tmp/OE_20170322_01.dmp
/tmp/OE_20170322_02.dmp
/tmp/OE_20170322_03.dmp
/tmp/OE_20170322_04.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" completed with 1 error(s) at Wed Mar 22 16:05:41 2017 elapsed 0 00:01:07
$123456789101112131415161718192021222324252627
cat > /tmp/parfile.txt <<EOF
USERID=test/test@pdb1
schemas=TEST
directory=TEST_DIR
dumpfile=TEST.dmp
logfile=expdpTEST.log
EOF
expdp parfile=/tmp/parfile.txt
$ head -15 /tmp/expdpTEST.log
;;;
Export: Release 12.2.0.1.0 - Production on Mon Aug 21 19:45:00 2017
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
;;; **************************************************************************
;;; Parfile values:
;;; parfile: logfile=expdpTEST.log
;;; parfile: dumpfile=TEST.dmp
;;; parfile: directory=TEST_DIR
;;; parfile: schemas=TEST
;;; parfile: userid=test/********@pdb1
;;; **************************************************************************
Starting "TEST"."SYS_EXPORT_SCHEMA_01": test/********@pdb1 parfile=/tmp/parfile.txt
$123456789101112
REMAP_DIRECTORY="'/u02/oradata/cdb1/pdb1/':'/u02/oradata/cdb3/pdb3/'"
cat > /tmp/parfile.txt <<EOF
USERID=system/OraPasswd1@pdb1
schemas=TEST
directory=TEST_DIR
dumpfile=TEST.dmp
logfile=impdpTEST.log
remap_directory="'/u02/oradata/cdb1/pdb1/':'/u02/oradata/cdb3/pdb3/'"
EOF
impdp parfile=/tmp/parfile.txt12345678910111213141516171819202122232425262728293031323334353637
# Export
DATA_OPTIONS = [XML_CLOBS |
GROUP_PARTITION_TABLE_DATA
|
VERIFY_STREAM_FORMAT
]
# Import
DATA_OPTIONS = [DISABLE_APPEND_HINT | SKIP_CONSTRAINT_ERRORS |
ENABLE_NETWORK_COMPRESSION
| REJECT_ROWS_WITH_REPL_CHAR |
TRUST_EXISTING_TABLE_PARTITIONS
|
VALIDATE_TABLE_DATA
]
cat > /tmp/parfile.txt <<EOF
USERID=system/OraPasswd1@pdb1
schemas=TEST
directory=TEST_DIR
dumpfile=TEST.dmp
logfile=expdpTEST.log
data_options=group_partition_table_data,verify_stream_format
EOF
expdp parfile=/tmp/parfile.txt
cat > /tmp/parfile.txt <<EOF
USERID=system/OraPasswd1@pdb1
schemas=TEST
directory=TEST_DIR
dumpfile=TEST.dmp
logfile=impdpTEST.log
data_options=enable_network_compression,trust_existing_table_partitions,validate_table_data
EOF
impdp parfile=/tmp/parfile.txtPlease to add comments
No comments yet. Be the first to comment!