Oracle 数据库 expdp 和 impdp用法

select * from dba_directories;
/*
SYS  DUMP_TEST  E:\dump
SYS  QUEST_SOO_UDUMP_DIR  /home/oracle/app/oracle/diag/rdbms/bpm/bpm/trace/
SYS  QUEST_SOO_CDUMP_DIR  /home/oracle/app/oracle/diag/rdbms/bpm/bpm/cdump/
SYS  QUEST_SOO_BDUMP_DIR  /home/oracle/app/oracle/diag/rdbms/bpm/bpm/trace/
SYS  QUEST_SOO_ADUMP_DIR  /home/oracle/app/oracle/admin/bpm/adump/
SYS  XMLDIR  /ade/b/2125410156/oracle/rdbms/xml
SYS  DIR_LIKM  E:\dir_likm
SYS  DATA_PUMP_DIR  /home/oracle/app/oracle/admin/bpm/dpdump/
SYS  ORACLE_OCM_CONFIG_DIR  /home/oracle/app/oracle/product/11.2.0/dbhome_1/ccr/state
*/

grant read,write on directory DATA_PUMP_DIR to bpm3_in;

expdp bpm3_in/bpm@bpm schemas=bpm_2round_in dumpfile=bpm_2round_in.dmp DIRECTORY=DATA_PUMP_DIR

expdp bpm3_in/bpm@bpm schemas=bpm_2round_out dumpfile=bpm_2round_out.dmp DIRECTORY=DATA_PUMP_DIR

impdp impdp/bpm DIRECTORY=DATA_PUMP_DIR DUMPFILE=bpm_2round_in.dmp SCHEMAS=bpm_2round_in

impdp impdp/bpm DIRECTORY=DATA_PUMP_DIR DUMPFILE=bpm_2round_out.dmp SCHEMAS=bpm_2round_out


 

你可能感兴趣的:(oracle,sql)