This appendix guides you through the process of upgrading or downgrading the Oracle databases and Oracle Enterprise Manager Cloud Control (Cloud Control) in a broker configuration. It contains the following topics:
Upgrading from Oracle Database 9i Release 2 (9.2) to Oracle Database 12c Release 1 (12.1)
Upgrading from Oracle Database 10g and Oracle Database 11g to Oracle Database 12c Release 1 (12.1)
Note:
In an Oracle Data Guard configuration, all physical and snapshot standby databases must use a copy of the password file from the primary database, and that copy must be refreshed whenever an administrative privilege (SYSDG
, SYSOPER
, SYSDBA
, and so on) is granted or revoked, and after the password of any user with administrative privileges is changed.
See Also:
If you are currently running Oracle Data Guard on Oracle Database 10g or Oracle Database 11g, then you can upgrade the database software to Oracle Database 12c Release 1 (12.1) using the Oracle Database installation documentation that is appropriate for your operating system.
Note:
Prior to Oracle Database 11g Release 2 (11.2), the configuration file was restricted to reside only on disks having the same sector size (physical block size) as that upon which the file was initially created. This was not a problem because there was typically a single sector size in use within a given broker configuration. In anticipation of having mixed sector sizes somewhere within a given broker configuration, the broker configuration file is now completely insensitive to the underlying sector size, so long as the sector size is 4KB or less.
Conversion of the configuration file to be insensitive to the underlying sector size occurs during the upgrade processing in Step 5 below.
Issue the following DGMGRL command to disable fast-start failover:
DGMGRL> DISABLE FAST_START FAILOVER;
Shut down the 10.n or 11.n Oracle Data Guard broker, whichever version you are running.
Issue the following DGMGRL command to disable the broker's active management of the databases in the Oracle Data Guard configuration:
DGMGRL> DISABLE CONFIGURATION;
Issue the following SQL*Plus statement to stop the broker:
SQL> ALTER SYSTEM SET DG_BROKER_START=FALSE;
Make a copy of the current broker configuration files, as indicated by the following initialization parameters: DG_BROKER_CONFIG_FILE1
and DG_BROKER_CONFIG_FILE2
.
Upgrade the Oracle Database software to Oracle Database 12c Release 1 (12.1). For step-by-step upgrade instructions, see the Oracle Database installation documentation that is appropriate for your operating system.
The DGMGRL command-line interface must also be upgraded in order to manage and monitor a broker configuration running on Oracle Database 12c Release 1 (12.1). DGMGRL running on Oracle Database 12c Release 1 (12.1) cannot be used to manage Oracle Data Guard running on Oracle Database 10g or Oracle Database 11g.
Note:
Existing DGMGRL command-line scripts for Oracle Database 10g and Oracle Database 11g are supported by the DGMGRL command-line interface available in Oracle Database 12c Release 1 (12.1).
DGMGRL command-line scripts for Oracle Database 11g are not guaranteed to be supported by Oracle Database 10g.
After the upgrade to Oracle Database 12c Release 1 (12.1), start the broker. For example:
Issue the following SQL*Plus statements to start the broker:
SQL> ALTER SYSTEM SET DG_BROKER_START=TRUE;
Issue the following DGMGRL command to enable the broker's active management of the databases in the Oracle Data Guard configuration:
DGMGRL> ENABLE CONFIGURATION
The first time the broker starts on Oracle Database 12c Release 1 (12.1) it detects the existence of the Oracle Database 10g and Oracle Database 11g broker configuration files. It automatically upgrades them to include any new properties that were introduced in Oracle Database 12c Release 1 (12.1). This automatic conversion is transparent, permanent, and occurs only once.
Note:
As of this automatic upgrade that occurs in Step 5, the configuration file may henceforth reside on a disk having any supported disk sector size (physical block size) up to and including 4KB sectors.
Note:
The observer that was started prior to the upgrade will automatically be stopped and unable to observe the configuration once the upgrade is complete. You must use an Oracle Database 12c version of the Oracle Observer software to observe Oracle databases running on Oracle Database 12c Release 1 (12.1) or higher.
If you use Oracle Data Guard broker to manage an Oracle Data Guard configuration and you want to preserve that configuration when you perform a rolling upgrade, then you must do the following:
DISABLE CONFIGURATION
command).ENABLE CONFIGURATION
command).Following this procedure preserves your broker configuration so that you do not have to rebuild it after a rolling upgrade is complete.
This procedure has the following restrictions:
The broker configuration must be enabled after the rolling upgrade is complete.You must ensure that the rolling upgrade is complete before enabling the configuration.
The broker configuration does not support databases running different versions of Oracle. Any standby databases not running the same version of Oracle as the primary database are disabled with an ORA-16673: standby database running different Oracle version
error message.
When the broker configuration is disabled, the broker configuration can then only be enabled while connected to a database whose control file role is primary (query the DATABASE_ROLE
column of the V$DATABASE
view to see which one contains the value PRIMARY
).
See Also:
Oracle Data Guard Concepts and Administration for more information about rolling upgrades