1-Create user, groups and OH directory on all cells
dcli -k -g dbnodes -l root --Configure user equivalence for root if not already done
dcli -g dbnodes -l root /usr/sbin/useradd -u 503 -g oinstall -G dba,asmdba,asmadmin,racoper orabob --Add user
dcli -g dbnodes -l root id orabob --Check user
dcli -g dbnodes -l root mkdir -p /u01/app/oracle/product/11.2.0.4/dbbob --Create OH directory
dcli -g dbnodes -l root chown -R orabob:oinstall /u01/app/oracle/product/11.2.0.4/dbbob --Change OH permission
dcli -k -g dbnodes -l orabob --Configure user equivalence for new user
2-Change /etc/security/limits.conf on all cels (Use the same values as your other user created by OneCommand)
oratkc soft core unlimited
oratkc hard core unlimited
orabob soft nproc 131072
orabob hard nproc 131072
orabob soft nofile 65536
orabob hard nofile 65536
orabob soft memlock 396748650
orabob hard memlock 396748650
3-Login with new user and run runInstaller to install OH Binaries
4-Upgrade OPatch in OH
dcli -l orabob -g /home/orabob/dbnodes -f p6880880_112000_Linux-x86-64.zip -d /tmp
dcli -l orabob -g /home/orabob/dbnodes unzip -oq -d /u01/app/oracle/product/11.2.0.4/dbbob /tmp/p6880880_112000_Linux-x86-64.zip
5-Apply latest BP on OH
5.1-Run OPatch Conflict
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /opt/oracle.SupportTools/onecommand/Software/patches/18371656/18371656/
5.2-Check with there is enough system space:
$ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseDir /opt/oracle.SupportTools/onecommand/Software/patches/18371656/18371656/
5.3-Apply the BP patch on OH (GI was already applied on past). Login with ROOT user and make sure opatch is in PATH.
opatch auto /opt/oracle.SupportTools/onecommand/Software/patches/18371656/18371656/ -oh /u01/app/oracle/product/11.2.0.4/dbbob
OBS: if you still don't have, create ocm file using command "$ORACLE_HOME/OPatch/ocm/bin/emocmrsp"
Best Regards,
Paulo Portugal
thanks, excellent write up
ReplyDelete