This appendix describes how to perform Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM) upgrades.
About Oracle Grid Infrastructure and Oracle ASM Upgrade and Downgrade
Options for Oracle Clusterware and Oracle ASM Upgrades and Downgrades
Restrictions and Guidelines for Oracle Grid Infrastructure Upgrades
Preparing to Upgrade an Existing Oracle Clusterware Installation
Using CVU to Validate Readiness for Oracle Clusterware Upgrades
Checking Cluster Health Monitor Repository Size After Upgrading
Updating Oracle Enterprise Manager Cloud Control Target Parameters
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.
Before you make any changes to the Oracle software, Oracle recommends that you create a backup of the Oracle software and databases.
For Oracle software running on Windows operating systems, you must also take a backup of the Windows registry.
Without a registry 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.
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, depending on which previous version of Oracle Grid Infrastructure you are upgrading.
Upgrade options from Oracle Grid Infrastructure 11g
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 Section D.7, "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 GuideYou 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.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.
See Also:
"Performing Rolling Upgrades of Oracle Grid Infrastructure" for instructions on completing rolling upgradesIf 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.
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.
Use the Cluster Verification Utility (CVU) to assist you with system checks in preparation for patching or upgrading.
You can run CVU before starting the upgrade, however, the installer runs the appropriate CVU checks automatically, and prompts you to fix problems before proceeding with the upgrade.
See Also:
Oracle Database Upgrade GuideEnsure that you have the information you will need when installing Oracle Grid Infrastructure into a new home directory, including the following:
The Oracle base location for Oracle Clusterware
An Oracle Grid Infrastructure home location that is different from your existing Oracle Clusterware home (or Grid home) location
SCAN name and addresses, and other network addresses, as described in Chapter 4
Privileged user operating system groups, as described in Section 5.1, "Creating Groups and Users for Oracle Grid Infrastructure and Oracle RAC"
Local Administrator user access, or access as the user who performed the previous Oracle Clusterware installation
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.
To upgrade existing Oracle Clusterware installations to a standard configuration Oracle Grid Infrastructure 12c cluster, your release must be greater than or equal to Oracle Clusterware 10g Release 1 (10.1.0.5), Oracle Clusterware 10g Release 2 (10.2.0.3), Oracle Grid Infrastructure 11g Release 1 (11.1.0.6), or Oracle Grid Infrastructure 11g Release 2 (11.2.0.2) or later.
Upgrade your current Oracle Clusterware installation to at least the minimum supported release before upgrading to Oracle Grid Infrastructure 12c Release 1.
For example, if you plan to upgrade your Oracle Clusterware 11g Release 1 installation to Oracle Clusterware 12c Release 1 (12.1) and your current Oracle Clusterware installation is release 11.1.0.2, then you must upgrade your current Oracle Clusterware installation to release 11.1.0.6 or higher before starting the upgrade.
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.
From the Start menu, right click My Computer and select Properties.
In the System Properties window, select Advanced, then click the Environment Variables button.
To unset an environment variable, select the variable then click Delete.
When finished unsetting the environment variables, click OK.
Check to ensure that the user profile for the Oracle Installation User does not set any of these environment variables.
You can use the Cluster Verification Utility (CVU) to validate your system readiness before upgrading.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.
This section contains the following topics:
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.
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_version [-verbose]
The options are:
-rolling
Use this flag to verify readiness for rolling upgrades.
-src_crshome
src_Gridhome
Use this flag 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 flag to indicate the location of the upgrade Grid home, where dest_ Gridhome
is the path to the Grid home.
-dest_version
dest_version
Use the dest_version
flag 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
flag 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
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.
These topics describe how to perform rolling upgrades of Oracle Grid Infrastructure.
Completing an Oracle Clusterware Upgrade when Nodes Become Unreachable
Completing the Upgrade of Inaccessible Nodes After Forcing an Upgrade
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 there are non-clustered, or single-instance, 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 have to be shut down.
Note:
Oracle recommends that you leave Oracle Real Application Clusters (Oracle RAC) instances running during the Oracle Clusterware upgrade. During the upgrade process, the database instances on the node being upgraded are stopped and started automatically during the upgrade process.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. If you are upgrading from Oracle Clusterware 11g, then all nodes are selected by default. You cannot select or de-select the nodes.Select installation options as prompted.
Confirm your selections, and then the upgrade scripts are run automatically.
Note:
If you receive an error indicating the server must be restarted before the installation completes, see Section A.12.2, "Completing Failed or Interrupted Upgrades."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 and the Oracle ASM management tools in the Oracle Grid Infrastructure 12c Release 1 (12.1) home (for example, srvctl
) do not work.
After the Oracle Clusterware upgrade completes, if you are upgrading from a release earlier than Oracle ASM 11g Release 2 (11.2.0.2), and you left the check box for ASM Configuration Assistant (ASMCA) selected, as is the default, then the installer starts ASMCA to upgrade Oracle ASM. If you unchecked the box on the interview stage of the upgrade, then ASMCA is not run automatically.
If an earlier release of Oracle ASM is installed, then the installer starts ASMCA to upgrade Oracle ASM to 12c Release 1 (12.1). You can upgrade Oracle ASM at this time, or upgrade it later.
Note:
After the upgrade, if you set the Oracle Cluster Registry (OCR) backup location manually to the earlier 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 Oracle Clusterware home for the earlier release cannot be the location of the OCR backups. Backups in the old Oracle Clusterware home could be deleted.
Because the Oracle Grid Infrastructure home is in a different location than the former Oracle Clusterware and Oracle ASM homes, update any scripts or applications that use utilities or other files that reside in the Oracle Clusterware and Oracle ASM homes.
See Also:
Section A.12, "Completing Failed or Incomplete Installations and Upgrades" for information about completing interrupted upgradesIf some nodes become unreachable in the middle of an upgrade, then you cannot complete the upgrade, because the upgrade did not complete successfully on the unreachable nodes. Because the upgrade is incomplete, Oracle Clusterware remains in the earlier release.
Confirm that the upgrade is incomplete by entering the command:
crsctl query crs activeversion
To resolve the incomplete upgrade, run the rootupgrade.bat
command with the -force
flag on any of the nodes where the rootupgrade.
bat script has already completed as follows:
Grid_home/rootupgrade -force
For example, as the Oracle Installation User for Oracle Grid Infrastructure, run the following command:
C:\> C:\app\12.1.0\grid\rootupgrade -force
The force
cluster upgrade has the following limitations:
All active nodes must be upgraded to the newer release
All inactive nodes (accessible or inaccessible) may be either upgraded or not upgraded
For inaccessible nodes, after patch set upgrades, you can delete the node from the cluster. If the node becomes accessible later, and the patch version upgrade path is supported, then you can upgrade it to the new patch version.
This command forces the upgrade to complete.
Verify that the upgrade has completed by using the command crsctl query crs activeversion
.
The active release should be the upgrade 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.
To use this option, Oracle Grid Infrastructure 12c Release 1 (12.1) software must already be installed on the nodes.
Log in as the Oracle Installation User for Oracle Grid Infrastructure on one of the nodes that is a member of the cluster.
Change directory to the crs\install
directory in the Oracle Grid Infrastructure 12c Release 1 (12.1) Grid home.
C:\> cd app\12.1.0\grid\crs\install
Run the following PERL command, where existing_node is the node in the cluster on which you run the command, and upgraded_node is the inaccessible or unreachable node that you want to join to the cluster:
C:\> rootupgrade.bat -join -existing_node upgraded_node
Note:
The-join
operation is not supported for Oracle Clusterware releases earlier than 11.2.0.2.0. In such cases, delete the node and add it to the cluster using the addNode
command.If the first node becomes inaccessible, you can force another node to be the first node for installation or upgrade.
Installation: If gridonfig.bat
fails to complete on the first node, run the following command on another node using the -force
option:
Grid_home\crs\config\gridconfig.bat -force -first
Upgrade: If gridonfig.bat
fails to complete on the first node, run the following command on another node using the -force
option:
Grid_home\crs\config\gridconfig.bat -upgrade -force -first
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 Section D.10.1, "Preparing to Complete a Separate Upgrade of Oracle ASM" for steps to upgrade Oracle ASM separately from Oracle Grid Infrastructure.
If you must complete upgrade of Oracle ASM separately, then note the following 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:
C:\..\bin> 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. The following operations are allowed 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.
On the node you plan to start the upgrade, set the environment variable ASMCA_ROLLING_UPGRADE
to true
. For example:
C:\> set ASMCA_ROLLING_UPGRADE=true
From the Oracle Grid Infrastructure 12c Release 1 (12.1) home, start ASMCA. For example:
C:\> cd app\12.1\grid\bin C:\..bin> asmca.bat
Select Upgrade.
Oracle ASM Configuration Assistant (ASMCA) upgrades Oracle ASM in succession for all nodes in the cluster.
After you complete the upgrade, run the command to unset the ASMCA_ROLLING_UPGRADE
environment variable.
C:\> set ASMCA_ROLLING_UPGRADE=
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.
Starting with Oracle Grid Infrastructure 12c Release 1 (12.1), a new cluster state called "Rolling Patch" is available. This mode is similar to the existing "Rolling Upgrade" mode in terms of the Oracle ASM operations allowed in this quiesce state.
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 Section D.11.3, "Patching Oracle ASM to a Software Patch Level" for information about applying patches to Oracle ASM using the OPatch Utility.
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.0 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:
Section D.9.1, "Performing a Standard Upgrade from an Earlier Release" for information about upgrading Oracle Grid Infrastructure
Section D.11.3, "Patching Oracle ASM to a Software Patch Level" for information about applying patches to Oracle ASM using the OPatch utility
Download the patch you want to apply from My Oracle Support:
Select the Patches and Updates tab to locate the patch.
To locate patch bundles, you can perform a Product or Family (Advanced) search for your platform and software release.
Oracle recommends that you select Recommended Patch Advisor, and enter the product group, release, and platform for your software. My Oracle Support provides you with a list of the most recent patches and critical patch updates (CPUs).
Place the patch in an accessible directory, such as C:\downloads
.
Change directory to the opatch
directory in the Grid home.
For example:
C:\> cd app\12.1.0\grid\opatch
Review the patch documentation for the patch you want to apply, and complete all required steps before starting the patch upgrade.
Follow the instructions in the patch documentation to apply the patch.
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).
Review your CHM repository needs, and enlarge the repository size to maintain a larger CHM repository.
Note:
Your previous IPD/OS repository is deleted when you install Oracle Grid Infrastructure.By default, the CHM repository size is a minimum of either 1GB or 3600 seconds (1 hour), regardless of the size of the cluster.
To enlarge the CHM repository, use the following command syntax, where RETENTION_TIME is the size of CHM repository in number of seconds:
oclumon manage -repos changeretentiontime RETENTION_TIME
For example, to set the repository size to four hours:
C:\> oclumon manage -repos changeretentiontime 14400
The value for RETENTION_TIME must be more than 3600
(one hour) and less than 259200
(three days). If you enlarge the CHM repository size, then you must ensure that there is local space available for the repository size you select on each node of the cluster. If there is not sufficient space available, then you can move the repository to shared storage.
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 to Oracle Clusterware 11g Releases Prior to Release 11.2.0.2
Downgrading to Oracle Clusterware 11g Release 2 (11.2.0.2) or Later 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.
If the rootupgrade
script failed on a node other than the node on which you started the upgrade (the first node), then downgrade the node where the upgrade failed:
Grid_home\crs\install\rootcrs.bat -downgrade
On all other nodes where the rootupgrade
script ran successfully, except the first node, as an Administrator user, use the following command:
Grid_home\crs\install\rootcrs.bat -downgrade [-force]
This command stops the Oracle Clusterware 12c Release 1 (12.1) resources, and shuts down the Oracle Grid Infrastructure 12c Release 1 (12.1) stack.
After the rootcrs.bat -downgrade
script has completed on all non-first nodes, on the first node use the following command syntax:
Grid_home\crs\install\rootcrs.bat -downgrade -lastnode [-force]
For example:
C:\app\12.1.0\grid\crs\install> rootcrs.bat -downgrade -lastnode
Note:
With Oracle Grid Infrastructure 12c, you no longer need to provide the location of the earlier release Grid home or release number.This script downgrades the OCR. To stop a partial or failed Oracle Grid Infrastructure 12c Release 1 (12.1) installation and restore the earlier release Oracle Clusterware, use the -force
flag with this command. Run this command from a directory that has write permissions for the Oracle Grid Infrastructure installation user.
On any of the cluster member nodes where the rootcrs
script has run successfully:
Log in as the Oracle Grid Infrastructure installation owner.
Use the following command to start the installer, where C:\app\12.1.0\grid
represents the location of the new (upgraded) Grid home:
setup.exe -nowait -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=false ORACLE_HOME=C:\app\12.1.0\grid
Add the flag -cfs
if the Grid home is a shared home.
On any of the cluster member nodes where the upgrade completed successfully:
Log in as the Oracle Grid Infrastructure installation owner.
Use the following command to start the installer, where the path you provide for the flag ORACLE_HOME
is the location of the home directory from the earlier Oracle Clusterware installation.
For example, if the location of the earlier Oracle Clusterware installation is C:\app\crs
, the you would use a command similar to the following:
C:\> cd C:\app\12.1.0\grid\oui\bin C:\..bin> setup.exe -nowait -waitforcompletion -ignoreSysPrereqs -updateNodeList -silent CRS=true ORACLE_HOME=C:\app\crs
For downgrades to 11.1 and earlier releases
If you are downgrading to Oracle Clusterware 11g Release 1 (11.1) or an earlier release, then you must run root.bat
manually from the earlier release Oracle Clusterware home to complete the downgrade after you complete step b.
OUI prompts you to run root.bat
manually from the earlier release Oracle Clusterware installation home in sequence on each member node of the cluster to complete the downgrade. After you complete this task, downgrade is completed.
Running root.bat
from the earlier release Oracle Clusterware installation home restarts the Oracle Clusterware stack, starts all the resources previously registered with Oracle Clusterware in the older release, and configures the old initialization scripts to run the earlier release Oracle Clusterware stack.
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.
Use these steps to restore Oracle Clusterware to the earlier release.
On all remote nodes, as an Administrator user, use the command syntax Grid_home\crs\install\rootcrs.bat -downgrade [-force]
to stop the Oracle Clusterware 12c Release 1 (12.1) resources, and shut down the Oracle Grid Infrastructure 12c Release 1 (12.1) stack.
For example:
C:\app\12.1.0\grid\crs\install> rootcrs.bat -downgrade
To stop a partial or failed Oracle Grid Infrastructure 12c Release 1 (12.1) installation and restore the earlier release of Oracle Clusterware, use the -force
flag with this command.
After the rootcrs.bat -downgrade
script has completed on all remote nodes, on the local node use the following command syntax:
Grid_home\crs\install\rootcrs.bat -downgrade -lastnode [-force]
For example:
C:\app\12.1.0\grid\crs\install> rootcrs.bat -downgrade -lastnode
Note:
Starting with Oracle Grid Infrastructure 12c, you no longer need to provide the location of the earlier release Grid home or release number.This script downgrades the OCR. To stop a partial or failed Oracle Grid Infrastructure 12c Release 1 (12.1) installation and restore the earlier release of Oracle Clusterware, use the -force
flag with this command.
On each cluster member node where the upgrade to Oracle Grid Infrastructure 12c has completed successfully:
Log in as an Administrator user or the Oracle Installation user.
Use the following command to start the installer, where C:\app\12.1.0\grid
is the location of the new (upgraded) Grid home (12.1):
setup.exe -updateNodeList -silent CRS=false ORACLE_HOME=C:\app\12.1.0\grid
Add the flag -cfs
if the Grid home is a shared home.
Use the following command to start the installer from the Grid home (12.1), where the path you provide for the flag ORACLE_HOME
is the location of the home directory from the earlier Oracle Clusterware installation, for example C:\app\11.2.0.2\grid
:
cd C:\app\12.1.0\grid\bin setup.exe -updateNodeList -silent CRS=true ORACLE_HOME=C:\app\11.2.0.2\grid
For downgrades to 11.2.0.2
If you are downgrading to Oracle Clusterware 11g Release 1 (11.2.0.2), then you must start the Oracle Clusterware stack manually after you complete step c.
On each node, start Oracle Clusterware from the earlier release Oracle Clusterware home using the command crsctl start crs
. For example, where the earlier release home is C:\app\11.2.0.2\grid
, use the following command on each node:
C:\app\11.2.0.2\grid\bin\crsctl start crs
For downgrades to 12.1.0.1
If you are downgrading to Oracle Grid Infrastructure 12c Release 1 (12.1.0.1), then run the following commands to configure the Grid Management Database:
Start the 12.1.0.1 Oracle Clusterware stack on all nodes.
On any node, remove the MGMTDB
resource as follows:
12101_Grid_home\bin\srvctl remove mgmtdb
Run DBCA in the silent mode from the Oracle Grid Infrastructure 12c home and create the Management Database as follows, where ASM_DG_NAME
is the name of a valid Oracle ASM disk group:
12101_Grid_home\bin\dbca -silent -createDatabase -templateName MGMTSeed_Database.dbc -sid "-MGMTDB" -gdbName _mgmtdb -storageType ASM -diskGroupName ASM_DG_NAME -characterset AL32UTF8 -datafileJarLocation 12101_grid_home/assistants/dbca/templates -autoGeneratePasswords
Configure the Management Database by running the Configuration Assistant from the location 12101_Grid_home
\bin\mgmtca
.
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.
Updating the Enterprise Manager Cloud Control Target After Upgrades
Updating the Enterprise Manager Agent Base Directory After Upgrades
Log in to Enterprise Manager Cloud Control
Navigate to the Targets menu, and then to the Cluster page.
Click a cluster target that was upgraded.
Click Cluster, then Target Setup, and then Monitoring Configuration from the menu.
Update the value for Oracle Home with the new Grid home path.
Save the updates.
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.
Navigate to the bin
directory in the Management Agent home.
In the C:\app\emagent\core\12.1.0.1.0\bin
directory, open the file emctl
with a text editor.
Locate the parameter CRS_HOME
, and update the parameter to the new Grid home path.
Repeat steps 1-3 on each node of the cluster with an Enterprise Manager agent.