How to Apply Opatch on Oracle RAC instances
Steps:
1) Check Oracle service status
crs_stat -t
2)Stop database instance one by one
srvctl stop instance -i DB_NAME 1 -d INSTANCE_NAME
srvctl stop instance -i DB_NAME 2 -d INSTANCE_NAME
3)Stop ASM instance on each node one by one
srvctl stop asm -n rac-node1
srvctl stop asm -n rac-node2
4)Go to the downloaded patch folder
export OPATCH path
export PATH=$PATH:$ORACLE_HOME/Opatch
5)Check whether patch is applied or not
opatch lsinventry
6)Start apply patch
opatch apply
After applying opatch successfully
7)Restart the database instance and asm instance
srvctl start asm -n rac-node1
srvctl start asm -n rac-node2
srvctl start instance -i DB_NAME 1 -d INSTANCE_NAME
srvctl start instance -i DB_NAME 2 -d INSTANCE_NAME
8)Then take the invalid count on both nodes