Data Pump option
Simple Datapump
create directory dump_dir as '/u11/oracle/exp_cust';
create directory log_dir as '/u11/oracle/exp_cust/logs';
grant read,write on directory dump_dir to CUST_DUMMY_STAGE;
grant read,write on directory log_dir to CUST_DUMMY_STAGE;
-- Export
expdp CUST_DUMMY_STAGE/nidb schemas=CUST_DUMMY_STAGE dumpfile=dump_dir:expdp_09FEB2013_CUST_DUMMY_STAGE_%U.dmp logfile=log_dir:full1.log_09FEB2013_expdp_CUST_DUMMY_STAGE.log parallel=4 filesize=10G
-- Import
impdp system schemas=CUST_DUMMY_STAGE dumpfile=dump_dir:expdp_09FEB2013_CUST_DUMMY_STAGE_*.dmp logfile=log_dir:full1.log_09FEB2013_impdp_CUST_DUMMY_STAGE.log parallel=4
-- with remap / fromuser-touser
impdp system schemas=CUST_DUMMY_PROD remap_schema=CUST_DUMMY_PROD:CUST_DUMMY_STAGE
dumpfile=dump_dir:cust_dummy_prod_201305182300_01.dp
logfile=dump_dir:log_imp_cust_dummy_prod_201305182300_.log parallel=4
No comments:
Post a Comment