You are on page 1of 5

1. Connect to server szxpdb55.ssdc.kp.

org
2. Unzip PSU
cd /orabkup02/11.2.0.4.160119
unzip p22191577_112040_Linux-x86-64.zip
3. Make sure that all the databases and cluster services are down before proceed
ing
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PRE ROOT SCRIPT ON GI HOME (AS ROOT USER)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. oraenv
+ASM
export ORACLE_HOME=/u02/app/11.2.0.4/grid
/usr/sbin/slibclean
/u02/app/11.2.0.4/grid/crs/install/roothas.pl -unlock
4.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PRE PATCH RDBMS - (AS ORACLE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. oraenv
CGITPA
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
/orabkup02/11.2.0.4.160119/22191577/21948348/custom/scripts/prepatch.sh -dbhome
/u01/app/oracle/product/11.2.0.4/db_1
note: check and change the privileges of prepatch.sh to 777 incase of error
5.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PATCH GI WITH OCW, ACFS AND DB PSU - (AS ORACLE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. oraenv
+ASM
export ORACLE_HOME=/u02/app/11.2.0.4/grid
/u02/app/11.2.0.4/grid/OPatch/opatch lsinventory
/u02/app/11.2.0.4/grid/OPatch/opatch napply -oh /u02/app/11.2.0.4/grid -local /o
rabkup02/11.2.0.4.160119/22191577/21948348
(OCW)
/u02/app/11.2.0.4/grid/OPatch/opatch napply -oh /u02/app/11.2.0.4/grid -local /o
rabkup02/11.2.0.4.160119/22191577/21948355
(ACFS)
/u02/app/11.2.0.4/grid/OPatch/opatch napply -oh /u02/app/11.2.0.4/grid -local /o
rabkup02/11.2.0.4.160119/22191577/21948347
(DB PSU)
/u02/app/11.2.0.4/grid/OPatch/opatch lsinventory
---- incase of any errors during patching please following the below step
/usr/sbin/slibclean

6.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PATCH RDBMS WITH OCW AND DB PSU - (AS ORACLE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. oraenv
CGITPA
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
/u01/app/oracle/product/11.2.0.4/db_1/OPatch/opatch lsinventory
/u01/app/oracle/product/11.2.0.4/db_1/OPatch/opatch napply -oh /u01/app/oracle/p
roduct/11.2.0.4/db_1 -local /orabkup02/11.2.0.4.160119/22191577/21948348/custom/
server/21948348
/u01/app/oracle/product/11.2.0.4/db_1/OPatch/opatch napply -oh /u01/app/oracle/p
roduct/11.2.0.4/db_1 -local /orabkup02/11.2.0.4.160119/22191577/21948347
7.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
POST PATCH RDBMS - (AS ORACLE)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. oraenv
CGITPA
export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
/orabkup02/11.2.0.4.160119/22191577/21948348/custom/scripts/postpatch.sh -dbhome
/u01/app/oracle/product/11.2.0.4/db_1
8.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
POST ROOT SCRIPT ON GI HOME (AS ROOT USER)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export ORACLE_HOME=/u02/app/11.2.0.4/grid
/u02/app/11.2.0.4/grid/rdbms/install/rootadd_rdbms.sh
/u02/app/11.2.0.4/grid/crs/install/roothas.pl -patch
9.check all the services are up and running if not bring them up manually
---start HAS
as root user
cd /u02/app/11.2.0.4/grid/bin
./crsctl check has
./crsctl start has ( if it is not up )
./crsctl check has
----start databases
. oraenv
+ASM

sqlplus / as sysasm
startup;
exit
. oraenv
CGITPA
cd /u01/app/oracle/product/11.2.0.4/db_1/bin
srvctl status database -d BOITPB
srvctl start database -d BOITPB
srvctl status database -d BOITPB
srvctl status database -d BOITPA
srvctl start database -d BOITPA
srvctl status database -d BOITPA
srvctl status database -d CGITPB
srvctl start database -d CGITPB
srvctl status database -d CGITPB
srvctl status database -d BOITPC
srvctl start database -d BOITPC
srvctl status database -d BOITPC
srvctl status database -d BOITPD
srvctl start database -d BOITPD
srvctl status database -d BOITPD
srvctl status database -d CGITPA
srvctl start database -d CGITPA
srvctl status database -d CGITPA
---start listener
ps -ef|grep tns
cd /u01/app/oracle/product/11.2.0.4/db_1/bin/
lsnrctl status LISTENER
lsnrctl start LISTENER
lsnrctl status LISTENER
---start agent
ps -ef|grep agent
cd /u01/app/oracle/product/agent12c/core/12.1.0.4.0/bin
./emctl status agent
./emctl start agent
./emctl status agent

ps -ef|grep agent
10.connect to databases and CATBUDLE script to apply PSU
. oraenv
BOITPB
sqlplus / AS SYSDBA
@catbundle.sql psu apply
exit
. oraenv
BOITPA
sqlplus / AS SYSDBA
@catbundle.sql psu apply
exit
. oraenv
CGITPB
sqlplus / AS SYSDBA
@catbundle.sql psu apply
exit
. oraenv
BOITPC
sqlplus / AS SYSDBA
@catbundle.sql psu apply
exit
. oraenv
BOITPD
sqlplus / AS SYSDBA
@catbundle.sql psu apply
exit
. oraenv
CGITPA
sqlplus / AS SYSDBA
@catbundle.sql psu apply
exit
11.Verify the applied patch using below command:
--- check for databases
column
column
column
column
column
select

namespace format a10


action format a10
action_time format a30
version format a10
comments format a30
* from sys.registry$history order by 1;

--- check inventory


. oraenv
CGITPA

/u01/app/oracle/product/11.2.0.4/db_1/OPatch/opatch lsinventory -detail -oh /u01


/app/oracle/product/11.2.0.4/db_1
. oraenv
+ASM
/u02/app/11.2.0.4/grid/OPatch/opatch lsinventory -detail -oh /u02/app/11.2.0.4/g
rid

You might also like