1.mkdir /tdms1/oracle/dump
2.sqlplus / as sysdba
3.create directory udir as ‘/tdms1/oracle/dump‘;
4.grant write ,read on directory udir to scott;
5.导出表:
Expdp scott/tiger DIRECTORY=dump_dir TABLES=scott.dept DUMPFILE=dept.dmp logfile=dept.log
6.导入表
impdp hsiufo/hsiufo directory=dump_dir dumpfile=full.dmp tables=scott.emp remap_schema=scott:scott
时间: 2024-11-13 06:45:40