Backup of Oracle Home & Inventory

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Backup ORACLE_HOME and INVENTORY

--------------------------------
1. Shutdown Database (Not mandatory but prefer to shutdown)
2. Stop Listener (Not mandatory but prefer to shutdown)
3. Backup Oracle INVENTORY
4. Backup ORACLE_HOME

Restore ORACLE_HOME (Incase binary corruption then we can restore from backup)
-----------------------------------------------------------------------------
1. Shutdown Database (Mandatory)
2. Stop Listener (Mandatory)
3. Restore Oracle INVENTORY
4. Restore ORACLE_HOME

Backup Of Oracle Inventory


--------------------
[oracle@rac1 ~]$ cat /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=dba
[oracle@rac1 app]$ cd /u01/app/
[oracle@rac1 app]$ ls -ltr
total 8
drwxr-xr-x. 10 oracle dba 4096 Nov 7 11:33 oracle
drwxrwx---. 6 oracle dba 4096 Nov 7 20:16 oraInventory
[oracle@rac1 app]$
tar -cvzf /u02/oracle/backup/binary/Backup_OraInv.tar.gz oraInventory

Backup Of Oracle Home


-----------------------
[oracle@rac1 product]$ pwd
/u01/app/oracle/product
[oracle@rac1 product]$ ls -ltr
total 12
drwxr-xr-x. 72 oracle dba 4096 Oct 21 2016 12.1.0.2
drwxr-xr-x. 78 oracle dba 4096 Dec 8 15:47 11.2.0.4 <---
drwxr-xr-x. 74 oracle dba 4096 Dec 8 19:38 12.2.0.1
[oracle@rac1 product]$
cd /u01/app/oracle/product
[oracle@rac1 product]$ nohup tar -pcvf
/u02/oracle/backup/binary/oracle_home_bkup.tar 11.2.0.4 &
[1] 8848
[oracle@rac1 product]$ nohup: ignoring input and
appending output to `nohup.out'
[oracle@rac1 product]$ jobs -l
[1]+ 8848 Running nohup tar -cvzf
/u02/oracle/backup/binary/oracle_home_bkup.tar.gz 11.2.0.4 &

===============================================================
Post Patch Steps
===============================================================
Step 1: Save the inventory information
$ cd /home/oracle/dbadir/rob
$ $ORACLE_HOME/OPatch/opatch lsinventory > inventory_after_PROD_20181127.log
$ cat inventory_after_LOADDEV_20181127.log

You might also like