Oracle 백업 복원 가져 오기 및 내보내기 데이터베이스

데이터 내보내기

SQL> conn / as sysdba
Connected.
SQL> create directory lxw_dir as '/home/oracle';

Directory created.

SQL> grant write,read on directory lxw_dir to lxw;

Grant succeeded.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@db ~]$ expdp lxw/lxw123@orcl directory=lxw_dir dumpfile=lxw_20200706.dmp log=lxw_20200706.log schemas=lxw

스키마 만 내보내려면 content = metadata_only 추가

데이터 가져 오기

SQL> conn / as sysdba
Connected.
SQL> create directory lxw_dir as '/home/oracle';

Directory created.

SQL> grant write,read on directory lxw_dir to lxw

Grant succeeded.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

[oracle@db ~]$ impdp lxw/lxw123@orcl directory=lxw_dir dumpfile=lxw_20200706.dmp log=lxw_20200706.log schemas=lxw

 

추천

출처blog.csdn.net/lw112190/article/details/107154064