EXPDP IMPDP 导入导出数据
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了EXPDP IMPDP 导入导出数据相关的知识,希望对你有一定的参考价值。
1、创建目录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 导入导出数据的主要内容,如果未能解决你的问题,请参考以下文章