I. Preface: some users do not use RMAN for Backup recovery because the DBA level is not too high, training RMAN for on-site engineers or users will lead to additional expenses and unnecessary troubles. If the user does not have a particularly high requirement on data recovery, or expdpimpdp is not used for recovery from different machines
I. Preface: some users do not use RMAN for Backup recovery because the DBA level is not too high, training RMAN for on-site engineers or users will lead to additional expenses and unnecessary troubles. If the user does not have high data recovery requirements, or expdp/impdp is used for recovery from different machines
I. Preface:
Some users do not use RMAN for Backup recovery because the DBA level is not too high, training RMAN for on-site engineers or users will lead to additional expenses and unnecessary troubles. If
If the data recovery requirements are not particularly high, or when the recovery from different machines is performed, expdp/impdp is a good choice.
If you need multiple backups in the RAC environment, you can use the multi-path backup of expdp to back up one copy on ASM and back up one copy locally, alternatively, you can make one copy on the NAS shared disk,
In this way, data can be restored if any server or storage is damaged.
The following is my testing process. Modify the directory as needed:
This is the test environment, and the production environment is similar. You only need to modify the directory (ASM path: + DISKGROUP_NAME/DIRPATH)
2. Create related directories and grant permissions
[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]# lltotal 8drwxr-xr-x 2 oracle oinstall 4096 Sep 5 13:33 expdp1drwxr-xr-x 2 oracle oinstall 4096 Sep 5 13:33 expdp2
3. Access the database for directory and grant permissions
[root@source DBBackup]# su - oracle[oracle@source ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Fri Sep 5 13:34:12 2014Copyright (c) 1982, 2013, Oracle. All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL>SQL> create directory expdp1 as \
4. start exporting
[oracle@source expdp1]$ expdp ggs/ggs dumpfile=expdp1:ggs001.dmp,expdp2:ggs001.dmp parallel=2Export: Release 11.2.0.4.0 - Production on Fri Sep 5 13:43:14 2014Copyright (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 ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsFLASHBACK automatically enabled to preserve database integrity.Starting \