Skip Headers
Oracle® Grid Infrastructure Installation Guide
11g Release 2 (11.2) for Microsoft Windows

Part Number E10817-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

D How to Upgrade to Oracle Grid Infrastructure 11g Release 2

This appendix describes how to perform Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM) upgrades.

This appendix contains the following topics:

D.1 Restrictions for Clusterware and Oracle ASM Upgrades to Grid Infrastructure

Be aware of the following restrictions and changes for upgrades to Oracle Grid Infrastructure installations, which consists of Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM):

D.2 Understanding Out-of-Place and Rolling Upgrades

Oracle Clusterware upgrades can be rolling upgrades, in which a subset of nodes are brought down and upgraded while other nodes remain active. Oracle Automatic Storage Management 11g release 2 (11.2) upgrades can be rolling upgrades. If you upgrade a subset of nodes, then a software-only installation is performed on the existing cluster nodes that you do not select for upgrade. Rolling upgrades avoid downtime and ensure continuous availability while the software is upgraded to a new version.

Note:

In contrast with releases prior to Oracle Clusterware 11g release 2, Oracle Universal Installer always performs rolling upgrades, even if you select all nodes for the upgrade.

During an out-of-place upgrade, the installer installs the newer version in a separate Oracle Clusterware home. Both versions of Oracle Clusterware are on each cluster member node, but only one version is active. By contrast, an in-place upgrade overwrites the software in the current Oracle Clusterware home.

To perform an out-of-place upgrade, you must create new Oracle Grid Infrastrucure homes on each node. Then you can an out-of-place rolling upgrade, so that some nodes are running Oracle Clusterware from the original Oracle Clusterware home, and other nodes are running Oracle Clusterware from the new Oracle Grid Infrastructure home.

If you have an existing Oracle Clusterware installation, then you upgrade your existing cluster by performing an out-of-place upgrade. An in-place upgrade of Oracle Clusterware 11g release 2 is not supported.

See Also:

"Upgrading Oracle Clusterware" for instructions on completing rolling upgrades

D.3 Preparing to Upgrade an Existing Oracle Clusterware Installation

Before you upgrade Oracle Clusterware or Oracle ASM, there are certain tasks you should complete first. The following sections describe the tasks you should complete before starting an upgrade:

D.3.1 Verify System Readiness for Patches and Upgrades

If you are completing a patch update of Oracle Clusterware or Oracle ASM, then after you download the patch software and before you start to patch or upgrade your software installation, review the Patch Set Release Notes that accompany the patch to determine if your system meets the system requirements for the operating system and the hardware platform.

Use the Cluster Verification Utility to assist you with system checks in preparation for patching or upgrading.

D.3.2 Gather the Necessary System Information

Ensure that you have the information you will need during installation, including the following:

  • The Oracle home location for the current Oracle Clusterware installation.

    With Oracle Clusterware 11g release 2 (11.2), you can perform upgrades on a shared Oracle Clusterware home.

  • An Oracle grid infrastructure home location that is different from your existing Oracle Clusterware home location

  • A SCAN address

  • Two network interface names (consisting of bonded or separate interfaces), which you can identify as public and private interfaces for the cluster

D.3.3 Upgrade to the Minimum Required Oracle Clusterware Version

If you plan to upgrade your Oracle Clusterware 10g release 2 installation to Oracle Clusterware 11g release 2 (11.2) and your current Oracle Clusterware installation has not been upgraded to at least version 10.2.0.3, then a prerequisite check failure is reported. You must upgrade your current Oracle Clusterware installation to version 10.2.0.3 or higher before starting the upgrade to Oracle Clusterware 11g release 2.

If you plan to upgrade your Oracle Clusterware 10g release 1 installation to Oracle Clusterware 11g release 2 (11.2) and your current Oracle Clusterware installation is not 10.1.0.3 or higher, then you must upgrade your current Oracle Clusterware installation to version 10.1.0.3 or higher before starting the upgrade to Oracle Clusterware 11g release 2.

D.3.4 Unset Environment Variables

For the user account used to perform the installation, if you have environment variables set for the existing installation, then remove the environment variables ORACLE_HOME and ORACLE_SID, as these environment variables are used during upgrade.

