You are on page 1of 16

Grid Control Patch Set 10.2.0.

3 Step by Step Install On Linux


Alejandro Vargas 11/02/2007

INDEX About This Document...................................................................................................................................................................................... 2 1. Check your Grid Control Database Version ................................................................................................................................................ 2 2. Download the last Patch Set for Both database and Grid Control............................................................................................................... 2 3. Read the preinstall requisites of the Grid Control Patchset. ........................................................................................................................ 3 4. Stop all Grid Control Components .............................................................................................................................................................. 3 5. Make a Backup of the complete Grid Control Installation .......................................................................................................................... 6 6. If the Database is 10.0.1.0.4 install patch for bug 4329444......................................................................................................................... 7 7. Restart the Database and listener (before Installing the OMS Patch).......................................................................................................... 9 8. Apply the 10.2.0.3 Patchset to Grid Control.............................................................................................................................................. 11 9. Install the Patch on the Agent Home ......................................................................................................................................................... 15 10. Repeat Install of the Patchset of the Agents Home on other servers ....................................................................................................... 16 End of the procedure...................................................................................................................................................................................... 16

About This Document


This document describes the steps used to update Grid Control 10.2.0.1 to 10.2.0.3 on a Linux Red Hat Enterprise Linux AS release 32 bits machine. For a complete reference thoroughly check the Readme of the Grid Control Patchset.

1. Check your Grid Control Database Version


{oragrid} /home/oracle [gridsrv] > sqlplus '/ as sysdba' SQL*Plus: Release 10.1.0.4.0 - Production on Thu Feb 8 10:43:06 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production With the Partitioning, OLAP and Data Mining options

2. Download the last Patch Set for Both database and Grid Control
Patch#5337014 Patchset for oracle database server: NOV-2006, size 900M Patch #3731593 Enterprise Manager Grid Control: FEB-2007, size 528M Patchset Version 10.2.0.3, date 29Patchset Version 10.2.0.3, date 01-

3. Read the preinstall requisites of the Grid Control Patchset. Check the Readme of the Grid Control Patchset

4. Stop all Grid Control Components


Environment Variables and Aliases used on the Grid Control server for setting up the environment: setenv $BASE_PATH /gridsrv/app01/oracle/scripts/general:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/ sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local/ maint/oracle setenv ORACLE_BASE /gridsrv/app01/oracle setenv ORACLE_HOME /gridsrv/app01/oracle/OracleHomes/db10g setenv DBS_HOME /gridsrv/app01/oracle/OracleHomes/db10g setenv OMS_HOME /gridsrv/app01/oracle/OracleHomes/oms10g setenv AGENT_HOME /gridsrv/app01/oracle/OracleHomes/agent10g setenv ORACLE_SID emrep 10ag setenv ORACLE_HOME $AGENT_HOME; setenv PATH ${ORACLE_HOME}/bin:${BASE_PATH} 10db setenv ORACLE_HOME $DBS_HOME; setenv PATH ${ORACLE_HOME}/bin:${BASE_PATH} 10gr setenv ORACLE_HOME $OMS_HOME; setenv PATH ${ORACLE_HOME}/bin:${BASE_PATH} - Stop agent

{oragrid} /home/oracle [gridsrv] > 10ag {oragrid} /home/oracle [gridsrv] > emctl stop agent Oracle Enterprise Manager 10g Release 10.2.0.1.0. Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. Stopping agent ... stopped. - Stop all Grid Components {oragrid} /home/oracle [gridsrv] > $ORACLE_HOME/dcm/bin/dcmctl getstate -v

Current State for Instance:EnterpriseManager0.gridsrv.testgsm.org Component Type Up Status In Sync Status ================================================================================ 1 home OC4J Up True 2 HTTP_Server HTTP_Server Up True 3 OC4J_EM OC4J Up True 4 OC4J_EMPROV OC4J Up True {oragrid} /home/oracle [gridsrv] > $ORACLE_HOME/opmn/bin/opmnctl stopall opmnctl: stopping opmn and all managed processes... {oragrid} /home/oracle [gridsrv] > $ORACLE_HOME/dcm/bin/dcmctl getstate -v

Current State for Instance:EnterpriseManager0.gridsrv.testgsm.org Component Type Up Status In Sync Status ================================================================================

1 2 3 4

home HTTP_Server OC4J_EM OC4J_EMPROV

OC4J HTTP_Server OC4J OC4J

Down Down Down Down

True True True True

{oragrid} /home/oracle [gridsrv] > emctl status oms Oracle Enterprise Manager 10g Release 10.2.0.1.0 Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved. Oracle Management Server is Down. - Stop the database {oragrid} /home/oracle [gridsrv] > 10db {oragrid} /home/oracle [gridsrv] > sts emrep {oragrid} /home/oracle [gridsrv] > sqlplus '/as sysdba' SQL*Plus: Release 10.1.0.4.0 - Production on Thu Feb 8 14:03:13 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production With the Partitioning, OLAP and Data Mining options SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> exit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 Production With the Partitioning, OLAP and Data Mining options

