You are on page 1of 7

Passos para aplicao do PATCHESET CPUJAN2015 no RAC HOMOLOG:

--------------------------------------------------------------Patcheset 19955928 (GI + BD)


--Server Lyra
1 - Verificar se a verso do opatch est conforme esta no README.html
2 - Criar como user oracle o arquivo ocm.rsp com as variveis do GRID.
. ./grid_env
cd $ORACLE_HOME/OPatch/ocm/bin
./emocmrsp
mv ocm.rsp /tmp
3 - Como root:
cd /u01/app/11.2.0/grid_1/OPatch
./opatch auto /home/oracle/Patches/Jan2015/19955028 -ocmrf /tmp/ocm.rsp

4 - The following steps load modified SQL files into the database. For an Oracle
RAC environment,
perform these steps on only one node.
-- com user oracle
export ORACLE_SID=hcpahm1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql
SQL> QUIT
export ORACLE_SID=histhm1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql
SQL> QUIT
export ORACLE_SID=terchm1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql

SQL> QUIT

export ORACLE_SID=aprd1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql
SQL> QUIT

export ORACLE_SID=tercd1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql
SQL> QUIT

export ORACLE_SID=histd1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql
SQL> QUIT
################################################################################
################################################################
ABRIR CHAMADO ORACLE SOBRE PROBLEMA APLICACAO NO SEGUNDO N
-- Server Pyxis ( verificar se precisa )
4 - Verificar se a verso do opatch est conforme esta no README.html
5 - Criar como user oracle o arquivo ocm.rsp com as variveis do GRID.
. ./grid_env
cd $ORACLE_HOME/OPatch/ocm/bin
./emocmrsp
mv ocm.rsp /tmp
6 - Como root:
cd /u01/app/11.2.0/grid_1/OPatch
./opatch auto /home/oracle/Patches/Jan2015/19955028 -ocmrf /tmp/ocm.rsp

./opatch auto /home/oracle/Patches/Jan2015/19955028/19769489 -ocmrf /tmp/ocm.rsp


./opatch auto /home/oracle/Patches/Jan2015 -ocmrf /tmp/ocm.rsp
################################################################################
################################################################
--Patcheset 19854503 (security)
--com user oracle
. ./db_env
srvctl
srvctl
srvctl
srvctl
srvctl
srvctl

stop
stop
stop
stop
stop
stop

database
database
database
database
database
database

srvctl
srvctl
srvctl
srvctl
srvctl
srvctl

stop
stop
stop
stop
stop
stop

service
service
service
service
service
service

-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d

hcpahm
terchm
histhm
aprd
histd
tercd
hcpahm -s Srn_hcpahm_001
histhm -s Srn_histhm_001
terchm -s Srn_terchm_001
aprd -s Srn_aprd_001
histd -s Srn_histd_001
tercd -s Srn_tercd_001

cd 19854503
opatch napply -skip_subset -skip_duplicate
Following patches have conflicts: [ 19121551 18744139 19466309 19769489
19854503 20142975 ]
Refer to My Oracle Support Note 1299688.1 for instructions on resolving patch co
nflicts.
OPatch found that the following patches are not required.
They are either subset of the patches in Oracle Home (or) subset of the patches
in the given list
(or) duplicate :
17811429 17811438 17811447 18203835 18203837 18203838 19463893
19544839 19584068 19972564 19972566 19972568 19972569 19972570
UtilSession failed: After skipping conflicting patches, there is no patch to app
ly.
Log file location: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch
2015-03-10_20-25-49PM_1.log

export ORACLE_SID=hcpahm1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA

SQL>
SQL>
SQL>
SQL>

STARTUP
@catbundle.sql cpu apply
@utlrp.sql
QUIT

