Oracle® Clusterware Installation Guide 11g Release 1 (11.1) for Microsoft Windows Part Number B28250-03 |
|
|
View PDF |
This appendix describes how to perform Oracle Clusterware rolling upgrades. Because you must stop database processes before initiating an Oracle Clusterware process, it includes information about how to stop processes in Oracle Real Application Clusters (Oracle RAC) databases. This appendix contains the following topics:
Note:
You can use the procedures in this chapter to prepare to perform rolling upgrades of Oracle Clusterware from any Oracle Clusterware 10g release 10.2 or Oracle Clusterware 11g installation to the latest patch update for that version. For example, you can use these procedures to prepare to upgrade from Oracle Clusterware 10.2.0.1 to 10.2.0.3.Restrictions for Clusterware Upgrades to Oracle Clusterware 11g
How to Perform Oracle Clusterware Rolling Upgrades for Patches
How to Perform Rolling Upgrades From an Earlier Release to 11g
Before you make any changes to the Oracle software, whether you intend to upgrade or patch part of the database or clusterware, or all of your cluster installation, Oracle recommends that you create a backup of the Oracle software.
To upgrade existing Oracle Clusterware or Oracle Cluster Ready Services installations to Oracle Clusterware 11g, you must first upgrade the existing installations to the most recent patch update. The following sections provide information about Oracle Clusterware upgrades.
Complete the following procedure to prepare an existing Oracle Clusterware release 10.2 for rolling upgrade to release 11g:
Upgrade the Oracle Clusterware home (or CRS home) to Oracle Clusterware release 10.2.0.3 or higher. Upgrading the database Oracle home is not required.
If you attempt a rolling upgrade to Oracle Clusterware 11g release 1 (11.1) and your current Oracle Clusterware installation has not been upgraded to at least release 10.2.0.3, then then a prerequisite check failure is reported.
If you are not using the rolling upgrade method to upgrade Oracle Clusterware to release 11.1, then you can use any Oracle Clusterware 10g release 10.2 version.
Upgrade Oracle Clusterware from release 10.2 to release 11.1.
Complete the following procedure to prepare an existing Oracle Cluster Ready Services release 10.1 for rolling upgrade to Oracle Clusterware release 11g:
Upgrade the Oracle Cluster Ready Services home (or CRS home) to release 10.1.0.3 or higher. Upgrading the database Oracle home is not required.
Upgrade Oracle Cluster Ready Services from release 10.1 to Oracle Clusterware release 11.1.
If you are completing a patch update of your database or clusterware, then after you download the patch software, and before you start to patch or upgrade your database, 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 starting a database patch or upgrade.
See Also:
Oracle Database Upgrade GuideTo stop process in an existing Oracle RAC database, where you want to shut down the entire database in preparation for an Oracle Clusterware upgrade, complete the following steps.
Shut down any existing Oracle Database instances on each node, with normal or immediate priority.If Automatic Storage Management (ASM) is running, then shut down all databases that use ASM, and then shut down the ASM instance on each node of the cluster.
Note:
To upgrade using Oracle Clusterware, you must shut down all Oracle Database instances on all cluster nodes before modifying the Oracle software. If you are performing a patch update, review the instructions in the Patch Set Notes for detailed instructions.Stop all listener and other processes running in the Oracle home directories where you want to modify the database software.
Note:
If you shut down ASM instances, then you must first shut down all database instances that use ASM, even if these databases run from different Oracle homes.If you are modifying an Oracle Clusterware installation, then shut down the following Oracle Database 10g services.
Note:
You must perform these steps in the order listed.Shut down any processes in the Oracle home on each node that might be accessing a database; for example, shut down Oracle Enterprise Manager Database Control.
Note:
Before you shut down any processes that are monitored by Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime, rather than an unplanned system outage.Shut down all Oracle RAC instances on all nodes. To shut down all Oracle RAC instances for a database, enter the following command, where db_name
is the name of the database:
C:>oracle_home\BIN\srvctl stop database -d db_name
Shut down all ASM instances on all nodes. To shut down an ASM instance, enter the following command, where node is the name of the node where the ASM instance is running:
C:>oracle_home\BIN\srvctl stop asm -n node
Stop all node applications on all nodes. To stop node applications running on a node, enter the following command, where node is the name of the node where the applications are running
C:>oracle_home\BIN\srvctl stop nodeapps -n node
Log in as the Administrator and shut down the Oracle Clusterware process by entering the following command on all nodes:
C:>CRS_home\BIN\crsctl stop crs
This section provides an overview of what needs to be done before adding additional products to Oracle Database 11g release 1 (11.1). If you are performing a patch upgrade, then refer to the Database Patch Set Notes for the patch for additional instructions.
Note:
You must perform these steps in the order listed.Shut down any processes in the Oracle home on each node that can access a database; for example, shut down Oracle Enterprise Manager Database Control.
Note:
Before you shut down any processes that are monitored by Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime, rather than an unplanned system outage.Shut down all Oracle RAC instances on all nodes. To shut down all Oracle RAC instances for a database, enter the following command, where db_name
is the name of the database:
C:>oracle_home\BIN\srvctl stop database -d db_name
Shut down all ASM instances on all nodes. To shut down an ASM instance, enter the following command, where node
is the name of the node where the ASM instance is running:
C:>oracle_home\BIN\srvctl stop asm -n node
To perform a rolling upgrade, complete all of the following steps in sequence.
Note:
To perform rolling upgrades, the existing Oracle Clusterware home directory, sometimes referred to in Oracle documentation as CRS home, must be located on local directories on the node. You cannot perform rolling upgrades on a shared Oracle Clusterware home directory.Also note that Oracle does not support attempting to add additional nodes to a cluster during a rolling upgrade.
Download the patch software to the primary node on the cluster (the node where you performed initial Oracle Clusterware and Oracle Database installation). Review the patch set Readme to confirm that your system meets the system requirements for the patch set updates, and complete any special instructions for particular environments or configurations.
To download patches, or download the patch note Readme:
Log in to OracleMetaLink (https://metalink.oracle.com
)
Click the Patches & Updates tab.
Search for the patch that you want to install.
Click the patch number to open the patch page
From this location, you can download the patch binary, download the patch Readme, and obtain other information regarding the patch update.
Download the patch set installation archive to a directory inside the Oracle base directory that meets the following requirements:
It is not the existing Oracle home directory, or Oracle Clusterware home directory
It is not under an existing Oracle home directory, or Oracle Clusterware home directory
Extract the patch set installation archive
On each node on which you want to perform a rolling upgrade, shut down the Oracle Database instance, with normal or immediate priority. If Automatic Storage Management (ASM) is running, then for each node that you intend to perform a rolling upgrade, shut down the database that uses ASM, and then shut down the ASM instance on the node.
Note:
To upgrade Oracle Clusterware, you must shut down all Oracle Database instances on all cluster nodes that you intend to upgrade before modifying the Oracle software. If you are performing a patch update, review the instructions in the Patch Set Notes for detailed instructions.You can use this procedure to shut down one node, and perform upgrades one node at a time, or to shut down groups of nodes, and upgrade groups of nodes at the same time.
On each node on which you want to perform a rolling upgrade, before you upgrade Oracle Clusterware, you must shut down Oracle Database services that use clusterware processes.
Complete the following steps:
Note:
You must perform these steps in the order listed.Shut down any processes on each node you intend to upgrade that might be accessing a database, such as Oracle Enterprise Manager Database Control.
Note:
Before you shut down any processes that are monitored by Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime, rather than an unplanned system outage.Shut down all Oracle RAC instances on each node you intend to upgrade. To shut down Oracle RAC instances on individual nodes in the database, enter the following command, where db_name
is the name of the database, and instance_name
is the name of the instance:
C:>oracle_home\BIN\srvctl stop instance -d db_name -i instance_name
Repeat this process on each node of the cluster on which you intend to perform the rolling upgrade.
Shut down ASM instances on each node on which you intend to perform the rolling upgrade.
Note:
If you shut down ASM instances, then you must first shut down all database instances on the nodes you intend to upgrade that use ASM, even if these databases run from different Oracle homes.To shut down an ASM instance, enter the following command, where node is the name of the node where the ASM instance is running:
C:>oracle_home\BIN\srvctl stop asm -n node
Stop all node applications on each node on which you intend to perform the rolling upgrade. To stop node applications running on a node, enter the following command, where node is the name of the node where the applications are running
C:>oracle_home\BIN\srvctl stop nodeapps -n node
Stop ASM, database and CRS services from the Service Control Manager window.
To complete the patch upgrade, use the Oracle Universal Installer (OUI) downloaded with the patch update.
Complete the following steps:
Start the patch set OUI. At the Product Selection Page, click Next.
On the Specify Home Details window, select the Oracle Clusterware home directory, and click Next.
On the Specify Hardware Cluster Installation Nodes window, select the nodes where you want to perform the upgrade, and click Next.
Follow further instructions as directed from the OUI windows.
When the install script completes, it displays text similar to the following, where patch_version
displays the patch version you are installing:
patch_version patch successfully applied.
clscfg -upgrade completed successfully
This indicates that the upgrade process is complete. The upgraded Oracle Clusterware stack and AUTOSTART resources are started on the node.
Repeat steps 4 and 5 for each node on which you are performing a rolling upgrade.
Use the following procedure to upgrade Oracle Clusterware from an earlier release to a later release:
Note:
You cannot change the owner of the Oracle Clusterware home during an upgrade. You must use the same Oracle software owner that owns the existing Oracle Clusterware home.Load the Oracle Clusterware 11g release 1 (11.1) installation media into a CD or DVD ROM drive, or stage locally on disk.
Complete operating system prerequisite checks on each of the nodes that you intend to upgrade, to ensure that they meet the system prerequisites for Oracle Clusterware 11g release 1 (11.1).
If necessary, perform patch upgrades of the previous release Oracle Clusterware or Oracle Cluster Ready Services software to the most recent patch version, as described in the preceding section, "How to Perform Oracle Clusterware Rolling Upgrades for Patches". When you have completed patch upgrades, shut down processes on the nodes you intend to upgrade, as described in the preceding section, "How to Stop Processes in an Existing Oracle Database".
Ensure that you are logged in as Administrator before running the Oracle Universal Installer. Then run the Installer and provide information as the Installer prompts you.
Note:
You can upgrade one node, a subset of nodes, or all nodes, depending on your upgrade plan. However, note the following information about starting upgrades with OUI:If this is the initial upgrade, then the node where OUI is running must be one of the set of nodes that is being upgraded.
If this is the second or subsequent upgrade, then the node where OUI is running must be on a node that has not been upgraded.
Start the second and subsequent installs of a rolling upgrade from a node that has not already been upgraded.
After installing the Oracle Clusterware upgrade, if you intend to upgrade Automatic Storage Management, or the Oracle Database software, complete preinstallation procedures for installing Oracle Database or Oracle RAC, as described in the Oracle Database Installation Guide for your platform, or in this guide (for Oracle RAC preinstallation checks).
See Also:
Oracle Database Upgrade Guide for additional information about completing database upgrades