You are on page 1of 7

How To Upgrade An ASM Instance To Release 11gR2 (11.2.0.1.0).

1) Install the Oracle Grid Infrastructure as described in the next manual: http://download.oracle.com/docs/cd/E11882_01/install.112/e10812/toc.htm =)> Oracle Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Linux Part Number E10812-03 2_01/install.112/e10812/toc.htm 2) The software can be downloaded from:

32-bit Linux: ~~~~~~~~~ http://www.oracle.com/technology/software/products/database/oracle11g/112010_linuxs oft.html Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0) for Linux x86 =)> linux_11gR2_grid.zip (980,831,749 bytes) (cksum - 3583041487)

64-bit Linux: ~~~~~~~~~ http://www.oracle.com/technology/software/products/database/oracle11g/112010_linx86 64soft.html Oracle Database 11g Release 2 Grid Infrastructure (11.2.0.1.0) for Linux x86-64 =)> linux.x64_11gR2_grid.zip (1,052,897,657 bytes) (cksum - 3369676398) 3) After the Oracle Grid Infrastructure installation is completed, please verify that the ASM instance is running under the old ASM Oracle Home Release (11gR1 or 10gR2 or 10gR1): $> cat /etc/oratab

Oracle Grid Infrastructure

Author: Esteban Bernal

# # Multiple entries with the same $ORACLE_SID are not allowed. # # +ASM:/opt/app/oracle/product/11.1.0/asm_1:N $> env | grep ORA ORA_NLS10=/opt/app/oracle/product/11.1.0/db_1/nls/data ORACLE_SID=+ASM ORACLE_BASE=/opt/app/oracle ORA_HTTP_HOME=/u02/oracle/10.1.3/http_1 ORACLE_ASM_HOME=/opt/app/oracle/product/11.1.0/asm_1 ORACLE_HOME=/opt/app/oracle/product/11.1.0/asm_1 $> cd $ORACLE_HOME $> pwd /opt/app/oracle/product/11.1.0/asm_1 $> cd dbs $> ls ab_+ASM.dat hc_+ASM.dat initdw.ora init.ora lk+ASM orapw+ASM spfile+ASM.ora $> cat spfile+ASM.ora +ASM.__oracle_base='/opt/app/oracle'#ORACLE_BASE set from environment +ASM.asm_diskgroups='DATA1','FLASH1'#Manual Mount *.asm_diskgroups='DATA1','FLASH1' *.diagnostic_dest='/opt/app/oracle' *.instance_type='asm' *.large_pool_size=12M $> sqlplus "/as sysdba" SQL*Plus: Release 11.1.0.7.0 - Production on Thu Oct 8 12:34:19 2009 Copyright (c) 1982, 2008, Oracle. All rights reserved. Connected to an idle instance. SQL> startup ASM instance started Total System Global Area 283930624 bytes Fixed Size 2158992 bytes Variable Size 256605808 bytes

Oracle Grid Infrastructure

Author: Esteban Bernal

ASM Cache 25165824 bytes ASM diskgroups mounted SQL> show parameter asm NAME TYPE VALUE ------------------------------------ ----------- -----------------------------asm_diskgroups string DATA1, FLASH1 asm_diskstring string asm_power_limit integer 1 asm_preferred_read_failure_groups string SQL> select name, state from v$asm_diskgroup; NAME STATE ------------------------------ ----------DATA1 MOUNTED FLASH1 MOUNTED 4) Since the Oracle Grid Infrastructure 11gR2 (11.2.0.1.0) was installed, please make sure the CSS service is running: $> ps -fea | grep oracle oracle 1141 1 0 10:04 ? /opt/app/oracle/product/11.2.0/grid/bin/ohasd.bin reboot oracle 1213 1 0 10:04 ? /opt/app/oracle/product/11.2.0/grid/bin/cssdagent oracle 1216 1 0 10:04 ? /opt/app/oracle/product/11.2.0/grid/bin/orarootagent.bin oracle 1232 1 0 10:04 ? /opt/app/oracle/product/11.2.0/grid/bin/ocssd.bin oracle 1245 1 0 10:04 ? /opt/app/oracle/product/11.2.0/grid/bin/diskmon.bin -d -f oracle 3685 1 0 08:36 ? /opt/app/oracle/product/11.1.0/db_1/bin/tnslsnr LISTENER -inherit oracle 3736 1 0 10:06 ? /opt/app/oracle/product/11.2.0/grid/bin/oraagent.bin oracle 3752 1 0 10:06 ? /opt/app/oracle/product/11.2.0/grid/bin/tnslsnr LISTENER -inherit 00:00:01 00:00:00 00:00:00 00:00:00 00:00:00 00:00:03 00:00:01 00:00:00