export ORACLE_SID=histhm1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql cpu apply
SQL> @utlrp.sql
SQL> QUIT
export ORACLE_SID=terchm1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql cpu apply
SQL> @utlrp.sql
SQL> QUIT
----------------export ORACLE_SID=aprd1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql cpu apply
SQL> @utlrp.sql
SQL> QUIT
export ORACLE_SID=histd1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql cpu apply
SQL> @utlrp.sql
SQL> QUIT
export ORACLE_SID=tercd1
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql cpu apply
SQL> @utlrp.sql
SQL> QUIT

################################################################################
####
--Patch 19877440 (JAVA)
--Server Lyra
--- OBS ele atualiza o PYXIS tbm.
. ./db_env
cd 19877440
$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./
For a Non Oracle RAC environment, shut down all databases and listeners associat
ed
with the Oracle home that you are updating.
For an Oracle RAC environment, shut down all the services (database, ASM, listen
ers, nodeapps, and CRS daemons)
running from the Oracle home on all the nodes you want to patch. After all nodes
are patched, start all services.
OPatch is used on only one node at a time.

srvctl
srvctl
srvctl
srvctl
srvctl
srvctl

stop
stop
stop
stop
stop
stop

database
database
database
database
database
database

srvctl
srvctl
srvctl
srvctl
srvctl
srvctl

stop
stop
stop
stop
stop
stop

service
service
service
service
service
service

-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d
-d

hcpahm
terchm
histhm
aprd
histd
tercd
hcpahm -s Srn_hcpahm_001
histhm -s Srn_histhm_001
terchm -s Srn_terchm_001
aprd -s Srn_aprd_001
histd -s Srn_histd_001
tercd -s Srn_tercd_001

-- como oracle
cd /19877440
opatch apply
opatch lsinventory
For an Oracle RAC environment, reload the packages on one of the nodes.
export ORACLE_SID=hcpahm1
cd $ORACLE_HOME/sqlpatch/19877440
sqlplus / as sysdba
startup
SQL> @postinstall.sql

SQL> exit
After installing the SQL portion of the patch, some packages could become INVALI
D.
This will get recompiled upon access or you can run utlrp.sql to get them back i
nto a VALID state.
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql
SQL> exit
export ORACLE_SID=histhm1
cd $ORACLE_HOME/sqlpatch/19877440
sqlplus / as sysdba
startup
SQL> @postinstall.sql
SQL> exit
After installing the SQL portion of the patch, some packages could become INVALI
D.
This will get recompiled upon access or you can run utlrp.sql to get them back i
nto a VALID state.
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql
SQL> exit
export ORACLE_SID=terchm1
cd $ORACLE_HOME/sqlpatch/19877440
sqlplus / as sysdba
startup
SQL> @postinstall.sql
SQL> exit
After installing the SQL portion of the patch, some packages could become INVALI
D.
This will get recompiled upon access or you can run utlrp.sql to get them back i
nto a VALID state.
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql
SQL> exit

export ORACLE_SID=aprd1
cd $ORACLE_HOME/sqlpatch/19877440
sqlplus / as sysdba
startup
SQL> @postinstall.sql
SQL> exit
After installing the SQL portion of the patch, some packages could become INVALI
D.
This will get recompiled upon access or you can run utlrp.sql to get them back i

nto a VALID state.


cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql
SQL> exit

export ORACLE_SID=histd1
cd $ORACLE_HOME/sqlpatch/19877440
sqlplus / as sysdba
startup
SQL> @postinstall.sql
SQL> exit
After installing the SQL portion of the patch, some packages could become INVALI
D.
This will get recompiled upon access or you can run utlrp.sql to get them back i
nto a VALID state.
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql
SQL> exit

export ORACLE_SID=tercd1
cd $ORACLE_HOME/sqlpatch/19877440
sqlplus / as sysdba
startup
SQL> @postinstall.sql
SQL> exit
After installing the SQL portion of the patch, some packages could become INVALI
D.
This will get recompiled upon access or you can run utlrp.sql to get them back i
nto a VALID state.
cd $ORACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql
SQL> exit

You might also like