10g OCW, ASM and RAC Upgrade to 11g on Linux 1/1 Alejandro Vargas | Principal Support Consultant Oracle Advanced Customer Services Part II ASM Instance Upgrade Summary............................................................................................................................................................................ 2 The Environment................................................................................................................................................................ 2 Install 11.1.0.6 Oracle Home for ASM and Database........................................................................................................ 4 Root.sh on Node 1.......................................................................................................................................................... 7 Root.sh on Node 2.......................................................................................................................................................... 8 Upgrade ASM and Databases Home to 11.1.0.7............................................................................................................. 10 Upgrade ASM to 11.1.0.7................................................................................................................................................. 16
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
10g OCW, ASM and RAC Upgrade to 11g on Linux
1/1
Alejandro Vargas | Principal Support ConsultantOracle Advanced Customer Services
Part II ASM Instance Upgrade
Summary............................................................................................................................................................................2The Environment................................................................................................................................................................2Install 11.1.0.6 Oracle Home for ASM and Database........................................................................................................4
Root.sh on Node 1..........................................................................................................................................................7Root.sh on Node 2..........................................................................................................................................................8
Upgrade ASM and Databases Home to 11.1.0.7.............................................................................................................10Upgrade ASM to 11.1.0.7.................................................................................................................................................16
10g OCW, ASM and RAC Upgrade to 11g on Linux
2/18
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 ~]$ 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/18
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]
[oracle@rac1 db_1]$ su -Password:[root@rac1 ~]# /u01/app/oracle/product/11.1.0/db_1/root.shRunning Oracle 11g root.sh script...
The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
10g OCW, ASM and RAC Upgrade to 11g on Linux
8/18
[n]:
Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.
The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:
Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.
10g OCW, ASM and RAC Upgrade to 11g on Linux
9/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
10/18
Upgrade ASM and Databases Home to 11.1.0.7
Once the new 11.1.0.6 Homes are installed for ASM and Database, I did upgrade them to the last patch level, today is11.1.0.7.
Mount the disk with the 11.1.0.7 Patch
[root@rac1 ~]# umount /dev/hdc[root@rac1 ~]# mount /dev/hdc -t iso9660 -r /media/cdrom[root@rac1 ~]# ls -l /media/cdrom/total 2dr-xr-xr-x 1 root root 2048 Oct 16 17:58 11gpatch1
Checking Temp space: must be greater than 80 MB. Actual 1906 MB PassedChecking swap space: must be greater than 150 MB. Actual 2039 MB PassedChecking monitor: must be configured to display at least 256 colors. Actual 1 6777216 PassedPreparing to launch Oracle Universal Installer from /tmp/OraInstall2008-12-15_02 -38-44PM. Please wait ...[oracle@rac1 db_1]$ Oracle Universal Installer, Version 11.1.0.7.0 ProductionCopyright (C) 1999, 2008, Oracle. All rights reserved.
The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
10g OCW, ASM and RAC Upgrade to 11g on Linux
14/18
[n]:
Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.
The following environment variables are set as:ORACLE_OWNER= oracleORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)[n]:
Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.Finished product-specific root actions.
10g OCW, ASM and RAC Upgrade to 11g on Linux
15/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
16/18
Upgrade ASM to 11.1.0.7
In this example I did upgrade ASM using the Database Upgrade Assistant, DBUA, it does upgrade also the listeners.