Sei sulla pagina 1di 13

Oracle 11gR2 RAC Upgrade from 10gR2 RAC on Linux

This document is Upgrade step by step RAC upgrade procedure to upgrade Oracle 10gR2
(10.2.0.3) Real Application Cluster (RAC) to Oracle 11gR2 (11.2.0.1) RAC. This procedure
cannot be used for a fresh RAC installation.

The following are important notes:

CRS has to be upgraded first, followed by the database upgrade

Oracle 11gR2 RAC has brought in a some good changes. Oracle 10g CRS and ASM
homes are no more. Both CRS and ASM are installed in to the same home, GRID
Infrastructure home. SCAN is introduced.

In 11g, OCR and Voting disks can be stored in ASM Disk group

RAW Devices for OCR and Voting disk are still supported on upgraded RAC
environments. This is not an option during a fresh install.

New user for CRS and ASM administration is introduced. ie. grid user. This is more of a
role management for storage guys. It has to be the same OS user in Oracle 10g.

However, since this is an upgrade, I had to retain the same user for grid. Of course,
during fresh installation, you can still run both Grid and Oracle database with the same
user.. but oracle recommends a separate user for grid.

Grid home should not be under grid base

Oracle database home should be under Oracle base.

The following are the homes I have used:


10g CRS home : /orabase/oracle/product/10.2.0/crs
10g ASM home : /orabase/oracle/product/10.2.0/asm
10g Database home : /orabase/oracle/product/10.2.0/db_1
11g Grid base:/orabase/oracle
11g Grid Home: /orabase/11.2.0/grid
11g Database base: /orabase/oracle
11g Database home: /orabase/oracle/product/11.2.0/dbhome_1

Pre-upgrade tasks
Backup the database:
[root@casper5 ~]#srvctl stop services -d casper
[root@casper5 ~]#srvctl stop database -d casper
[root@casper5 ~]#rman target /
RMAN>startup mount;
RMAN>
run {
allocate channel d1 device type disk FORMAT '/rman5bkp/casper/ora_df%t_s%s_s%p';
allocate channel d2 device type disk FORMAT '/rman5bkp/casper/ora_df%t_s%s_s%p';
allocate channel d3 device type disk FORMAT '/rman5bkp/casper/ora_df%t_s%s_s%p';
allocate channel d4 device type disk FORMAT '/rman5bkp/casper/ora_df%t_s%s_s%p';
allocate channel d5 device type disk FORMAT '/rman5bkp/casper/ora_df%t_s%s_s%p';
backup as compressed backupset database;
backup current controlfile;
}

RMAN>shutdown
RMAN>exit

Check current CRS version:


[root@casper5 ~]#crsctl query crs activeversion

Check the current OCR and voting locations:


[root@casper5 ~]#ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 262120
Used space (kbytes) : 7884
Available space (kbytes) : 254236
ID : 622602061
Device/File Name : /ocfs2/oracrs/ocr.crs
Device/File integrity check succeeded
Device/File Name : /ocfvot/oracrs/ocr1.crs
Device/File integrity check succeeded

Cluster registry integrity check succeeded


[root@casper5 ~]# crsctl query css votedisk

0. 0 /ocfvot/vote3.crs
1. 0 /ocfvot/vote3.crs
2. 0 /ocfvot/vote3.crs

located 3 votedisk(s).

Backup the OCR file:


[root@casper5 ~]#ocrconfig -export /rmab5bkp/casper/ocr.bkp
Backup the voting disk:

[root@casper5 ~]#dd if=/ocfvot/vote3.crs of=/rman5bkp/casper/vote.bkp

Give SCAN IP Entries on All Nodes host files:

Vi /etc/hosts
192.168.2.99 scan.uclidit.com scan

Stop Services, Database and ASM on all Nodes


[oracle@casper5 ~]$srvctl stop services -d casper
[oracle@casper5 ~]$srvctl stop database -d casper
[oracle@casper5 ~]$srvctl stop asm -n casper5
[oracle@casper5 ~]$srvctl stop asm -n casper6

Run cluvfy script from the grid directory and address all the problems:

[oracle@casper5 ~]$/stage/gird/runcluvfy.sh stage -pre crsinst -n casper5,casper6 -verbose |tee


cluvy_fixed.log

Upgrade CRS + ASM


[oracle@casper5 ~]$/stage/grid/runInstall.sh
Run root.sh on casper5 first and then on casper6:

We expect the verification phase to fail with an error relating to the SCAN, assuming you are not using
DNS.
INFO: Checking Single Client Access Name (SCAN)...
INFO: Checking name resolution setup for "rac-scan.localdomain"...
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name
"rac-scan.localdomain"
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for "rac-scan.localdomain" (IP
address: 192.168.2.201) failed
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name
"rac-scan.localdomain"
INFO: Verification of SCAN VIP and Listener setup failed

Provided this is the only error, it is safe to ignore this and continue by clicking the "Next" button.

Click the "Close" button to exit the installer.

Post upgrade steps on CRS:

Change environment variables which are pointing old crs home


Export ORACLE_HOME=/orabase/11.2.0/grid
Export ORACLE_SID=+ASM5
Export PATH=$ORACLE_HOME/bin:$PATH
Check current CRS version:
[root@casper5 ~]#crsctl query crs activeversion

Check all the services up and running:

[root@casper5 ~]#crs_stat -t

Potrebbero piacerti anche