First make sure you have lastest version of OPatch in both oracle and grid homes.
Opatch Grid home owned by oracle:dba
Opatch db home owned by oracle:dba
Patch folder unzipped by oracle
opatch auto to be run by root
ocm.rsp file to be generated by oracle user in both grid and db home
cd $ORACLE_HOME
cd OPatch/ocm/bin
./emo*
Create a response file using above
download patch and unzip to the staging folder
in my case
/export/home/oracle/oracle_software/25476126
First apply for grid home
export ORACLE_HOME=/opt/app/crs/11.2.0.4
./opatch auto /export/home/oracle/oracle_software/25476126 -oh /opt/app/crs/11.2.0.4 -ocmrf /opt/app/crs/11.2.0.4/OPatch/ocm/bin/ocm.rsp
Now apply for database home
export ORACLE_HOME=/opt/app/oracle/product/11.2.0/11.2.0.4/
./opatch auto /export/home/oracle/oracle_software/25476126 -oh /opt/app/oracle/product/11.2.0/11.2.0.4/ -ocmrf /opt/app/oracle/product/11.2.0/11.2.0.4/OPatch/ocm/bin/ocm.rsp
***********************************************************************
Apply one off patches
First apply from grid home
export ORACLE_HOME=/opt/app/crs/11.2.0.4
cd /opt/app/crs/11.2.0.4/OPatch
./opatch apply -oh /opt/app/crs/11.2.0.4 -local /export/home/oracle/oracle_software/10194190
Now apply for database home
export ORACLE_HOME=/opt/app/oracle/product/11.2.0/11.2.0.4/
cd /export/home/oracle/oracle_software/10194190
/opt/app/oracle/product/11.2.0/11.2.0.4/OPatch/opatch apply
********************************************************************************
NOTE
if response file creation fails with motif error in solaris
please install below
pkg install pkg://solaris/library/motif
Opatch Grid home owned by oracle:dba
Opatch db home owned by oracle:dba
Patch folder unzipped by oracle
opatch auto to be run by root
ocm.rsp file to be generated by oracle user in both grid and db home
cd $ORACLE_HOME
cd OPatch/ocm/bin
./emo*
Create a response file using above
download patch and unzip to the staging folder
in my case
/export/home/oracle/oracle_software/25476126
First apply for grid home
export ORACLE_HOME=/opt/app/crs/11.2.0.4
./opatch auto /export/home/oracle/oracle_software/25476126 -oh /opt/app/crs/11.2.0.4 -ocmrf /opt/app/crs/11.2.0.4/OPatch/ocm/bin/ocm.rsp
Now apply for database home
export ORACLE_HOME=/opt/app/oracle/product/11.2.0/11.2.0.4/
***********************************************************************
Apply one off patches
First apply from grid home
export ORACLE_HOME=/opt/app/crs/11.2.0.4
cd /opt/app/crs/11.2.0.4/OPatch
./opatch apply -oh /opt/app/crs/11.2.0.4 -local /export/home/oracle/oracle_software/10194190
Now apply for database home
export ORACLE_HOME=/opt/app/oracle/product/11.2.0/11.2.0.4/
cd /export/home/oracle/oracle_software/10194190
/opt/app/oracle/product/11.2.0/11.2.0.4/OPatch/opatch apply
********************************************************************************
NOTE
if response file creation fails with motif error in solaris
please install below
pkg install pkg://solaris/library/motif