You are on page 1of 31

10g OCW, ASM and RAC Upgrade to 11g on Linux

Alejandro Vargas | Principal Support Consultant Oracle Advanced Customer Services

PART III RAC Database Upgrade


Summary............................................................................................................................................................................2 The Environment................................................................................................................................................................2 Upgrade Database to 11.1.0.7............................................................................................................................................ 4 Running the utlu111i.sql pre-check script.......................................................................................................................4 Install Timezone patches 5126270 and 5632264........................................................................................................7 Add Opatch to the Path................................................................................................................................................... 8 Being at the patch root directory execute the opatch apply command:...........................................................................8 Once the path is installed we need to re-check with the utlu111i.sql script...................................................................17 Execute Database Upgrade Assistant to Upgrade the Database.....................................................................................21 LIST OF COMMANDS USED ON THIS DOCUMENT...................................................................................................... 0 3 ANNEXES......................................................................................................................................................................... 0 3 Chkcrs script.................................................................................................................................................................30

1/1

10g OCW, ASM and RAC Upgrade to 11g on Linux


Summary
This document describes the procedure to upgrade Oracle Clusterware, ASM and RAC database from 10.2.0.3 to 11.1.0.7 step by step. The CRS and ASM upgrades are straightforward and were completed without any inconvenient. The database upgrade took longer and required more manual intervention, there are several preupgrade tasks that must be completed, even using the database upgrade assistant. Usually I do prefere manual upgrades but this time I wanted to check how well DBUA worked on 11g and it did the job quite well.

The Environment
The environment consisted of 2 nodes running Red Hat Linux Version 4, Oracle clusterware and database version 10.2.0.3 [oracle@rac1 ~]$ uname -a Linux rac1.av.com 2.6.9-55.0.0.0.2.EL #1 Wed May 2 14:55:28 PDT 2007 i686 i686 i386 GNU/Linux [oracle@rac1 ~]$ cat /etc/issue Enterprise Linux Enterprise Linux AS release 4 (October Update 5) Kernel \r on an \m [oracle@rac1 ~]$ chkcrs HA Resource ----------ora.rac1.ASM1.asm ora.rac1.ASM1.asm ora.rac1.LISTENER_RAC1.lsnr ora.rac1.gsd

Target -----ONLINE ONLINE ONLINE ONLINE

State ----ONLINE ONLINE ONLINE ONLINE

on on on on

rac1 rac1 rac1 rac1

2/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


ora.rac1.ons ora.rac1.vip ora.rac2.ASM2.asm ora.rac2.LISTENER_RAC2.lsnr ora.rac2.gsd ora.rac2.ons ora.rac2.vip ora.sati.db ora.sati.dbserv.cs ora.sati.dbserv.sati1.srv ora.sati.dbserv.sati2.srv ora.sati.sati1.inst ora.sati.sati2.inst ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE on on on on on on on on on on on on on rac1 rac1 rac2 rac2 rac2 rac2 rac2 rac2 rac2 rac1 rac2 rac1 rac2

[oracle@rac1 bin]$ crsctl query crs softwareversion CRS software version on node [rac1] is [10.2.0.3.0] [oracle@rac1 bin]$ crsctl query crs activeversion CRS active version on the cluster is [10.2.0.3.0] SQL> select * from v$version; BANNER ---------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod PL/SQL Release 10.2.0.3.0 - Production

3/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


CORE 10.2.0.3.0 Production TNS for Linux: Version 10.2.0.3.0 - Production NLSRTL Version 10.2.0.3.0 - Production

Upgrade Database to 11.1.0.7


Before starting the database upgrade there are several pre-upgrade steps that need to be completed. The first step is to run the premigration checkup script utlu111i.sql. This script is located on: <11g-OracleHome>/rdbms/admin directory. You can copy it to the 10g home and from there execute it on the 10g database before starting the upgrade. The utlu111i.sql will provide on its output infromation about aditional steps that may be required to execute before the migration.

Running the utlu111i.sql pre-check script


[oracle@rac1 utl11]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.3.0 - Production on Mon Dec 15 20:53:04 2008 Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options SQL> set pages 50000 lines 120 SQL> spool chk.log SQL> @utlu111i.sql

4/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


