Oracle导库

sqlplus / as sysdba
select * from dba_directories;


create directory PPMDUMP as '/oracle/dump';

grant read,write on directory PPMDUMP to public;
grant exp_full_database to PPMDUMP;
expdp PPMCL/PPMCL schemas=PPMCL directory=PPMDUMP dumpfile=ppm0516.dump logfile=ppmdump.log ;

 

这里要先建用户,分大小,我没有权限。

impdp PPMTEST/PPMTEST123 directory=PPMDUMP dumpfile=ppm0516.dump REMAP_SCHEMA=PPMCL:PPMTEST logfile=ppmimpdp.log

 

oracle10g之后impdp的table_exists_action参数

impdp username/password table_exists_action=truncate  directory=DATA_PUMP_DIR dumpfile=expdpfilename.dmp logfile=implog.log


table_exists_action:

skip 是如果已存在表,则跳过并处理下一个对象;

append是为表增加数据;

truncate是截断表,然后为其增加新数据;

replace是删除已存在表,重新建表并追加数据;

你可能感兴趣的:(Oracle导库)