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

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

posted @ 2016-06-19 09:48  清风叶  阅读(2705)  评论(0编辑  收藏  举报