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