You are on page 1of 9

Live Demonstration of GI and RAC patching & Troubleshooting and Best Practices – Webinar - 05

GI and RAC Patching Live


Demonstration Agenda:
 GI & RAC Patching Understanding
 Best Patching Practices
 Demo 1: GI Patching Demo
 Demo 2: RAC Patching Demo
 Demo 3: Issue and Troubleshooting Demo
 Troubleshooting
 Questions and Answers

Join Zoom Meeting - Sat 20-02-2021 @ 7:30 PM


Mallik
20-Feb-2021

You can search mallik034 on YouTube and Google


Agenda:

 GI & RAC Patching Understanding


 Best Patching Practices
 Demo 1: GI Patching Demo
 Demo 2: RAC Patching Demo
 Demo 3: Issue and Troubleshooting Demo
 Troubleshooting
 Questions and Answers

You can search mallik034 on YouTube and Google


Best Patching Practices
Central Inventory ContentsXML/inventory.xml
/var/opt/oracle/oraInst.loc
/etc/oraInst.loc
1. manage your central inventory and local inventory
HKLM\Software\oracle\inst_loc
2. Managing your inventory.xml file
3. Regularly Path your system
4. Patch storage ($ORACLE_HOME/.patch_storage)
5. Inventory backups before patching Local Inventory comps.xml
6. GI and OH backup before patching $ORACLE_HOME/inventory
7. Use opatchauto (if necessary)

You can search mallik034 on YouTube and Google


GI & RAC Patching Understanding Start
Node1 Node2

Oracle Patch Release dates


GI Patching GI Patching
Q1 – Jan 17
Q2 – Apr 17
Q3 – Jul 17 DB1 OH Patching DB1 OH Patching
Q4 – Oct 17
DB2 OH Patching DB2 OH Patching

DB3 OH Patching DB3 OH Patching

Database
Patching

End

You can search mallik034 on YouTube and Google


GI Home patching: DB Home patching:
1) Stop GI Home as root user 1) Stop DB Home as root user

2) Unlock the GI Home as root user 2) grant permission on patch directory as root user

3) grant permission patch directory as root user 3) As oracle user do prechks


Do OPatch version and current lspatches checks
4) As grid user do prechks Conflict pre checks:
Do OPatch version and current lspatches checks System space prechk:
Conflict pre checks:
System space prechk: 4) Apply Patch:

5) Apply Patch: 5) Post verification

6) Post verification 6) Start ORACLE_HOME as root user

7) Lock and start GI


1) Do database prechecks

Datapatch / DB Patching 2) Run the database post steps – datapatch

3) Verify the database post steps


You can search mallik034 on YouTube and Google
Webinar-05-GI and RAC Patching Live Demonstration - Demo.txt

You can search mallik034 on YouTube and Google


Troubleshooting:
 Use debug option to get extensive logging  Patch staging location permission issue
 Patch node properly unzipped / downloaded
$export OPATCH_DEBUG=true  GI Home is not properly unlocked
$<Oracle Home>/OPatch/opatchauto <Bundle patch>  Cluster is not in rolling upgrade mode
Or,  datapatch hangs
$<Oracle Home>/OPatch/opatchauto <option> <Bundle patch>  PDBs are not in opened mode
<GI_HOME>/cfgtoollogs/opatchauto

 missing Patch Storage

Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
Oracle Home dir. path does not exist in Central Inventory
Oracle Home is a symbolic link
Oracle Home inventory is corrupted
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo

Missing of ORACLE_HOME information from the inventory


Missing of $ORACLE_HOME/.patch_storage
Using of older/Incorrect version of the Opatch

You can search mallik034 on YouTube and Google


Interview Questions:
1. What is GI patching prepatch and post commands patch will do?

2. When you are running post patch it is complaining that pre-patch is not ran, What you will do?

3. After patching last node is it saying patch level is mismatch even though same patches are applied on all nodes.
What will do?

4. Can I patch DB home without patching GI home?

5. Can I patch mulptile oracle home parallely? Or can I run GI and DB home patch parallely

5. Can I run datapatch parallelly?

You can search mallik034 on YouTube and Google


You can search mallik034 on YouTube and Google

You might also like