Master
Note for Handling Oracle Database Corruption Issues (Doc ID 1088018.1). This
will help you in case if you get future issues, please take a look at it.
Having 15 year’s Plus of extensive experience in the IT industry involving Production Database Administration ,Azure Cloud Migration, Peoplesoft And Mysql and SQL Server Administration.
Saturday, July 19, 2014
How to perform ORACLE_HOME/binaries backup
Oracle binaries backup is needed when we are doing any OS label upgrade like
OEL upgrade .
1. (Suggested but not mandatory) Shutdown databases, listeners, or any other processes related to the ORACLE_HOME which you are taking backup.
2. cd to the directory where ORACLE_HOME is located for example:
cd /u01/app/oracle/product/11.2
3. backup the ORACLE_HOME for example:
tar -pcvf /u01/app/oracle/backup/oracle_home_bkup.tar db1
In the above example, ORACLE_HOME is /u01/app/oracle/product/11.2/db1 and backup the directory is /u01/app/oracle/backup/
Below is an example of restoring the ORACLE_HOME:
1. (This step would be mandatory in the case of restore) Shutdown databases, listeners, or any other processes related to the ORACLE_HOME which you are restoring.
2. Go to the directory where ORACLE_HOME is located for example:
cd /u01/app/oracle/product/11.2
3. Rename or move the current ORACLE_HOME for example:
mv db1 db1_bkup
3. Restore the ORACLE_HOME for example:
tar -pxvf /u01/app/oracle/backup/oracle_home_bkup.tar
Make sure that is enough enough free disk space before doing the backup.
OEL upgrade .
1. (Suggested but not mandatory) Shutdown databases, listeners, or any other processes related to the ORACLE_HOME which you are taking backup.
2. cd to the directory where ORACLE_HOME is located for example:
cd /u01/app/oracle/product/11.2
3. backup the ORACLE_HOME for example:
tar -pcvf /u01/app/oracle/backup/oracle_home_bkup.tar db1
In the above example, ORACLE_HOME is /u01/app/oracle/product/11.2/db1 and backup the directory is /u01/app/oracle/backup/
Below is an example of restoring the ORACLE_HOME:
1. (This step would be mandatory in the case of restore) Shutdown databases, listeners, or any other processes related to the ORACLE_HOME which you are restoring.
2. Go to the directory where ORACLE_HOME is located for example:
cd /u01/app/oracle/product/11.2
3. Rename or move the current ORACLE_HOME for example:
mv db1 db1_bkup
3. Restore the ORACLE_HOME for example:
tar -pxvf /u01/app/oracle/backup/oracle_home_bkup.tar
Make sure that is enough enough free disk space before doing the backup.
Subscribe to:
Posts (Atom)