Linux 创建 Dump 目录
1. 查找Dump目录
SQL> select * from dba_directories;
2.创建Dump目录及路径
create directory dump_hisdir as ‘/rman_backup/rmanbackup/dump_hisdir/’;
3.为已创建的dump_hisdir目录授权
grant read,write on directory dump_hisdir to system;
4.数据泵导出语句
expdp system/password directory=dump_hisdir dumpfile=expd20210112.dmp logfile=exdp20210112 full=y
5.数据泵导入语句
impdp SYSTEM/password@xjtj directory=‘dp_dir’ dumpfile=‘ktyymhis20211104.dmp’ FULL=y ignore=y
6.导入前创建表空间样例
CREATE TABLESPACE TSP_CPR
DATAFILE ‘D:\app\Administrator\oradata\TEST2\apcpr.dbf’ SIZE 10130M REUSE AUTOEXTEND ON NEXT 5M MAXSIZE UNLIMITED
LOGGING
ONLINE
BLOCKSIZE 8K
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
SEGMENT SPACE MANAGEMENT AUTO;
–16