EXPDP IMPDP 導入導出數據
阿新 • • 發佈:2018-01-09
director repl rac con gps sysdba source ppa ide 1、創建目錄
mkdir /tmp/dump
mkdir /tmp/dump
2、導出數據
sqlplus / as sysdba
create or replace directory dump_dir as ‘/home/oracle/oracleDump‘;
grant read,write on directory dump_dir to BBGO,BBGPS;
exit
expdp "‘/ as sysdba‘" schemas=BBGO dumpfile=BBGO.dmp DIRECTORY=dump_dir logfile=expsh.log
expdp "‘/ as sysdba‘" schemas=BBGPS dumpfile=BBGPS.dmp DIRECTORY=dump_dir logfile=expsh.log
3、導入數據
sqlplus / as sysdba
create user BBGOA identified by BBGOA ;
grant connect,resource to BBGOA ;
create directory dump_dir as ‘/home/oracle/oracleDump‘;
grant read,write on directory dump_dir to BBGOA;
exit
impdp "‘/ as sysdba‘" directory=dump_dir dumpfile=expdp.dmp schemas=BBGO remap_schema=BBGO:BBGOA
註意:如果使用select from t_trippay_info查詢不到數據,請使用select from "t_trippay_info"查詢;
EXPDP IMPDP 導入導出數據