Oracle Database 11.1 Pre-Upgrade Information Tool 12-15-2008 20:53:53 . ********************************************************************** Database: ********************************************************************** --> name: SATI --> version: 10.2.0.3.0 --> compatible: 10.2.0.3.0 --> blocksize: 8192 --> platform: Linux IA (32-bit) --> timezone file: V3 . ********************************************************************** Tablespaces: [make adjustments in the current environment] ********************************************************************** --> SYSTEM tablespace is adequate for the upgrade. .... minimum required size: 734 MB .... AUTOEXTEND additional space required: 254 MB --> UNDOTBS1 tablespace is adequate for the upgrade. .... minimum required size: 448 MB .... AUTOEXTEND additional space required: 413 MB --> SYSAUX tablespace is adequate for the upgrade. .... minimum required size: 494 MB .... AUTOEXTEND additional space required: 184 MB --> TEMP tablespace is adequate for the upgrade. .... minimum required size: 61 MB .... AUTOEXTEND additional space required: 41 MB . ********************************************************************** Update Parameters: [Update Oracle Database 11.1 init.ora or spfile] ********************************************************************** WARNING: --> "sga_target" needs to be increased to at least 336 MB

5/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


. ********************************************************************** Renamed Parameters: [Update Oracle Database 11.1 init.ora or spfile] ********************************************************************** -- No renamed parameters found. No changes are required. . ********************************************************************** Obsolete/Deprecated Parameters: [Update Oracle Database 11.1 init.ora or spfile] ********************************************************************** --> "background_dump_dest" replaced by "diagnostic_dest" --> "user_dump_dest" replaced by "diagnostic_dest" --> "core_dump_dest" replaced by "diagnostic_dest" . ********************************************************************** 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 --> OLAP Analytic Workspace [upgrade] VALID --> OLAP Catalog [upgrade] VALID --> EM Repository [upgrade] VALID --> Oracle Text [upgrade] VALID --> Oracle XML Database [upgrade] VALID --> Oracle Java Packages [upgrade] VALID --> Oracle interMedia [upgrade] VALID --> Spatial [upgrade] VALID --> Data Mining [upgrade] VALID --> Expression Filter [upgrade] VALID

6/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


