Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Steps to Apply Grid patch in 12CR2 Environment

$
0
0
Grid PSU
=======================
Set Proper Path
=====================
export ORACLE_HOME=/home/oracle/product/12.2.0.1/grid
d
which opatch

Download and copy later opatch binaries to oracle home
=============================================
cd $ORACLE_HOME
cp /backup/oracle/p6880880_122010_Linux-x86-64.zip .
mv OPatch OPatch_bkp
mkdir OPatch
chown oracle:oinstall OPatch
unzip p6880880_122010_Linux-x86-64.zip
rm -rf p6880880_122010_Linux-x86-64.zip

Check prerequisites
====================
   For Grid Infrastructure Home, as home user:

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /backup/oracle/12.2.0.1/27100009/27105253
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /backup/oracle/12.2.0.1/27100009/27335416
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /backup/oracle/12.2.0.1/27100009/27128906
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /backup/oracle/12.2.0.1/27100009/26839277
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /backup/oracle/12.2.0.1/27100009/27144050



 Run OPatch SystemSpace Check

cat /tmp/patch_list_gihome.txt
/backup/oracle/12.2.0.1/27100009/27105253
/backup/oracle/12.2.0.1/27100009/27335416
/backup/oracle/12.2.0.1/27100009/27128906
/backup/oracle/12.2.0.1/27100009/26839277
/backup/oracle/12.2.0.1/27100009/27144050


Run the opatch command to check if enough free space is available in the Grid Infrastructure Home:

$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt

Analyze if there are any conflicts ---
---------------------------------
sudo $ORACLE_HOME/OPatch/opatchauto apply /backup/oracle/12.2.0.1/27100009 -analyze

Apply Patch
====================
sudo $ORACLE_HOME/OPatch/opatchauto apply /backup/oracle/12.2.0.1/27100009 -oh /home/oracle/product/12.2.0.1/grid

opatch lsinventory



Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>