首页 > 其他 > 详细

EXPDP IMPDP 导入导出数据

时间:2018-01-09 17:30:28      阅读:263      评论:0      收藏:0      [点我收藏+]
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 导入导出数据

原文:http://blog.51cto.com/linux10000/2059108

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!