To remove the environment variable settings for all sessions, from the Start menu, right click My Computer and select Properties. In the System Properties window, select Advanced, then click the Environment Variables button.

D.4 Back Up the Oracle Software Before Upgrades

Before you make any changes to the Oracle software, Oracle recommends that you create a backup of the Oracle software.

D.5 Upgrading Oracle Clusterware

Use the following procedures to upgrade Oracle Clusterware. You can also choose to upgrade Oracle Automatic Storage Management during the upgrade of Oracle Clusteware.

Note:

Oracle recommends that you leave Oracle RAC instances running. During the upgrade process, the database instances on the node being upgraded are stopped and started automatically.
  1. If there are non-clustered, or standalone, Oracle databases that use Oracle ASM running on any of the nodes in the cluster, they must be shut down before you start the upgrade. Listeners associated with those databases do not need to be shut down.

  2. Start the installer, and select the option to upgrade an existing Oracle Clusterware and Oracle ASM installation.

  3. On the node selection page, select all nodes.

    Note:

    In contrast with releases prior to Oracle Clusterware 11g release 2, all upgrades are rolling upgrades, even if you select all nodes for the upgrade.

    Oracle recommends that you select all cluster member nodes for the upgrade, and then shut down the database instances on each node before you run the upgrade root script. Start the database instances on each node after the upgrade is complete. You can also use this procedure to upgrade a subset of nodes in the cluster.

  4. Select installation options as prompted.

  5. When the Oracle Clusterware upgrade is complete, if an earlier version of Oracle Automatic Storage Management is installed, then the installer starts Oracle ASM Configuration Assistant (ASMCA) to upgrade Oracle ASM to 11.2. You can upgrade Oracle ASM at this time, or upgrade it later.

    Oracle recommends that you upgrade Oracle ASM at the same time that you upgrade Oracle Clusterware. Until Oracle ASM is upgraded, Oracle databases that use Oracle ASM cannot be created. Until Oracle ASM is upgraded, the Oracle ASM management tools in the Oracle Grid Infrastructure 11g release 2 (11.2) home (for example, srvctl) will not work.

    Note:

    At the end of the upgrade, if you set the OCR backup location manually to the older release Oracle Clusterware home (CRS home), then you must change the OCR backup location to the Oracle grid infrastructure home (Grid home). If you did not set the OCR backup location manually, then this issue does not concern you.

    Because upgrades of Oracle Clusterware are out-of-place upgrades, the previous release Oracle Clusterware home cannot be the location of the OCR backups. Backups in the old Oracle Clusterware home could be deleted.

D.6 Upgrading Oracle Automatic Storage Management

After you have completed the Oracle Clusterware 11g release 2 (11.2) upgrade, if you did not choose to upgrade Oracle ASM when you upgraded Oracle Clusterware, then you can do it separately using the Oracle Automatic Storage Management Configuration Assistant (ASMCA) to perform rolling upgrades.

While you can use asmca to complete the upgrade of Oracle ASM separately, you should perform the upgrade as soon as possible after you upgrade Oracle Clusterware, because Oracle ASM management tools such as srvctl will not work until Oracle ASM has been upgraded.

Note:

ASMCA performs a rolling upgrade only if the earlier version of Oracle ASM is either 11.1.0.6 or 11.1.0.7. Otherwise, ASMCA performs a normal upgrade, during which ASMCA brings down all Oracle ASM instances on all nodes of the cluster, and then brings them all up in the new Oracle Grid Infrastructure home.

D.6.1 About Upgrading Oracle ASM

Note the following if you intend to perform rolling upgrades of Oracle ASM:

  • The active version of Oracle Clusterware must be 11g release 2 (11.2). To determine the active version, enter the following command:

    C:\..\bin> crsctl query crs activeversion
    
  • You must ensure that any rebalance operations on your existing Oracle ASM installation are completed before starting the upgrade.

  • During the upgrade process, you place the Oracle ASM instances in an upgrade mode. Because this upgrade mode limits Oracle ASM operations, you should complete the upgrades soon after you begin. The following are the operations allowed during Oracle ASM upgrade:

    • Diskgroup mounts and dismounts

    • Opening, closing, resizing, or deleting database files

    • Recovering instances

    • Queries of fixed views and packages: Users are allowed to query fixed views and run anonymous PL/SQL blocks using fixed packages, such as DBMS_DISKGROUP)

