首页 > 数据库技术 > 详细

Linux oracle 导入导出单个表(没有外键约束的情况下)

时间:2016-06-19 10:06:05      阅读:335      评论:0      收藏:0      [点我收藏+]

expdp:

SQL> create directory dir_tables as ‘/home/oracle/tables‘;

SQL> grant read,write on directory dir_tables to 用户名;

expdp system/system密码@SID tables=用户名.表名 directory=dir_tables dumpfile=tables.dmp logfile=tables.log

 

impdp:

SQL> create directory dir_tables as ‘/home/oracle/imp_tables‘;

SQL> grant read,write on directory dir_tables to sys;

impdp system/system密码 directory=dir_tables dumpfile=tables.dmp logfile=tables.log

 

备注:涉及到级联则不可用,已有表要删除,drop table deepdata.risks

Linux oracle 导入导出单个表(没有外键约束的情况下)

原文:http://www.cnblogs.com/yezongyang/p/5597477.html

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