10g OCW, ASM and RAC Upgrade to 11g on Linux
1/1
Alejandro Vargas | Principal Support ConsultantOracle Advanced Customer Services
PART III RAC Database Upgrade
Summary............................................................................................................................................................................2The Environment................................................................................................................................................................2Upgrade Database to 11.1.0.7............................................................................................................................................4
Running the utlu111i.sql pre-check script.......................................................................................................................4Install Timezone patches 5126270 and 5632264........................................................................................................7Add Opatch to the Path...................................................................................................................................................8Being at the patch root directory execute the opatch apply command:...........................................................................8Once the path is installed we need to re-check with the utlu111i.sql script...................................................................17
Execute Database Upgrade Assistant to Upgrade the Database.....................................................................................21LIST OF COMMANDS USED ON THIS DOCUMENT......................................................................................................30ANNEXES.........................................................................................................................................................................30
Chkcrs script.................................................................................................................................................................30
10g OCW, ASM and RAC Upgrade to 11g on Linux
2/31
Summary
This document describes the procedure to upgrade Oracle Clusterware, ASM and RAC database from 10.2.0.3 to11.1.0.7 step by step.
The CRS and ASM upgrades are straightforward and were completed without any inconvenient. The database upgradetook longer and required more manual intervention, there are several preupgrade tasks that must be completed, evenusing 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 jobquite well.
The Environment
The environment consisted of 2 nodes running Red Hat Linux Version 4, Oracle clusterware and database version10.2.0.3
[oracle@rac1 ~]$ uname -aLinux rac1.av.com 2.6.9-55.0.0.0.2.EL #1 Wed May 2 14:55:28 PDT 2007 i686 i686 i386GNU/Linux
[oracle@rac1 ~]$ cat /etc/issueEnterprise Linux Enterprise Linux AS release 4 (October Update 5)Kernel \r on an \m
[oracle@rac1 ~]$ chkcrsHA Resource Target State----------- ------ -----ora.rac1.ASM1.asm ONLINE ONLINE on rac1ora.rac1.ASM1.asm ONLINE ONLINE on rac1ora.rac1.LISTENER_RAC1.lsnr ONLINE ONLINE on rac1ora.rac1.gsd ONLINE ONLINE on rac1
10g OCW, ASM and RAC Upgrade to 11g on Linux
3/31
ora.rac1.ons ONLINE ONLINE on rac1ora.rac1.vip ONLINE ONLINE on rac1ora.rac2.ASM2.asm ONLINE ONLINE on rac2ora.rac2.LISTENER_RAC2.lsnr ONLINE ONLINE on rac2ora.rac2.gsd ONLINE ONLINE on rac2ora.rac2.ons ONLINE ONLINE on rac2ora.rac2.vip ONLINE ONLINE on rac2ora.sati.db ONLINE ONLINE on rac2ora.sati.dbserv.cs ONLINE ONLINE on rac2ora.sati.dbserv.sati1.srv ONLINE ONLINE on rac1ora.sati.dbserv.sati2.srv ONLINE ONLINE on rac2ora.sati.sati1.inst ONLINE ONLINE on rac1ora.sati.sati2.inst ONLINE ONLINE on rac2
[oracle@rac1 bin]$ crsctl query crs softwareversionCRS software version on node [rac1] is [10.2.0.3.0]
[oracle@rac1 bin]$ crsctl query crs activeversionCRS 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 - ProdPL/SQL Release 10.2.0.3.0 - Production
10g OCW, ASM and RAC Upgrade to 11g on Linux
4/31
CORE 10.2.0.3.0 ProductionTNS for Linux: Version 10.2.0.3.0 - ProductionNLSRTL 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: /rdbms/admin directory. You can copy it to the 10g home and from there execute it on the 10g database beforestarting the upgrade.
The utlu111i.sql will provide on its output infromation about aditional steps that may be required to execute before themigration.
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 - ProductionWith the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> set pages 50000 lines 120SQL> spool chk.logSQL> @utlu111i.sql
10g OCW, ASM and RAC Upgrade to 11g on Linux
5/31
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
10g OCW, ASM and RAC Upgrade to 11g on Linux
6/31
.**********************************************************************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
10g OCW, ASM and RAC Upgrade to 11g on Linux
7/31
--> 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:.... SYSWARNING: --> 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
10g OCW, ASM and RAC Upgrade to 11g on Linux
8/31
After the execution of the pre-check we find that we need to update the Timezone File Version, this is a step that must beexecuted 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 Opatchdirectory and the directory where the patch is located. You will need to set theenvironment variable OPATCH_PLATFORM_ID to 0.The Patch does not require to shutdown the database, it adds the script utltzuv2.sql tothe ?/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 stepsare required, if you get some output from the script please check the patch readme forinstructions.
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:
10g OCW, ASM and RAC Upgrade to 11g on Linux
9/31
[oracle@rac1 5746875]$ opatch applyInvoking OPatch 10.2.0.3.0
Oracle interim Patch Installer version 10.2.0.3.0Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /u01/app/oracle/product/10.2.0/db_1Central Inventory : /u01/app/oracle/oraInventory
from : /etc/oraInst.locOPatch version : 10.2.0.3.0OUI version : 10.2.0.3.0OUI location : /u01/app/oracle/product/10.2.0/db_1/ouiLog file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-12-15_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. OPatch will patchthe local system then propagate the patch to the remote nodes.
Backing up files and inventory (not for auto-rollback) for the Oracle HomeBacking 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...
10g OCW, ASM and RAC Upgrade to 11g on Linux
10/31
Inventory check OK: Patch ID 5746875 is registered in Oracle Home inventory with propermeta-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.
10g OCW, ASM and RAC Upgrade to 11g on Linux
11/31
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 - ProductionWith the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> @utltzuv2.sqlDROP TABLE sys.sys_tzuv2_temptab
*ERROR at line 1:ORA-00942: table or view does not exist
Table created.
10g OCW, ASM and RAC Upgrade to 11g on Linux
12/31
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_temptab2 ;
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
10g OCW, ASM and RAC Upgrade to 11g on Linux
13/31
/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]$ lsetc files README.txt[oracle@rac1 5632264]$ opatch lsinventoryInvoking OPatch 10.2.0.3.0
Oracle interim Patch Installer version 10.2.0.3.0Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /u01/app/oracle/product/10.2.0/db_1Central Inventory : /u01/app/oracle/oraInventory
from : /etc/oraInst.locOPatch version : 10.2.0.3.0OUI version : 10.2.0.3.0OUI location : /u01/app/oracle/product/10.2.0/db_1/ouiLog file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-12-15_23-05-22PM.log
Lsinventory Output file location :/u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2008-12-15_23-05-22PM.txt
10g OCW, ASM and RAC Upgrade to 11g on Linux
14/31
--------------------------------------------------------------------------------Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0There are 2 products installed in this Oracle Home.
Interim patches (3) :
Patch 5746875 : applied on Mon Dec 15 17:28:24 IST 2008Created on 28 Feb 2007, 07:19:02 hrs US/EasternBugs fixed:5126270, 5726033, 5746875
Patch 5556081 : applied on Wed Jun 20 23:05:13 IDT 2007Created on 9 Nov 2006, 22:20:50 hrs PST8PDTBugs fixed:5556081
Patch 5557962 : applied on Wed Jun 20 23:04:27 IDT 2007Created on 9 Nov 2006, 23:23:06 hrs PST8PDTBugs fixed:4269423, 5557962, 5528974
Rac system comprising of multiple nodesLocal node = rac1Remote node = rac2
--------------------------------------------------------------------------------
10g OCW, ASM and RAC Upgrade to 11g on Linux
15/31
OPatch succeeded.[oracle@rac1 5632264]$ opatch applyInvoking OPatch 10.2.0.3.0
Oracle interim Patch Installer version 10.2.0.3.0Copyright (c) 2005, Oracle Corporation. All rights reserved..
Oracle Home : /u01/app/oracle/product/10.2.0/db_1Central Inventory : /u01/app/oracle/oraInventory
from : /etc/oraInst.locOPatch version : 10.2.0.3.0OUI version : 10.2.0.3.0OUI location : /u01/app/oracle/product/10.2.0/db_1/ouiLog file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-12-15_23-05-41PM.log
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. OPatch will patchthe local system then propagate the patch to the remote nodes.
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]
10g OCW, ASM and RAC Upgrade to 11g on Linux
16/31
yUser Responded with: YBacking up files and inventory (not for auto-rollback) for the Oracle HomeBacking 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 propermeta-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"
10g OCW, ASM and RAC Upgrade to 11g on Linux
17/31
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. You may start Oracle instances on the local system and nodes'rac2'
OPatch succeeded.
Once the path is installed we need to re-check with the utlu111i.sql script
Rexecute the checkup script
SQL> !lschk.log utlu111i.sql
SQL> spool chk2.logSQL> @utlu111i.sqlOracle Database 11.1 Pre-Upgrade Information Tool 12-15-2008 23:12:23.
10g OCW, ASM and RAC Upgrade to 11g on Linux
18/31
**********************************************************************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.**********************************************************************
10g OCW, ASM and RAC Upgrade to 11g on Linux
19/31
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
10g OCW, ASM and RAC Upgrade to 11g on Linux
20/31
.**********************************************************************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:.... SYSWARNING: --> Database contains schemas with objects dependent on networkpackages..... 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
10g OCW, ASM and RAC Upgrade to 11g on Linux
21/31
Execute Database Upgrade Assistant to Upgrade the Database
[oracle@rac1]$ dbua
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
27/31
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/oracle/cfgtoollogs/dbua/sati/upgrade5 for more details.The following document describesimportant 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 todo manually using emca.
Chech Version from Sqlplus
[oracle@rac1 db_1]$ sqlplus / as sysdba
10g OCW, ASM and RAC Upgrade to 11g on Linux
28/31
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 - ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing options
SQL> show sga
Total System Global Area 351522816 bytesFixed Size 1313344 bytesVariable Size 188745152 bytesDatabase Buffers 155189248 bytesRedo Buffers 6275072 bytes
Check Cluster Resources Status
[oracle@rac1 db_1]$ chkcrsHA Resource Target State----------- ------ -----ora.rac1.ASM1.asm ONLINE ONLINE on rac1ora.rac1.LISTENER_RAC1.lsnr ONLINE ONLINE on rac1ora.rac1.gsd ONLINE ONLINE on rac1ora.rac1.ons ONLINE ONLINE on rac1ora.rac1.vip ONLINE ONLINE on rac1ora.rac2.ASM2.asm ONLINE ONLINE on rac2ora.rac2.LISTENER_RAC2.lsnr ONLINE ONLINE on rac2ora.rac2.gsd ONLINE ONLINE on rac2
10g OCW, ASM and RAC Upgrade to 11g on Linux
29/31
ora.rac2.ons ONLINE ONLINE on rac2ora.rac2.vip ONLINE ONLINE on rac2ora.sati.db ONLINE ONLINE on rac2ora.sati.sati1.inst ONLINE ONLINE on rac1ora.sati.sati2.inst ONLINE ONLINE on rac2
With that the upgrade was completed.
10g OCW, ASM and RAC Upgrade to 11g on Linux
30/31
LIST OF COMMANDS USED ON THIS DOCUMENT
Command Action uname -a List Linux version cat /etc/issue List Linux version $CRS_HOME/bin/crsctl query crs softwareversion Show CRS version $CRS_HOME/bin/crsctl query crs activeversion Show CRS active version select * from v$version; Show database version tar cvf - /media/cdrom/* | tar xvfBp Copy files using tar mount /dev/hdc -t iso9660 -r /media/cdrom Mount cdrom ISO image /media/cdrom/clusterware/upgrade/preupdate.sh Pre CRS upgrade script Chkcrs 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
10g OCW, ASM and RAC Upgrade to 11g on Linux
31/31
# limit the output to HA resources whose names match $RSC_KEY.# Requirements:# - $ORA_CRS_HOME should be set in your environment
RSC_KEY=$1QSTAT=-uAWK=/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 -----------------------