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
时间: 2024-10-15 15:06:29