You are on page 1of 18

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

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

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 Target State
----------- ------ -----
ora.rac1.ASM1.asm ONLINE ONLINE on rac1
ora.rac1.ASM1.asm ONLINE ONLINE on rac1
ora.rac1.LISTENER_RAC1.lsnr ONLINE ONLINE on rac1
ora.rac1.gsd ONLINE ONLINE on rac1

2/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
ora.rac1.ons ONLINE ONLINE on rac1
ora.rac1.vip ONLINE ONLINE on rac1
ora.rac2.ASM2.asm ONLINE ONLINE on rac2
ora.rac2.LISTENER_RAC2.lsnr ONLINE ONLINE on rac2
ora.rac2.gsd ONLINE ONLINE on rac2
ora.rac2.ons ONLINE ONLINE on rac2
ora.rac2.vip ONLINE ONLINE on rac2
ora.sati.db ONLINE ONLINE on rac2
ora.sati.dbserv.cs ONLINE ONLINE on rac2
ora.sati.dbserv.sati1.srv ONLINE ONLINE on rac1
ora.sati.dbserv.sati2.srv ONLINE ONLINE on rac2
ora.sati.sati1.inst ONLINE ONLINE on rac1
ora.sati.sati2.inst ONLINE ONLINE on 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/18
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

Install 11.1.0.6 Oracle Home for ASM and Database


Mount the 11g Database DVD

[root@rac1 oracle]# umount /dev/hdc


[root@rac1 oracle]# chmod 777 /media/cdrom
[root@rac1 oracle]# mount /dev/hdc -t iso9660 -r /media/cdrom

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

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

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

Root.sh on Node 1

[oracle@rac1 db_1]$ su -
Password:
[root@rac1 ~]# /u01/app/oracle/product/11.1.0/db_1/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_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)

7/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
[n]:

Entries will be added to the /etc/oratab file as needed by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

Root.sh on Node 2

[root@rac2 ~]# /u01/app/oracle/product/11.1.0/db_1/root.sh


Running Oracle 11g root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_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 by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

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

9/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
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 is
11.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 2
dr-xr-xr-x 1 root root 2048 Oct 16 17:58 11gpatch1

Execute the Oracle Universal Installer


[oracle@rac1 db_1]$ /media/cdrom/11gpatch1/Disk1/runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB. Actual 1906 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2039 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 1
6777216 Passed
Preparing 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 Production
Copyright (C) 1999, 2008, Oracle. All rights reserved.

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

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

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

Execute root.sh on Node 1

[root@rac1 ~]# /u01/app/oracle/product/11.1.0/db_1/root.sh


Running Oracle 11g root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_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)

13/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
[n]:

Entries will be added to the /etc/oratab file as needed by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

Execute root.sh on Node 2

[root@rac2 ~]# /u01/app/oracle/product/11.1.0/db_1/root.sh


Running Oracle 11g root.sh script...

The following environment variables are set as:


ORACLE_OWNER= oracle
ORACLE_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 by


Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

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

15/18
10g OCW, ASM and RAC Upgrade to 11g on Linux
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.

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

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

18/18

You might also like