5) Then run the ASMCA from the new Oracle Grid Infrastructure 11gR2 (11.2.0.1.0) Oracle Home: $> env | grep ORA ORACLE_SID=+ASM ORACLE_BASE=/opt/app/oracle ORACLE_HOME=/opt/app/oracle/product/11.2.0/grid

Oracle Grid Infrastructure

Author: Esteban Bernal

$> asmca 6) ASMCA will show the ASM Oracle Home Path from the previous and new release (see screenshot below). 7) Please provide the ASMSNMP password (see screenshot below). 8) Also, select the Listener (see screenshot below). 9) And then press the [Upgrade ASM] button; ASMCA will start with the ASM instance upgrade (see screenshot below). 10) After the ASM instance is upgraded, please validate that the diskgroups are mounted. 11) Then press the [Exit] button.

Oracle Grid Infrastructure

Author: Esteban Bernal

Oracle Grid Infrastructure

Author: Esteban Bernal

12) Verify that the ASM instance is now running under new 11gR2 Grid Infrastructure Oracle Home: $> env | grep ORA ORACLE_SID=+ASM ORACLE_BASE=/opt/app/oracle ORACLE_HOME=/opt/app/oracle/product/11.2.0/grid $> echo $ORACLE_HOME /opt/app/oracle/product/11.2.0/grid $> ls -l $ORACLE_HOME/dbs total 20 -rw-rw---- 1 oracle oracle 1585 Oct 8 12:39 ab_+ASM.dat -rw-rw---- 1 oracle oracle 1544 Oct 8 12:39 hc_+ASM.dat -rw-r--r-- 1 oracle oracle 2851 May 15 13:35 init.ora -rw-r----- 1 oracle oracle 1536 Oct 8 12:39 orapw+ASM -rw-r----- 1 oracle oracle 1536 Oct 8 12:39 spfile+ASM.ora $> ps -fea | grep +ASM oracle 12314 1 0 12:39 ? oracle 12316 1 0 12:39 ? oracle 12320 1 0 12:39 ? oracle 12322 1 0 12:39 ? oracle 12324 1 0 12:39 ? oracle 12326 1 0 12:39 ? oracle 12328 1 0 12:39 ? oracle 12330 1 0 12:39 ? oracle 12332 1 0 12:39 ? oracle 12334 1 0 12:39 ? oracle 12336 1 0 12:39 ? oracle 12338 1 0 12:39 ? oracle 12340 1 0 12:39 ? oracle 12342 1 0 12:39 ? oracle 12344 1 0 12:39 ? $> sqlplus "/as sysasm" SQL*Plus: Release 11.2.0.1.0 Production on Thu Oct 8 12:42:01 2009 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Automatic Storage Management option

00:00:00 asm_pmon_+ASM 00:00:00 asm_vktm_+ASM 00:00:00 asm_gen0_+ASM 00:00:00 asm_diag_+ASM 00:00:00 asm_psp0_+ASM 00:00:00 asm_dia0_+ASM 00:00:00 asm_mman_+ASM 00:00:00 asm_dbw0_+ASM 00:00:00 asm_lgwr_+ASM 00:00:00 asm_ckpt_+ASM 00:00:00 asm_smon_+ASM 00:00:00 asm_rbal_+ASM 00:00:00 asm_gmon_+ASM 00:00:00 asm_mmon_+ASM 00:00:00 asm_mmnl_+ASM

Oracle Grid Infrastructure

Author: Esteban Bernal

SQL> show parameter asm NAME TYPE VALUE ------------------------------------ ----------- -----------------------------asm_diskgroups string DATA1, FLASH1 asm_diskstring string asm_power_limit integer 1 asm_preferred_read_failure_groups string SQL> select name, state from v$asm_diskgroup; NAME STATE ------------------------------ ----------DATA1 MOUNTED FLASH1 MOUNTED Suhaib: SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- -----------------------------spfile /opt/app/oracle/product/11.2.0/grid/dbs/spfile+ASM.ora SQL> select * from v$version; BANNER -------------------------------------------------------------------------------Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production PL/SQL Release 11.2.0.1.0 - Production CORE 11.2.0.1.0 Production TNS for Linux: Version 11.2.0.1.0 - Production NLSRTL Version 11.2.0.1.0 Production SQL> exit

string

$> cat /etc/oratab # # Multiple entries with the same $ORACLE_SID are not allowed. # # +ASM:/opt/app/oracle/product/11.2.0/grid:N

Oracle Grid Infrastructure

Author: Esteban Bernal

You might also like