D.6.2 Using ASMCA to Upgrade Oracle ASM

Complete the following procedure to upgrade Oracle ASM:

  1. On the node on which you plan to start the upgrade, set the environment variable ASMCA_ROLLING_UPGRADE to true to put the Oracle ASM instances in upgrade mode:

    C:\> set ASMCA_ROLLING_UPGRADE=true
    
  2. From the Oracle Grid Infrastructure 11g release 2 (11.2) home, start ASMCA. For example:

    C:\> cd app\oracle\grid\11.2.0.1\bin
    C:\..\bin> asmca.bat
    
  3. In the ASMCA graphical interface, select Upgrade.

    The Oracle ASM Configuration Assistant upgrades Oracle ASM in succession for all nodes in the cluster.

  4. When the upgrade is complete for all the nodes, unset the environment variable ASMCA_ROLLING_UPGRADE:

    C:\> set ASMCA_ROLLING_UPGRADE=
    

See Also:

Oracle Database Upgrade Guide and Oracle Database Storage Administrator's Guide for additional information about preparing an upgrade plan for Oracle ASM, and for starting, completing, and stopping Oracle ASM upgrades

D.7 Updating DB Control and Grid Control Target Parameters

Because Oracle Clusterware release 2 (11.2) is an out-of-place upgrade of the Oracle Clusterware home in a new location (the grid infrastructure for a cluster home, or Grid home), the path for the CRS_HOME parameter in some parameter files must be changed. If you do not change the parameter, then you will encounter errors such as "cluster target broken" on Enterprise Manager Database Control or Grid Control.

Use the following procedure to resolve this issue:

  1. Log in to Enterprise Manager Database Control or Enterprise Manager Grid Control.

  2. Select the Cluster tab.

  3. Click Monitoring Configuration.

  4. Update the value for Oracle Home with the new path for the Oracle Grid Infrastructure home.

D.8 Downgrading Oracle Clusterware After an Upgrade

After a successful or a failed upgrade to Oracle Clusterware 11g release 2 (11.2), you can restore Oracle Clusterware to the previous version.

The restoration procedure in this section restores the Oracle Clusterware configuration to the state it was in before the Oracle Clusterware 11g release 2 (11.2) upgrade. Any configuration changes you performed during or after the 11g release 2 (11.2) upgrade are removed and cannot be recovered.

To restore Oracle Clusterware to the previous release:

  1. On all remote nodes, use the command syntax Grid_home\crs\install\rootcrs.pl -downgrade [-force] to stop the Oracle Clusterware 11g release 2 (11.2) resources and shut down the Oracle Clusterware stack.

    Note:

    This command does not reset the OCR, or delete the ocr Windows Registry key.

    For example:

    C:\app\grid\11.2.0.1\crs\install> rootcrs.pl -downgrade
    

    If you want to stop a partial or failed Oracle Clusterware 11g release 2 (11.2) upgrade and restore the previous release Oracle Clusterware, then use the -force flag with this command.

  2. After the rootcrs.pl -downgrade script has completed on all remote nodes, on the local node use the command syntax Grid_home\crs\install \rootcrs.pl -downgrade -lastnode -oldcrshome pre11.2_crs_home -version pre11.2_crs_version [-force], where pre11.2_crs_home is the home of the earlier Oracle Clusterware installation, and pre11.2_crs_version is the release number of the earlier Oracle Clusterware installation.

    For example:

    C:\app\grid\11.2.0.1\crs\install> rootcrs.pl -downgrade -lastnode 
    -oldcrshome C:\app\crs -version 11.1.0.6.0
    

    This script downgrades the OCR, and removes binaries from the Grid home. If the Oracle Clusterware 11g release 2 (11.2) upgrade did not complete successfully, then to restore the previous release of Oracle Clusterware using the -force flag with this command.