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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM