This appendix describes how to perform Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM) upgrades.
Without a valid backup, you will not be able to restore the Oracle software to a working state if the upgrade of Oracle Grid Infrastructure or Oracle Database fails and you want to revert to the previous software installation.
There are different methods you can use to upgrade the Oracle Grid Infrastructure software.
You can upgrade Oracle Grid Infrastructure in any of the following ways:
Rolling Upgrade: Involves upgrading individual nodes without stopping Oracle Grid Infrastructure on other nodes in the cluster
Non-Rolling Upgrade: Involves bringing down all the nodes except one. A complete cluster outage occurs while the root script stops the old Oracle Clusterware stack and starts the new Oracle Clusterware stack on the node where you initiate the upgrade. After upgrade is completed, the new Oracle Clusterware is started on all the nodes.
Note that some services are disabled when one or more nodes are in the process of being upgraded. All upgrades are out-of-place upgrades, meaning that the software binaries are placed in a different Grid home from the Grid home used for the prior release.
You can downgrade from Oracle Grid Infrastructure 12c Release 1 (12.1) to prior releases of Oracle Grid Infrastructure. Be aware that if you downgrade to a prior release, then your cluster must conform with the configuration requirements for that prior release, and the features available for the cluster consist only of the features available for that prior release of Oracle Clusterware and Oracle ASM.
If you have an existing Oracle ASM 11g Release 1 (11.1) or Oracle ASM 10g instance, with Oracle ASM in a separate home, then you can either upgrade it at the time that you install Oracle Grid Infrastructure, or you can upgrade it after the installation, using Oracle ASM Configuration Assistant (ASMCA). Note that a number of Oracle ASM features are disabled until you upgrade Oracle ASM. Also, Oracle Clusterware management of Oracle ASM does not function correctly until Oracle ASM is upgraded, because Oracle Clusterware only manages Oracle ASM when it is running in the Oracle Grid Infrastructure home. For this reason, Oracle recommends that if you do not upgrade Oracle ASM at the same time as you upgrade Oracle Clusterware, then you should upgrade Oracle ASM immediately afterward. This issue does not apply to Oracle ASM 11g Release 2 (11.2) and later releases, because the Oracle ASM executable files are stored in the Oracle Grid Infrastructure home for those releases.
You can perform out-of-place upgrades to an Oracle ASM instance using ASMCA. In addition to running ASMCA using the graphical user interface (GUI), you can run ASMCA in non-interactive (silent) mode.
Note:
If you are currently using OCFS for Windows as your shared storage, then you must migrate to using Oracle ASM during the upgrade of Oracle Database and Oracle Grid Infrastructure.Note:
You must complete an upgrade before attempting to use cluster backup files. You cannot use backups for a cluster that has not completed the upgrade.See Also:
Oracle Database Upgrade Guide and Oracle Automatic Storage Management Administrator's Guide for additional information about upgrading existing Oracle ASM installationsThere are different options for upgrading and dowgrading your installation, depending on which previous version of Oracle Grid Infrastructure you currently use.
Upgrade Options from Oracle Grid Infrastructure 11g to Oracle Grid Infrastructure 12c
Upgrade options from Oracle Grid Infrastructure 11g to Oracle Grid Infrastructure 12c include the following:
Oracle Grid Infrastructure rolling upgrades, with OCR and voting files on Oracle ASM
Oracle Grid Infrastructure complete cluster (downtime, non-rolling), with OCR and voting files on Oracle ASM
Oracle Grid Infrastructure rolling upgrades with OCR and voting files on storage other than Oracle ASM
Oracle Grid Infrastructure complete cluster (downtime, non-rolling), with OCR and voting files on storage other than Oracle ASM
Upgrade Options from Releases Before Oracle Grid Infrastructure 11g Release 2 (11.2)
Upgrade options from releases before Oracle Grid Infrastructure 11g Release 2 (11.2) to Oracle Grid Infrastructure 12c include the following:
Oracle Grid Infrastructure rolling upgrades, with OCR and voting files on storage other than Oracle ASM
Oracle Grid Infrastructure complete cluster (downtime, non-rolling), with OCR and voting files on storage other than Oracle ASM
Downgrade Options from Oracle Grid Infrastructure 12c to Earlier Releases
Downgrade options from Oracle Grid Infrastructure 12c to earlier releases include the following:
Oracle Grid Infrastructure downgrade to Oracle Grid Infrastructure 11g Release 2 (11.2)
Oracle recommends that you use CVU to check if there are any patches required for upgrading your existing Oracle Grid Infrastructure 11g Release 2 or Oracle RAC 11g Release 2 installations.
Be aware of the following restrictions and changes for upgrades to Oracle Grid Infrastructure installations, which consists of Oracle Clusterware and Oracle ASM:
If the OCR and Voting File locations for your current installation are on raw devices, then you must migrate them to Oracle ASM disk groups or shared file systems before upgrading to Oracle Grid Infrastructure 12c Release 1 (12.1).
To upgrade existing Oracle Clusterware installations to Oracle Grid Infrastructure 12c Release 1 (12.1), your current release must be Oracle Grid Infrastructure 11g Release 2.
On the Windows platform, to upgrade Oracle Clusterware from releases 10.2.0.5 and 11.1.0.7 to Oracle Grid Infrastructure release 12.1, you must perform an interim upgrade to Oracle Grid Infrastructure 11g Release 2 for Oracle Clusterware. After upgrading Oracle Clusterware to Oracle Grid Infrastructure 11g Release 2, you must move the Oracle Cluster Registry (OCR) and voting files to Oracle ASM. You can then upgrade Oracle Grid Infrastructure 11g Release 2 to Oracle Grid Infrastructure release 12.1.
If you are upgrading an Oracle Database release 10.2.0.5 or Oracle Database release 11.1.0.7 environment that stores Oracle Clusterware files on OCFS for Windows or RAW devices, then you cannot directly upgrade to Oracle Database 12c. See Oracle Database Upgrade Guide.
To upgrade existing Oracle ASM installations to Oracle Grid Infrastructure 12c Release 1 (12.1), in a Standard configuration, your release must be greater than or equal to 10.1.0.5, 10.2.0.3, 11.1.0.6, or 11.2.
To upgrade existing Oracle Grid Infrastructure installations to Oracle Grid Infrastructure, you must first verify if you need to apply any mandatory patches for upgrade to succeed. To upgrade Oracle Grid Infrastructure installations from 11.2.0.2 to a later release, you must install the latest bundle for the cumulative patches for Oracle Grid Infrastructure (Patch 11 bundle or higher). See Using CVU to Validate Readiness for Oracle Clusterware Upgrades for steps to check readiness.
See Also:
Oracle 12c Upgrade Companion (My Oracle Support Note 1462240.1): https://support.oracle.com/oip/faces/secure/km/DocumentDisplay.jspx?id=1462240.1
Do not delete directories in the Grid home. For example, do not delete Grid_home\Opatch. If you delete the directory, then the Oracle Installation User for Oracle Grid Infrastructure cannot use Opatch to patch the Grid home, and Opatch displays the error "checkdir error: cannot create Grid_home\OPatch"
Oracle Clusterware and Oracle ASM upgrades are always out-of-place upgrades. With Oracle Grid Infrastructure 12c Release 1 (12.1), you cannot perform an in-place upgrade of Oracle Clusterware and Oracle ASM to existing homes.
With Oracle Clusterware 11g Release 2 (11.2) and later, you can perform upgrades on a shared Oracle Clusterware home.
You must use an Administrator user to perform the Oracle Grid Infrastructure 12c Release 1 (12.1) upgrade.
Oracle ASM and Oracle Clusterware both run in the Oracle Grid Infrastructure home.
During a major release upgrade to Oracle Clusterware 12c Release 1 (12.1), the software in the Grid home for Oracle Grid Infrastructure 12c Release 1 (12.1) is not fully functional until the upgrade is completed. Running the Server Control Utility (SRVCTL), crsctl, and other commands from the 12c Release 1 (12.1) Grid home is not supported until the upgrade is complete across all nodes.
To manage databases using earlier releases (release 10.x, 11.1, or 11.2) of Oracle Database software during the Oracle Grid Infrastructure upgrade, use SRVCTL in the existing database homes.
During Oracle Clusterware installation, if there is a single instance Oracle ASM release on the local node, then it is converted to a clustered Oracle ASM 12c Release 1 (12.1) installation, and Oracle ASM runs in the Oracle Grid Infrastructure home on all nodes.
If a single instance (non-clustered) Oracle ASM installation is on a remote node, which is a node other than the local node (the node on which the Oracle Grid Infrastructure installation is being performed), then it will remain a single instance Oracle ASM installation. However, during installation, if you select to place the Oracle Cluster Registry (OCR) and voting files on Oracle ASM, then a clustered Oracle ASM installation is created on all nodes in the cluster, and the single instance Oracle ASM installation on the remote node will become nonfunctional.
Before you can create an Oracle Database 12c release 1 (12.1.0.1) database that uses Oracle ASM release 12.1.0.2 for storage, you must apply the patch for bug 19168335.
See Also:
Oracle Database Upgrade GuideAll upgrades are out-of-place upgrades, meaning that the software binaries are placed in a different Grid home from the Grid home used for the prior release. You can also perform the upgrade in a rolling manner, which means there is always at least one cluster node operational during the upgrade.
Rolling Upgrades
You can upgrade Oracle Grid Infrastructure either by bringing the cluster down and upgrading the complete cluster, or upgrading individual nodes without stopping Oracle Grid Infrastructure on other nodes in the cluster, which is called performing a rolling upgrade. 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 release.
Note:
In contrast with releases prior to Oracle Clusterware 11g Release 2, Oracle Universal Installer (OUI) always performs rolling upgrades, even if you select all nodes for the upgrade.Out-of-Place Upgrades
During an out-of-place upgrade, the installer installs the newer release in a separate Oracle Clusterware home. Both releases of Oracle Clusterware are on each cluster member node, but only one release 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 Infrastructure homes on each node. Then you can perform an out-of-place rolling upgrade, so that some nodes run Oracle Clusterware from the original Oracle Clusterware home, and other nodes run 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 is not supported.
Related Topics
If you have an existing Oracle Clusterware installation, then you upgrade your existing cluster by performing an out-of-place upgrade. You cannot perform an in-place upgrade.
Complete the following tasks before starting an upgrade:
Use the Release Notes and Cluster Verification Utility to make sure you are ready to patch or upgrade your software.
See Also:
Oracle Database Upgrade GuideEnsure that you have the information you will need when installing Oracle Grid Infrastructure into a new home directory.
If your current Oracle Clusterware installation is not currently running at least the minimum supported release, then a prerequisite check failure is reported. You must upgrade your current Oracle Clusterware installation to at least the minimum supported release before upgrading.
If you have had an existing installation on your system, and you are using the same user account to install Oracle Grid Infrastructure 12c Release 1 (12.1), then for the Oracle installation user you must unset environment variables that are connected with Oracle software homes.
Before upgrading, you must unset the following environment variables:
ORACLE_BASE
ORACLE_HOME
ORACLE_SID
ORA_NLS10
TNS_ADMIN
ORA_CRS_HOME
If you have set ORA_CRS_HOME
as an environment variable, following instructions from Oracle Support, then unset it before starting an installation or upgrade. You should never use ORA_CRS_HOME
as an environment variable except under explicit direction from Oracle Support.
You can use Cluster Verification Utility (CVU) to assist you with system checks in preparation for starting an upgrade. CVU runs the appropriate system checks automatically, and prompts you to fix problems before proceeding with the upgrade.
runcluvfy.bat
command to check your system before upgrading.See Also:
Oracle Database Upgrade GuideYou can use the Cluster Verification Utility (CVU) to validate your system readiness before upgrading.
You can run upgrade validations in one of two ways:
Run OUI, and allow the CVU validation built into OUI to perform system checks
Run the CVU manual script cluvfy.bat
script to perform system checks
To use OUI to perform pre-install checks, run the installation as you normally would. OUI starts CVU, and performs system checks as part of the installation process. Selecting OUI to perform these checks is particularly appropriate if you think you have completed preinstallation checks, and you want to confirm that your system configuration meets minimum requirements for installation.
To use the cluvfy.bat
command-line script for CVU, navigate to the staging area for the upgrade, where the runcluvfy.bat
command is located, and run the following command to check the readiness of your Oracle Clusterware installation for upgrades:
runcluvfy.bat stage -pre crsinst -upgrade
Running runcluvfy.bat
with the -pre crsinst -upgrade
options performs system checks to confirm if the cluster is in a correct state for upgrading from an existing clusterware installation.
The runcluvfy
command uses the following syntax, where variable content is indicated by italics:
runcluvfy.bat stage -pre crsinst -upgrade [-rolling] -src_crshome src_Gridhome -dest_crshome dest_Gridhome -dest_version dest_release [-verbose]
The options are:
-rolling
Use this option to verify readiness for rolling upgrades.
-src_crshome src_Gridhome
Use this option to indicate the ___location of the source Oracle Clusterware or Grid home that you are upgrading, where src_Gridhome is the path to the home to upgrade.
-dest_crshome dest_Gridhome
Use this option to indicate the ___location of the upgrade Grid home, where dest_Gridhome is the path to the Grid home.
-dest_version dest_release
Use the dest_version
option to indicate the release number of the upgrade, including any patchset. The release number must include the five digits designating the release to the level of the platform-specific patch. For example: 12.1.0.1.0.
-verbose
Use the -verbose
option to produce detailed output of individual checks
You can use the runcluvfy.bat
command to check your system before upgrading.
Verify that the permissions required for installing Oracle Clusterware have been configured by running the following command:
C:\> runcluvfy.bat stage -pre crsinst -upgrade -rolling -src_crshome C:\app\11.2.0.3\grid -dest_crshome C:\app\12.1.0\grid -dest_version 12.1.0.2.0 -verbose
Instead of shutting down all nodes when applying patches, you can shut down some nodes while other nodes remaining running.
Upgrades from earlier releases require that you upgrade the entire cluster. You cannot select or de-select individual nodes for upgrade. Oracle does not support attempting to add additional nodes to a cluster during a rolling upgrade.
Oracle recommends that you leave Oracle RAC instances running when upgrading Oracle Clusterware. When you start the upgrade process on each node, the upgrade scripts shut down the database instances and then start the instances again. If you upgrade from Oracle Grid Infrastructure 11g Release 11.2.0.2 and later to any later release of Oracle Grid Infrastructure, then all nodes are selected for upgrade by default.
When performing the upgrade, you can divide the nodes into groups, or batches, and start upgrades of these node batches. Between batches, you can move services from nodes running the earlier release to the upgraded nodes, so that services are not affected by the upgrade.
Review this information to perform rolling upgrade of Oracle Grid Infrastructure.
Use the following procedure to upgrade Oracle Clusterware or Oracle Automatic Storage Management (Oracle ASM) from an earlier release to a later release.
Note:
When you upgrade to Oracle Clusterware 12c Release 1 (12.1), Oracle Automatic Storage Management (Oracle ASM) is installed in the same home as Oracle Clusterware. In Oracle documentation, this home is called the Oracle Grid Infrastructure home, or Grid home. Also note that Oracle does not support attempting to add additional nodes to a cluster during a rolling upgrade.If you previously attempted to upgrade to a higher release of Oracle Grid Infrastructure, and that Grid home still exists, then instead of running the installer, run the config.bat script in the Grid_home\crs\config directory of the higher version Grid home. Select the Upgrade option to upgrade the existing Grid home to the later release.
Related Topics
If some nodes become unreachable in the middle of an upgrade, then you cannot complete the upgrade without user intervention.
Because the upgrade did not complete successfully on the unreachable nodes, the upgrade is incomplete. Oracle Clusterware remains in the earlier release.
Starting with Oracle Grid Infrastructure 12c, after you complete a force cluster upgrade command, you can join inaccessible nodes to the cluster as an alternative to deleting the nodes, which was required in earlier releases.
After you have completed the Oracle Clusterware portion of Oracle Grid Infrastructure 12c Release 1 (12.1) upgrade, you may need to upgrade Oracle ASM separately if the Oracle ASM portion of the Oracle Grid Infrastructure upgrade failed, or for some other reason Automatic Storage Management Configuration assistant (ASMCA) did not run.
After you have upgraded Oracle ASM to Oracle Grid Infrastructure 12c Release 1, you can install individual patches for Oracle ASM by downloading them from the Oracle Automated Release Update site. See "Preparing to Upgrade Oracle ASM"for steps to upgrade Oracle ASM separately from Oracle Grid Infrastructure.
If you must complete upgrade of Oracle ASM separately, then note these requirements.
The active release of Oracle Clusterware must be 12c Release 1 (12.1). To determine the active release, enter the following command from the Grid home:
crsctl query crs activeversion
You can upgrade a single instance Oracle ASM installation to a clustered Oracle ASM installation. However, you can only upgrade an existing single instance Oracle ASM installation if you run the installation from the node on which Oracle ASM is installed. You cannot upgrade a single instance Oracle ASM installation on a remote node.
You must ensure that any rebalance operations on your existing Oracle ASM installation are completed before starting the upgrade process.
During the upgrade process, you alter the state of the Oracle ASM instances to an upgrade state. Because this upgrade state limits Oracle ASM operations, you should complete the upgrade process soon after you begin. You can perform the following operations when an Oracle ASM instance is in the upgrade state:
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
)
You do not need to shut down database clients unless they are on Oracle ACFS.
Complete the following tasks if you must upgrade from an Oracle ASM release where Oracle ASM was installed in a separate Oracle home, or if the Oracle ASM portion of Oracle Grid Infrastructure upgrade failed to complete.
See Also:
Oracle Database Upgrade Guide and Oracle Automatic Storage Management Administrator's Guide for more information about preparing an upgrade plan for Oracle ASM, and for starting, completing, and stopping Oracle ASM upgradesAfter you have upgraded Oracle ASM with Oracle Grid Infrastructure 12c Release 1, you can install individual patches for Oracle ASM by downloading them from My Oracle Support.
Individual patches are called one-off patches.
An Oracle ASM one-off patch is available for a specific release of Oracle ASM. If a patch you want is available, then you can download the patch and apply it to Oracle ASM using the OPatch Utility.
The OPatch inventory keeps track of the patches you have installed for your release of Oracle ASM. If there is a conflict between the patches you have installed and patches you want to apply, then the OPatch Utility advises you of these conflicts. See "Patching Oracle ASM to a Software Patch Level" for information about applying patches to Oracle ASM using the OPatch Utility.
Review this topic to understand how to apply patches for Oracle ASM and Oracle Grid Infrastructure.
The software patch level for Oracle Grid Infrastructure represents the set of all one-off patches applied to the Oracle Grid Infrastructure software release, including Oracle ASM. The release is the release number, in the format of major, minor, and patch set release number. For example, with the release number 12.1.0.1, the major release is 12, the minor release is 1, and 0.1 is the patch set number. With one-off patches, the major and minor release numbers remain the same, though the patch levels change each time you apply or roll back an interim patch.
As with standard upgrades to Oracle Grid Infrastructure, at any given point in time for normal operation of the cluster, all the nodes in the cluster must have the same software release and patch level. Because one-off patches can be applied as rolling upgrades, all possible patch levels on a particular software release are compatible with each other.
See Also:
"Performing a Standard Upgrade from an Earlier Release" for information about upgrading Oracle Grid Infrastructure
"Patching Oracle ASM to a Software Patch Level" for information about applying patches to Oracle ASM using the OPatch utility
Starting with Oracle Grid Infrastructure 12c Release 1 (12.1), a new cluster state called Rolling Patch is available.
Rolling Patch mode is similar to the existing Rolling Upgrade mode in terms of the Oracle ASM operations allowed in this quiesce state.
If you are upgrading from a prior release using IPD/OS to Oracle Grid Infrastructure 11g Release 2 (11.2.0.2 and later), then you should review the Cluster Health Monitor repository size (the CHM repository).
After a successful or a failed upgrade to Oracle Clusterware 12c Release 1 (12.1), you can restore Oracle Clusterware to the earlier release.
Downgrading Oracle Clusterware restores the Oracle Clusterware configuration to the state it was in before the Oracle Clusterware 12c Release 1 (12.1) upgrade. Any configuration changes you performed during or after the Oracle Grid Infrastructure 12c Release 1 (12.1) upgrade are removed and cannot be recovered.
In the downgrade procedures, the following variables are used:
local node is the first node on which you started the upgrade process.
remote nodes are all other nodes where you started the upgrade process.
To restore Oracle Clusterware to the earlier release, use the downgrade procedure for the release to which you want to downgrade.
Note:
When downgrading after a failed upgrade, if therootcrs.bat
file does not exist on a node, then instead of the executing the script rootcrs.bat
use the command perl rootcrs.pl
in the following sections. Use the perl interpreter located in the Oracle Home directory.These steps describe how to restore Oracle Clusterware to the earlier release.
The installer stops the Oracle Grid Infrastructure 12c software stack.
The Windows services used by Oracle Grid Infrastructure are recreated to refer to the Grid home for the older software release by one of the scripts during the downgrade process.
Because the Oracle Clusterware upgrade is an out-of-place upgrade, the upgraded software has a new ___location for the Grid home. The path for the Oracle Clusterware home in some Oracle Enterprise Manager parameter files must be changed.
If you do not change the CRS_HOME parameter, then you can encounter errors such as "cluster target broken" on Oracle Enterprise Manager Cloud Control.
To resolve the issue, upgrade the Enterprise Manager Cloud Control target, and then update the Enterprise Manager Agent Base Directory on each cluster member node running an agent.
After upgrading Oracle Grid Control, you might need to update the targets in Oracle Enterprise Manager Cloud Control.
The Agent Base Directory is a directory where the Management Agent home is created.
The Management Agent home is in the path Agent_Base_directory\core\EMAgent_Version. For example, if the Agent Base Directory is C:\app\emagent
, then Oracle creates the Management Agent home as C:\app\emagent\core\12.1.0.1.0
.
bin
directory in the Management Agent home.C:\app\emagent\core\12.1.0.1.0\bin
directory, open the file emctl
with a text editor.CRS_HOME
, and update the parameter to the new Grid home path.