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
****************************
For Grid Infrastructure Home, as home user:
export ORACLE_HOME=/opt/app/crs/12.2.0.1/
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163133
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163190
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163235
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/26839277
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/27144050
For Database home, as home user:
export ORACLE_HOME=/opt/app/oracle/product/12.2.0/12.2.0.1
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163133
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163190
****************************
For Grid Infrastructure Home, as home user:
vi /tmp/patch_list_gihome.txt
/export/home/oracle/oracle_software/12c/patches/28183653/28163133
/export/home/oracle/oracle_software/12c/patches/28183653/28163190
/export/home/oracle/oracle_software/12c/patches/28183653/28163235
/export/home/oracle/oracle_software/12c/patches/28183653/26839277
/export/home/oracle/oracle_software/12c/patches/28183653/27144050
Run the opatch command to check if enough free space is available in the Grid Infrastructure Home:
export ORACLE_HOME=/opt/app/crs/12.2.0.1/
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
For Database home, as home user:
vi /tmp/patch_list_dbhome.txt
/export/home/oracle/oracle_software/12c/patches/28183653/28163133
/export/home/oracle/oracle_software/12c/patches/28183653/28163190
Run opatch command to check if enough free space is available in the Database Home:
export ORACLE_HOME=/opt/app/oracle/product/12.2.0/12.2.0.1
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt
****************************
As root user
export ORACLE_HOME=/opt/app/crs/12.2.0.1/
export PATH=$PATH:/opt/app/crs/12.2.0.1/OPatch
For RAC (GRID and DB)
cd /opt/app/crs/12.2.0.1/OPatch/
./opatchauto apply /export/home/oracle/oracle_software/12c/patches/28183653/
FOR GRID and NON RAC
GRID:
cd /opt/app/crs/12.2.0.1/OPatch
./opatchauto apply /export/home/oracle/oracle_software/12c/patches/28183653/ -oh /opt/app/crs/12.2.0.1/
NON - RAC DB
cd /export/home/oracle/oracle_software/12c/patches/28183653/28163133
export ORACLE_HOME=/opt/app/oracle/product/12.2.0/12.2.0.1
$ORACLE_HOME/OPatch/opatch apply
Opatch db home owned by oracle:dba
Patch folder unzipped by oracle
opatch auto to be run by root
****************************
Pre req check
****************************For Grid Infrastructure Home, as home user:
export ORACLE_HOME=/opt/app/crs/12.2.0.1/
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163133
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163190
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163235
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/26839277
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/27144050
For Database home, as home user:
export ORACLE_HOME=/opt/app/oracle/product/12.2.0/12.2.0.1
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163133
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /export/home/oracle/oracle_software/12c/patches/28183653/28163190
****************************
Check System space before applying
****************************For Grid Infrastructure Home, as home user:
vi /tmp/patch_list_gihome.txt
/export/home/oracle/oracle_software/12c/patches/28183653/28163133
/export/home/oracle/oracle_software/12c/patches/28183653/28163190
/export/home/oracle/oracle_software/12c/patches/28183653/28163235
/export/home/oracle/oracle_software/12c/patches/28183653/26839277
/export/home/oracle/oracle_software/12c/patches/28183653/27144050
Run the opatch command to check if enough free space is available in the Grid Infrastructure Home:
export ORACLE_HOME=/opt/app/crs/12.2.0.1/
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt
For Database home, as home user:
vi /tmp/patch_list_dbhome.txt
/export/home/oracle/oracle_software/12c/patches/28183653/28163133
/export/home/oracle/oracle_software/12c/patches/28183653/28163190
Run opatch command to check if enough free space is available in the Database Home:
export ORACLE_HOME=/opt/app/oracle/product/12.2.0/12.2.0.1
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt
****************************
Applying patch
****************************As root user
export ORACLE_HOME=/opt/app/crs/12.2.0.1/
export PATH=$PATH:/opt/app/crs/12.2.0.1/OPatch
For RAC (GRID and DB)
cd /opt/app/crs/12.2.0.1/OPatch/
./opatchauto apply /export/home/oracle/oracle_software/12c/patches/28183653/
FOR GRID and NON RAC
GRID:
cd /opt/app/crs/12.2.0.1/OPatch
./opatchauto apply /export/home/oracle/oracle_software/12c/patches/28183653/ -oh /opt/app/crs/12.2.0.1/
NON - RAC DB
cd /export/home/oracle/oracle_software/12c/patches/28183653/28163133
export ORACLE_HOME=/opt/app/oracle/product/12.2.0/12.2.0.1
$ORACLE_HOME/OPatch/opatch apply