Oracle® Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Microsoft Windows Part Number E10817-01 |
|
|
View PDF |
This appendix describes how to perform Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM) upgrades.
This appendix contains the following topics:
Restrictions for Clusterware and Oracle ASM Upgrades to Grid Infrastructure
Preparing to Upgrade an Existing Oracle Clusterware Installation
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):
To upgrade existing Oracle Clusterware installations to Oracle Grid Infrastructure 11g, your current release must be at least 10.1.0.x, 10.2.0.3, 10.2.0.4, 11.1.0.6, or 11.1.0.7.
To upgrade existing Oracle ASM installations to Oracle Grid Infrastructure 11g release 2 (11.2) using the rolling upgrade method, your current release must be at least 11.1.0.6 or 11.1.0.7.
See Also:
Oracle Upgrade Companion" Note 785351.1 on My Oracle Support:Adding nodes to a cluster during a rolling upgrade is not supported.
Oracle Clusterware and Oracle ASM upgrades are always out-of-place upgrades. With Oracle Grid Infrastructure 11g release 2 (11.2), you cannot perform an in-place upgrade of Oracle Clusterware and Oracle ASM to existing homes.
Oracle ASM and Oracle Clusterware both run in the Oracle grid infrastructure home.
Note:
When you upgrade to Oracle Clusterware 11g release 2 (11.2), Oracle Automatic Storage Management (Oracle ASM) is installed. In Oracle documentation, this home is called the "grid infrastructure home."Only one Oracle Clusterware installation can be active on a server at any time. During a major version upgrade to Oracle Clusterware 11g release 2 (11.2), the software in the Oracle Clusterware 11g release 2 (11.2) home is not fully functional until the upgrade is completed. Running srvctl
, crsctl
, and other commands from the Oracle Clusterware 11g release 2 (11.2) home is not supported until the final rootupgrade.sh
script is run and the upgrade is complete across all nodes.
To manage databases using earlier versions (release 10.x or 11.1) of Oracle Database during the grid infrastructure upgrade, use the srvctl
utility in the existing database homes.
See Also:
Oracle Database Upgrade GuideOracle 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 upgradesBefore 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:
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.
See Also:
Oracle Database Upgrade GuideEnsure 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
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.
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.
Before you make any changes to the Oracle software, Oracle recommends that you create a backup of the Oracle software.
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.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.
Start the installer, and select the option to upgrade an existing Oracle Clusterware and Oracle ASM installation.
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.
Select installation options as prompted.
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.
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.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
)
Complete the following procedure to upgrade Oracle ASM:
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
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
In the ASMCA graphical interface, select Upgrade.
The Oracle ASM Configuration Assistant upgrades Oracle ASM in succession for all nodes in the cluster.
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 upgradesBecause 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:
Log in to Enterprise Manager Database Control or Enterprise Manager Grid Control.
Select the Cluster tab.
Click Monitoring Configuration.
Update the value for Oracle Home with the new path for the Oracle Grid Infrastructure home.
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:
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.
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.
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.p
l -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.