Professional Documents
Culture Documents
Grid Upgrade& PSU Patch Steps - 21-08-14
Grid Upgrade& PSU Patch Steps - 21-08-14
Grid Upgrade& PSU Patch Steps - 21-08-14
https://nadeemmohammed.wordpress.com/2012/03/13/list-of-oracle-database-patch-set-
updates-psu/
http://www.pythian.com/blog/rdbms-online-patching/
Pre checks :
if the Grid home and oracle home is under the version means we need to update the
patch version first.
1.$GRID_HOME/OPatch/ocm/bin/emocmrsp
2./u01/app/oracle/product/11.2.0.4/grid/OPatch/opatch auto
/u01/app/oracle/software/11204-psu -oh /u01/app/oracle/product/11.2.0.4/db1
-ocmrf /u01/app/oracle/product/11.2.0.4/grid/OPatch/ocm.rsp
3./u01/app/oracle/product/11.2.0.4/grid/OPatch/opatch auto
/u01/app/oracle/software/11204-psu -oh /u01/app/oracle/product/11.2.0.4/grid -ocmrf
/u01/app/oracle/product/11.2.0.4/grid/OPatch/ocm.rsp
SQL> startup
ORACLE instance started.
Session altered.
1 row created.
SQL> COMMIT;
Commit complete.
/u01/app/11.2.0.4/grid/OPatch/ocm/bin/emocmrsp
-------------------------------------
Clufy check :
Apply patch :
Online patch :
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y
Backing up files...
OPatch succeeded.
Syntax :
Host :
cramdb-dt-04d.ula.comcast.net
Patch path: /home/oracle/13903578
===================================================================================
==============================================================================
Rollback :
OPatch succeeded.
[oracle@ttsxd02-po-db01 14034426]$
Apply :
OPatch succeeded.
[oracle@ttsxd02-po-db01 14034426]$
3rd node :
OPatch succeeded.
[oracle@ttsxd01-wc-db01 14034426]$
===================================================================================
================================================================================
7:13 PM 3/2/2015
Prerequiste step :
Cluster Home :
[root@cramdb-dt-06s OPatch]#
/u01/app/oracle/product/11.2.0.4/grid/OPatch/ocm/bin/emocmrsp
OCM Installation Response Generator 10.3.4.0.0 - Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]:
Email address/User Name:
You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: y
The OCM configuration response file (ocm.rsp) was successfully created.
4.Apply the patch usning below syntax (It will automatically restarts the CRS)
/u01/app/oracle/product/11.2.0.4/grid/OPatch/opatch auto
/u01/app/oracle/software/11204-psu -oh /u01/app/oracle/product/11.2.0.4/db1
-ocmrf /u01/app/oracle/product/11.2.0.4/grid/OPatch/ocm.rsp
<<Grid Home>> <<PSU Location>>
<<Grid Home>> <<Grid Home>>
This file will show your detected configuration and all the steps that opatchauto
attempted to do on your system:
/u01/app/oracle/product/11.2.0.4/grid/cfgtoollogs/opatchauto2015-03-02_22-20-
12.report.log
Stopping CRS...
Stopped CRS successfully
Starting CRS...
CRS-4123: Oracle High Availability Services has been started.
--------------------------------------------------------------------------------
Installed Top-level Products (1):
--------------------------------------------------------------------------------
OPatch succeeded.
4. Go to Patch location
===================================================================================
==============
Errors :
DB Upgrade :
Pre check :
SQL> @/tmp/utlu112i.sql;
Oracle Database 11.2 Pre-Upgrade Information Tool 05-17-2015 17:36:44
Script Version: 11.2.0.4.0 Build: 007
.
**********************************************************************
Database:
**********************************************************************
--> name: WTDEV
--> version: 11.2.0.3.0
--> compatible: 11.2.0.0.0
--> blocksize: 8192
--> platform: Linux x86 64-bit
--> timezone file: V14
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 1371 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 1970 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
.... minimum required size: 400 MB
--> TEMP tablespace is adequate for the upgrade.
.... minimum required size: 60 MB
.
**********************************************************************
Flashback: OFF
**********************************************************************
**********************************************************************
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
Note: Pre-upgrade tool was run on a lower version 64-bit database.
**********************************************************************
--> If Target Oracle is 32-Bit, refer here for Update Parameters:
-- No update parameter changes are required.
.
**********************************************************************
Components: [The following database components will be upgraded or installed]
**********************************************************************
--> Oracle Catalog Views [upgrade] VALID
--> Oracle Packages and Types [upgrade] VALID
--> JServer JAVA Virtual Machine [upgrade] VALID
--> Oracle XDK for Java [upgrade] VALID
--> Real Application Clusters [upgrade] VALID
--> Oracle Workspace Manager [upgrade] VALID
--> Oracle XML Database [upgrade] VALID
--> Oracle Java Packages [upgrade] VALID
--> Oracle interMedia [upgrade] VALID
--> Spatial [upgrade] VALID
--> Expression Filter [upgrade] VALID
--> Rule Manager [upgrade] VALID
.
**********************************************************************
Miscellaneous Warnings
**********************************************************************
WARNING: --> The "cluster_database" parameter is currently "TRUE"
.... and must be set to "FALSE" prior to running a manual upgrade.
WARNING: --> Database contains INVALID objects prior to upgrade.
.... The list of invalid SYS/SYSTEM objects was written to
.... registry$sys_inv_objs.
.... The list of non-SYS/SYSTEM objects was written to
.... registry$nonsys_inv_objs.
.... Use utluiobj.sql after the upgrade to identify any new invalid
.... objects due to the upgrade.
.... USER WT has 55 INVALID objects.
.... USER ORALMS has 1 INVALID objects.
WARNING: --> Your recycle bin contains 105860 object(s).
.... It is REQUIRED that the recycle bin is empty prior to upgrading
.... your database. The command:
PURGE DBA_RECYCLEBIN
.... must be executed immediately prior to executing your upgrade.
WARNING: --> JOB_QUEUE_PROCESS value must be updated
.... Your current setting of "10" is too low.
EXECUTE dbms_stats.gather_dictionary_stats;
**********************************************************************
SQL> exit
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> QUIT
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @utlrp.sql
cmdbdb-dt-a1q.downingtown.pa.ula.comcast.net:(SET_ME)/u01/app/oracle/software/GRID-
11204 > runcluvfy.sh stage -pre crsinst -upgrade -n cmdbdb-dt-a1q,cmdbdb-dt-a2q
-rolling -src_crshome /u01/app/grid -dest_crshome /u01/app/11.2.0.4/grid
-dest_version 11.2.0.4.0
NTP daemon's boot time configuration check for slewing option passed
File "/etc/resolv.conf" does not have both domain and search entries defined
domain entry in file "/etc/resolv.conf" is consistent across nodes
search entry in file "/etc/resolv.conf" is consistent across nodes
All nodes have one search entry defined in file "/etc/resolv.conf"
The DNS response time for an unreachable node is within acceptable limit on all
nodes
Pre-check for cluster services setup was unsuccessful on all the nodes.
https://nadeemmohammed.wordpress.com/2012/03/13/list-of-oracle-database-patch-set-
updates-psu/