--> Rule Manager [upgrade] VALID --> Oracle OLAP API [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 is using an old timezone file version. .... Patch the 10.2.0.3.0 database to timezone file version 4 .... BEFORE upgrading the database. Re-run utlu111i.sql after .... patching the database to record the new timezone file version. WARNING: --> Database contains stale optimizer statistics. .... Refer to the 11g Upgrade Guide for instructions to update .... statistics prior to upgrading the database. .... Component Schemas with stale statistics: .... SYS WARNING: --> Database contains schemas with objects dependent on network packages. .... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs. WARNING: --> EM Database Control Repository exists in the database. .... Direct downgrade of EM Database Control is not supported. Refer to the .... 11g Upgrade Guide for instructions to save the EM data prior to upgrade. . PL/SQL procedure successfully completed. SQL> exit

Install Timezone patches 5126270 and 5632264

7/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


After the execution of the pre-check we find that we need to update the Timezone File Version, this is a step that must be executed before continuing the upgrade. In order to upgrade the Timezone File Version we need to install two patches: Patch 5126270 and patch 5632264 to install the Timezone File Version 4, both of them to be applied on top of 10.2.0.3. Download generic platform patch 5126270 to be applied on top of 10.2.0.3. To get to the download page use the links provided on Note 413671.1 on Metalink. Before installing the patch setup the PATH environment variable to include both the Opatch directory and the directory where the patch is located. You will need to set the environment variable OPATCH_PLATFORM_ID to 0. The Patch does not require to shutdown the database, it adds the script utltzuv2.sql to the ?/rdbms/admin directory, and it will be installed automatically on all RAC nodes. Once the script will be installed you will need to run it to check if further manual steps are required, if you get some output from the script please check the patch readme for instructions.

Add Opatch to the Path


[oracle@rac1 OPatch]$ setenv PATH ${PATH}:/u01/app/oracle/product/10.2.0/db_1/OPatch [oracle@rac1 5746875]$ cd /export/home/oracle/TZPATCH/5746875 [oracle@rac1 5746875]$ setenv PATH ${PATH}:/export/home/oracle/TZPATCH/5746875 [oracle@rac1 5746875]$ setenv OPATCH_PLATFORM_ID 0

Being at the patch root directory execute the opatch apply command:

8/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


[oracle@rac1 5746875]$ opatch apply Invoking OPatch 10.2.0.3.0 Oracle interim Patch Installer version 10.2.0.3.0 Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home : /u01/app/oracle/product/10.2.0/db_1 Central Inventory : /u01/app/oracle/oraInventory from : /etc/oraInst.loc OPatch version : 10.2.0.3.0 OUI version : 10.2.0.3.0 OUI location : /u01/app/oracle/product/10.2.0/db_1/oui Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-1215_17-28-13PM.log ApplySession applying interim patch '5746875' to OH '/u01/app/oracle/product/10.2.0/db_1' OPatch detected the node list and the local node from the inventory. the local system then propagate the patch to the remote nodes. OPatch will patch

Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '5746875' for restore. This might take a while... Backing up files affected by the patch '5746875' for rollback. This might take a while... Patching component oracle.oracore.rsf, 10.2.0.3.0... Copying file to "/u01/app/oracle/product/10.2.0/db_1/oracore/zoneinfo/timezdif.csv" Copying file to "/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/utltzuv2.sql" ApplySession adding interim patch '5746875' to inventory Verifying the update...

9/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


Inventory check OK: Patch ID 5746875 is registered in Oracle Home inventory with proper meta-data. Files check OK: Files from Patch ID 5746875 are present in Oracle Home. Patching in rolling mode. Updating nodes 'rac2' Apply-related files are: FP = "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_Feb_28_2007_07_19_02/rac/copy_ files.txt" DP = "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_Feb_28_2007_07_19_02/rac/copy_ dirs.txt" MP = "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_Feb_28_2007_07_19_02/rac/make_ cmds.txt" Instantiating the file "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_Feb_28_2007_07_19_02/rac/copy_ files.txt.instantiated" by replacing $ORACLE_HOME in "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_Feb_28_2007_07_19_02/rac/copy_ files.txt" with actual path. Propagating files to remote nodes... Instantiating the file "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_F eb_28_2007_07_19_02/rac/copy_dirs.txt.instantiated" by replacing $ORACLE_HOME in "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5746875_Feb_28_2007_07_19_02/rac/copy_ dirs.txt" with actual path. Propagating directories to remote nodes... OPatch succeeded.

10/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


Check on both Nodes [oracle@rac1 5746875]$ opatch lsinventory | grep "Patch 5746875" Patch 5746875 : applied on Mon Dec 15 17:28:24 IST 2008 [oracle@rac2 OPatch]$ ./opatch lsinventory | grep "Patch 5746875" Patch 5746875 : applied on Mon Dec 15 17:28:24 IST 2008 Once the Patch is installed run as sysdba the script ?/rdbms/admin/utltzuv2.sql [oracle@rac1 admin]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.3.0 - Production on Mon Dec 15 20:42:55 2008 Copyright (c) 1982, 2006, Oracle. All Rights Reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options SQL> @utltzuv2.sql DROP TABLE sys.sys_tzuv2_temptab * ERROR at line 1: ORA-00942: table or view does not exist

Table created.

11/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


DROP TABLE sys.sys_tzuv2_temptab1 * ERROR at line 1: ORA-00942: table or view does not exist Table created. Query sys.sys_tzuv2_temptab table to see if any TIMEZONE data is affected by version 4 transition rules PL/SQL procedure successfully completed. Commit complete. PL/SQL procedure successfully completed. Commit complete. SQL> select * from sys.sys_tzuv2_temptab 2 ; no rows selected Applying Patch 5632264 to Update Timezone Files to Version 4 [oracle@rac1 5632264]$ setenv PATH ${PATH}:/u01/app/oracle/product/10.2.0/db_1/OPatch [oracle@rac1 5632264]$ setenv PATH ${PATH}:/export/home/oracle/TZPATCH2 /u01/app/oracle/product/10.2.0/db_1/bin:/u01/app/oracle/product/10.2.0/crs_1/bin:/bin:/usr /bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/u01/app/oracle/product/10.2.0/db_1/OPatch:/e xport/home/oracle/ not found [oracle@rac1 5632264]$ setenv PATH ${PATH}:/export/home/oracle/TZPATCH2/5

12/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


/u01/app/oracle/product/10.2.0/db_1/bin:/u01/app/oracle/product/10.2.0/crs_1/bin:/bin:/usr /bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/u01/app/oracle/product/10.2.0/db_1/OPatch:/e xport/home/oracle/TZPATCH2/ not found [oracle@rac1 5632264]$ setenv PATH ${PATH}:/export/home/oracle/TZPATCH2/5632264 [oracle@rac1 5632264]$ pwd /export/home/oracle/TZPATCH2/5632264 [oracle@rac1 5632264]$ srvctl stop database -d sati [oracle@rac1 5632264]$ ls etc files README.txt [oracle@rac1 5632264]$ opatch lsinventory Invoking OPatch 10.2.0.3.0 Oracle interim Patch Installer version 10.2.0.3.0 Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home Central Inventory from OPatch version OUI version OUI location Log file location 15_23-05-22PM.log

: : : : : : :

/u01/app/oracle/product/10.2.0/db_1 /u01/app/oracle/oraInventory /etc/oraInst.loc 10.2.0.3.0 10.2.0.3.0 /u01/app/oracle/product/10.2.0/db_1/oui /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-12-

Lsinventory Output file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2008-12-15_23-0522PM.txt

13/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


-------------------------------------------------------------------------------Installed Top-level Products (2): Oracle Database 10g Oracle Database 10g Release 2 Patch Set 2 There are 2 products installed in this Oracle Home. 10.2.0.1.0 10.2.0.3.0

Interim patches (3) : Patch 5746875 : applied on Mon Dec 15 17:28:24 IST 2008 Created on 28 Feb 2007, 07:19:02 hrs US/Eastern Bugs fixed: 5126270, 5726033, 5746875 Patch 5556081 : applied on Wed Jun 20 23:05:13 IDT 2007 Created on 9 Nov 2006, 22:20:50 hrs PST8PDT Bugs fixed: 5556081 Patch 5557962 : applied on Wed Jun 20 23:04:27 IDT 2007 Created on 9 Nov 2006, 23:23:06 hrs PST8PDT Bugs fixed: 4269423, 5557962, 5528974

Rac system comprising of multiple nodes Local node = rac1 Remote node = rac2 --------------------------------------------------------------------------------

14/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


OPatch succeeded. [oracle@rac1 5632264]$ opatch apply Invoking OPatch 10.2.0.3.0 Oracle interim Patch Installer version 10.2.0.3.0 Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home Central Inventory from OPatch version OUI version OUI location Log file location 15_23-05-41PM.log

: : : : : : :

/u01/app/oracle/product/10.2.0/db_1 /u01/app/oracle/oraInventory /etc/oraInst.loc 10.2.0.3.0 10.2.0.3.0 /u01/app/oracle/product/10.2.0/db_1/oui /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-12-

ApplySession applying interim patch '5632264' to OH '/u01/app/oracle/product/10.2.0/db_1' OPatch detected the node list and the local node from the inventory. the local system then propagate the patch to the remote nodes. OPatch will patch

This node is part of an Oracle Real Application Cluster. Remote nodes: 'rac2' Local node: 'rac1' Please shut down Oracle instances running out of this ORACLE_HOME on all the nodes. (Oracle Home = '/u01/app/oracle/product/10.2.0/db_1') Are all the nodes ready for patching? Do you want to proceed? [y|n]

15/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


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 '5632264' for restore. This might take a while... Backing up files affected by the patch '5632264' for rollback. This might take a while... Patching component oracle.oracore.rsf, 10.2.0.3.0... Copying file to "/u01/app/oracle/product/10.2.0/db_1/oracore/zoneinfo/timezone.dat" Copying file to "/u01/app/oracle/product/10.2.0/db_1/oracore/zoneinfo/timezlrg.dat" Copying file to "/u01/app/oracle/product/10.2.0/db_1/oracore/zoneinfo/readme.txt" ApplySession adding interim patch '5632264' to inventory Verifying the update... Inventory check OK: Patch ID 5632264 is registered in Oracle Home inventory with proper meta-data. Files check OK: Files from Patch ID 5632264 are present in Oracle Home. Patching in all-node mode. Updating nodes 'rac2' Apply-related files are: FP = "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/copy_ files.txt" DP = "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/copy_ dirs.txt" MP = "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/make_ cmds.txt"

16/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


Instantiating the file "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/copy_ files.txt.instantiated" by replacing $ORACLE_HOME in "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/copy_ files.txt" with actual path. Propagating files to remote nodes... Instantiating the file "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/copy_ dirs.txt.instantiated" by replacing $ORACLE_HOME in "/u01/app/oracle/product/10.2.0/db_1/.patch_storage/5632264_Dec_26_2006_02_50_30/rac/copy_ dirs.txt" with actual path. Propagating directories to remote nodes... All nodes have been patched. 'rac2' You may start Oracle instances on the local system and nodes

OPatch succeeded.

Once the path is installed we need to re-check with the utlu111i.sql script
Rexecute the checkup script SQL> !ls chk.log utlu111i.sql SQL> spool chk2.log SQL> @utlu111i.sql Oracle Database 11.1 Pre-Upgrade Information Tool .

12-15-2008 23:12:23

17/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


********************************************************************** Database: ********************************************************************** --> name: SATI --> version: 10.2.0.3.0 --> compatible: 10.2.0.3.0 --> blocksize: 8192 --> platform: Linux IA (32-bit) --> timezone file: V4 . ********************************************************************** Tablespaces: [make adjustments in the current environment] ********************************************************************** --> SYSTEM tablespace is adequate for the upgrade. .... minimum required size: 734 MB .... AUTOEXTEND additional space required: 254 MB --> UNDOTBS1 tablespace is adequate for the upgrade. .... minimum required size: 455 MB .... AUTOEXTEND additional space required: 420 MB --> SYSAUX tablespace is adequate for the upgrade. .... minimum required size: 495 MB .... AUTOEXTEND additional space required: 185 MB --> TEMP tablespace is adequate for the upgrade. .... minimum required size: 61 MB .... AUTOEXTEND additional space required: 41 MB . ********************************************************************** Update Parameters: [Update Oracle Database 11.1 init.ora or spfile] ********************************************************************** WARNING: --> "sga_target" needs to be increased to at least 336 MB . **********************************************************************

18/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


Renamed Parameters: [Update Oracle Database 11.1 init.ora or spfile] ********************************************************************** -- No renamed parameters found. No changes are required. . ********************************************************************** Obsolete/Deprecated Parameters: [Update Oracle Database 11.1 init.ora or spfile] ********************************************************************** --> "background_dump_dest" replaced by "diagnostic_dest" --> "user_dump_dest" replaced by "diagnostic_dest" --> "core_dump_dest" replaced by "diagnostic_dest" . ********************************************************************** 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 --> OLAP Analytic Workspace [upgrade] VALID --> OLAP Catalog [upgrade] VALID --> EM Repository [upgrade] VALID --> Oracle Text [upgrade] VALID --> Oracle XML Database [upgrade] VALID --> Oracle Java Packages [upgrade] VALID --> Oracle interMedia [upgrade] VALID --> Spatial [upgrade] VALID --> Data Mining [upgrade] VALID --> Expression Filter [upgrade] VALID --> Rule Manager [upgrade] VALID --> Oracle OLAP API [upgrade] VALID

19/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


. ********************************************************************** 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 stale optimizer statistics. .... Refer to the 11g Upgrade Guide for instructions to update .... statistics prior to upgrading the database. .... Component Schemas with stale statistics: .... SYS WARNING: --> Database contains schemas with objects dependent on network packages. .... Refer to the 11g Upgrade Guide for instructions to configure Network ACLs. WARNING: --> EM Database Control Repository exists in the database. .... Direct downgrade of EM Database Control is not supported. Refer to the .... 11g Upgrade Guide for instructions to save the EM data prior to upgrade. . PL/SQL procedure successfully completed.

The remaining warnings will not affect the automatic upgrade using DBUA so I can continue

20/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


Execute Database Upgrade Assistant to Upgrade the Database
[oracle@rac1]$ dbua

21/31

10g OCW, ASM and RAC Upgrade to 11g on Linux

22/31

10g OCW, ASM and RAC Upgrade to 11g on Linux

23/31

10g OCW, ASM and RAC Upgrade to 11g on Linux

24/31

10g OCW, ASM and RAC Upgrade to 11g on Linux

25/31

10g OCW, ASM and RAC Upgrade to 11g on Linux

26/31

10g OCW, ASM and RAC Upgrade to 11g on Linux

With this screen the upgrade process completed, the following message was displayed on screen: DBUA failed to upgrade the database or some of its components. See /u01/app/orac le/cfgtoollogs/dbua/sati/upgrade5 for more details.The following document describes important behavioral changes from previous database releases: /u01/app/oracle/product/11.1.0/db_1/assistants/dbua/doc/DefaultBehaviorChanges.html The failure mentioned was related to the Enterprise manager repository, that Ill need to do manually using emca. Chech Version from Sqlplus [oracle@rac1 db_1]$ sqlplus / as sysdba

27/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


SQL*Plus: Release 11.1.0.7.0 - Production on Tue Dec 16 05:58:40 2008 Copyright (c) 1982, 2008, Oracle. All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options SQL> show sga Total System Global Area Fixed Size Variable Size Database Buffers Redo Buffers Check Cluster Resources Status [oracle@rac1 db_1]$ chkcrs HA Resource ----------ora.rac1.ASM1.asm ora.rac1.LISTENER_RAC1.lsnr ora.rac1.gsd ora.rac1.ons ora.rac1.vip ora.rac2.ASM2.asm ora.rac2.LISTENER_RAC2.lsnr ora.rac2.gsd Target -----ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE State ----ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE 351522816 1313344 188745152 155189248 6275072 bytes bytes bytes bytes bytes

on on on on on on on on

rac1 rac1 rac1 rac1 rac1 rac2 rac2 rac2

28/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


ora.rac2.ons ora.rac2.vip ora.sati.db ora.sati.sati1.inst ora.sati.sati2.inst With that the upgrade was completed. ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE ONLINE on on on on on rac2 rac2 rac2 rac1 rac2

29/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


LIST OF COMMANDS USED ON THIS DOCUMENT
Command uname -a cat /etc/issue $CRS_HOME/bin/crsctl query crs softwareversion $CRS_HOME/bin/crsctl query crs activeversion select * from v$version; tar cvf - /media/cdrom/* | tar xvfBp mount /dev/hdc -t iso9660 -r /media/cdrom /media/cdrom/clusterware/upgrade/preupdate.sh Chkcrs Action List Linux version List Linux version Show CRS version Show CRS active version Show database version Copy files using tar Mount cdrom ISO image Pre CRS upgrade script Script to check CRS resources

ANNEXES
Chkcrs script
--------------- script start on next line -------------------#!/usr/bin/ksh # # Sample 10g CRS resource status query script # # Description: # # # - Returns formatted version of crs_stat -t, in tabular format, with the complete rsc names and filtering keywords - The argument, $RSC_KEY, is optional and if passed to the script, will

30/31

10g OCW, ASM and RAC Upgrade to 11g on Linux


# limit the output to HA resources whose names match $RSC_KEY. # Requirements: # - $ORA_CRS_HOME should be set in your environment

RSC_KEY=$1 QSTAT=-u AWK=/bin/awk # /usr/xpg4/bin/awk # if not available use /usr/bin/awk

# Table header:echo "" $AWK \ 'BEGIN {printf "%-45s %-10s %-18s\n", "HA Resource", "Target", "State"; printf "%-45s %-10s %-18s\n", "-----------", "------", "-----";}'

# Table body: $ORA_CRS_HOME/bin/crs_stat $QSTAT | $AWK \ 'BEGIN { FS="="; state = 0; } $1~/NAME/ && $2~/'$RSC_KEY'/ {appname = $2; state=1}; state == 0 {next;} $1~/TARGET/ && state == 1 {apptarget = $2; state=2;} $1~/STATE/ && state == 2 {appstate = $2; state=3;} state == 3 {printf "%-45s %-10s %-18s\n", appname, apptarget, appstate; state=0;}'

------------------ script ends on previous line -----------------------

31/31