时间:2021-07-01 10:21:17 帮助过:83人阅读
一、前言: 有的用户DBA水平不是太高,不会使用RMAN进行备份恢复,如果对现场的工程师或用户进行RMAN的培训这样将会导致额外的开销以及导致一些不必要的麻烦。如果在用户 对数据恢复要求不是特别高的情况下,或者做异机恢复的时候expdp/impdp 则是一个比较不
一、前言:二、创建相关目录并赋予权限
[root@source DBData]# cd / [root@source /]# cd DBBackup/ [root@source DBBackup]# ls [root@source DBBackup]# mkdir expdp1 [root@source DBBackup]# mkdir expdp2 [root@source DBBackup]# chown -R oracle:oinstall expdp1 [root@source DBBackup]# chown -R oracle:oinstall expdp2 [root@source DBBackup]# ll total 8 drwxr-xr-x 2 oracle oinstall 4096 Sep 5 13:33 expdp1 drwxr-xr-x 2 oracle oinstall 4096 Sep 5 13:33 expdp2三、进入数据库做directory及赋予权限
[root@source DBBackup]# su - oracle [oracle@source ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Fri Sep 5 13:34:12 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> SQL> create directory expdp1 as \四、开始执行导出
[oracle@source expdp1]$ expdp ggs/ggs dumpfile=expdp1:ggs001.dmp,expdp2:ggs001.dmp parallel=2 Export: Release 11.2.0.4.0 - Production on Fri Sep 5 13:43:14 2014 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options FLASHBACK automatically enabled to preserve database integrity. Starting \