EXPDP IMPDP 导入导出数据

前端之家收集整理的这篇文章主要介绍了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"查询;

原文链接:https://www.f2er.com/oracle/206607.html

猜你在找的Oracle相关文章