5. Make a Backup of the complete Grid Control Installation


Check all Directories that need to be backed up. In this case all homes are installed under a same directory: /gridsrv/app01 it contains the inventory, OMS home, agent home and oracle database home. /gridsrv/app01/oracle | flash_recovery_area OracleHomes oradata | agent10g db10g oms10g

admin

oraInventory

scripts

- Check available space for backup {oragrid} /home/oracle [gridsrv] > df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 54040380 21712584 29582692 43% / none 8205224 0 8205224 0% /dev/shm /dev/vx/dsk/gridsrv/oracle 110092288 1185576 108055888 2% /gridsrv/oracle - Create a directory to hold the backup mkdir /gridsrv/oracle/GRID_CONTROL_BACKUP

- Create a tar file containing the whole installation cd /gridsrv/app01 tar cvf /gridsrv/oracle/GRID_CONTROL_BACKUP/full_backup_08_feb_2007.tar app01/*

6. If the Database is 10.0.1.0.4 install patch for bug 4329444


In case of Grid Control environment installed via "Enterprise Manager using New Database" option or "Enterprise Manager using an existing Database" option with 10.1.0.4 or 10.1.0.5 Database, then before upgrading to 10.2.0.3, apply the patch for bug 4329444 on the Database Home. {oragrid} /home/oragrid/gridpatch10203 [gridsrv] > unzip p4329444_10104_LINUX.zip Archive: p4329444_10104_LINUX.zip creating: 4329444/ creating: 4329444/files/ creating: 4329444/files/lib/ creating: 4329444/files/lib/libserver10.a/ inflating: 4329444/files/lib/libserver10.a/qerix.o creating: 4329444/etc/ creating: 4329444/etc/config/ inflating: 4329444/etc/config/inventory inflating: 4329444/etc/config/actions creating: 4329444/etc/xml/ inflating: 4329444/etc/xml/GenericActions.xml inflating: 4329444/etc/xml/ShiphomeDirectoryStructure.xml inflating: 4329444/README.txt

{oragrid} /home/oragrid/gridpatch10203 [gridsrv] > cd 4329444/ {oragrid} /home/oragrid/gridpatch10203/4329444 [gridsrv] > /gridsrv/app01/oracle/OracleHomes/db10g/OPatch/opatch apply Invoking OPatch 10.2.0.1.0 Oracle interim Patch Installer version 10.2.0.1.0 Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home : /gridsrv/app01/oracle/OracleHomes/db10g Central Inventory : /gridsrv/app01/oracle/oraInventory from : /gridsrv/app01/oracle/OracleHomes/db10g/oraInst.loc OPatch version : 10.2.0.1.0 OUI version : 10.2.0.1.0 OUI location : /gridsrv/app01/oracle/OracleHomes/db10g/oui Log file location : /gridsrv/app01/oracle/OracleHomes/db10g/cfgtoollogs/opatch/opatch2007_Feb_08_16-53-51-IST_Thu.log ApplySession applying interim patch '4329444' to OH '/gridsrv/app01/oracle/OracleHomes/db10g' Invoking fuser to check for active processes. Invoking fuser on "/gridsrv/app01/oracle/OracleHomes/db10g/bin/oracle" OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = '/gridsrv/app01/oracle/OracleHomes/db10g')

Is the local system ready for patching? Do you want to proceed? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '4329444' for restore. This might take a while... Backing up files affected by the patch '4329444' for rollback. This might take a while... Patching component oracle.rdbms, 10.1.0.4.0... Updating archive file "/gridsrv/app01/oracle/OracleHomes/db10g/lib/libserver10.a" "lib/libserver10.a/qerix.o" Running make for target ioracle ApplySession adding interim patch '4329444' to inventory The local system has been patched and can be restarted. OPatch succeeded.

with

7. Restart the Database and listener (before Installing the OMS Patch)
{oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > 10db {oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > sts emrep {oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > sql SQL*Plus: Release 10.1.0.4.0 - Production on Sun Feb 11 10:56:01 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved.

Connected to an idle instance. SQL> startup ORACLE instance started. Total System Global Area Fixed Size Variable Size Database Buffers Redo Buffers Database mounted. Database opened. SQL> 536870912 780056 178526440 356515840 1048576 bytes bytes bytes bytes bytes

{oragrid} [gridsrv] > lsnrctl start LISTENER LSNRCTL for Linux: Version 10.1.0.4.0 - Production on 11-FEB-2007 11:07:20 Copyright (c) 1991, 2004, Oracle. All rights reserved.

Starting /gridsrv/app01/oracle/OracleHomes/db10g/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 10.1.0.4.0 - Production System parameter file is /gridsrv/app01/oracle/OracleHomes/db10g/network/admin/listener.ora Log messages written to /gridsrv/app01/oracle/OracleHomes/db10g/network/log/listener.log Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gridsrv.testgsm.org)(PORT=1521))) Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))

STATUS of the LISTENER -----------------------Alias LISTENER Version TNSLSNR for Linux: Version 10.1.0.4.0 - Production Start Date 11-FEB-2007 11:07:20 Uptime 0 days 0 hr. 0 min. 0 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /gridsrv/app01/oracle/OracleHomes/db10g/network/admin/listener.ora Listener Log File /gridsrv/app01/oracle/OracleHomes/db10g/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gridsrv.testgsm.org)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "emrep" has 1 instance(s). Instance "emrep", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully

8. Apply the 10.2.0.3 Patchset to Grid Control


Go to the directory where you unzipped the Patchset: {oragrid} [gridsrv] > cd /home/oragrid/gridpatch10203/GC10203/3731593/Disk1/ {oragrid} [gridsrv] > ls doc install oui response runInstaller stage

Setup the Display {oragrid} [gridsrv] > setenv DISPLAY OSN10928:0.0

Execute runInstaller {oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > ./runInstaller Starting Oracle Universal Installer... Checking installer requirements...

The full message on the last screen: Use the following URL to access the Oracle Enterprise Manager 10g Application Server Control Console : http://gridsrv.testgsm.org:1156

The following information is available in: /gridsrv/app01/oracle/OracleHomes/oms10g/install/setupinfo.txt Oracle Application Server 10g 10.1.2.0.2 Usernames and Default password information: Please refer to the Oracle Application Server 10g Administrator Guide for more information. Install Type: J2EE and Web Cache Services Configured Components:

Use the following URL to access the Oracle HTTP Server and the Welcome Page: http://gridsrv.testgsm.org:7777

----------------------------------------Use the following URL to access the Oracle Enterprise Manager Application Server Control: http://gridsrv.testgsm.org:1156 Instance Name: EnterpriseManager0.gridsrv.testgsm.org Note: The Software Library was not been set up prior to the patchset installation. Because of this some Software Library components and directives required by the Provisioning Pack have not be created. You can set them up post patchset installation by

a. Set up Software Library - For details on setting up the software library, refer to section 15.7 "Setting up and Configuring Software Library with Oracle Enterprise Manager" of Chapter 15 "Additional Configuration Tasks" in the Enterprise Manager Advanced Configuration Guide. b. Once the software library is setup, run following command from OMS ORACLE HOME : /gridsrv/app01/oracle/OracleHomes/oms10g/bin/PARDeploy -action deploy -parFile /gridsrv/app01/oracle/OracleHomes/oms10g/sysman/prov/paf/patchAdvisor.par force Check OMS Status: {oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > $ORACLE_HOME/bin/emctl status oms Oracle Enterprise Manager 10g Release 3 Grid Control Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved. Oracle Management Server is Up. {oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > $ORACLE_HOME/dcm/bin/dcmctl getstate -v

Current State for Instance:EnterpriseManager0.gridsrv.testgsm.org Component Type Up Status In Sync Status ================================================================================ 1 home OC4J Up True 2 HTTP_Server HTTP_Server Up True 3 OC4J_EM OC4J Up True 4 OC4J_EMPROV OC4J Up True

9. Install the Patch on the Agent Home

Check Agent Status: {oragrid} /home/oragrid/gridpatch10203/GC10203/3731593/Disk1 [gridsrv] > emctl status agent Oracle Enterprise Manager 10g Release 3 Grid Control 10.2.0.3.0. Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved. --------------------------------------------------------------Agent Version : 10.2.0.3.0 OMS Version : 10.2.0.3.0 Protocol Version : 10.2.0.2.0 Agent Home : /gridsrv/app01/oracle/OracleHomes/agent10g Agent binaries : /gridsrv/app01/oracle/OracleHomes/agent10g Agent Process ID : 20304 Parent Process ID : 20284 Agent URL : https://gridsrv.testgsm.org:3872/emd/main/ Repository URL : https://gridsrv.testgsm.org:1159/em/upload Started at : 2007-02-11 12:50:49 Started by user : oracle Last Reload : 2007-02-11 12:52:36 Last successful upload : 2007-02-11 12:59:20 Total Megabytes of XML files uploaded so far : 10.42 Number of XML files pending upload : 0

Size of XML files pending upload(MB) : 0.00 Available disk space on upload filesystem : 50.48% Last successful heartbeat to OMS : 2007-02-11 12:58:57 --------------------------------------------------------------Agent is Running and Ready

10. Repeat Install of the Patchset of the Agents Home on other servers End of the procedure

You might also like