The following topics describe how to upgrade and downgrade an Oracle database when a physical or logical standby database is present in the Oracle Data Guard configuration:
Consider the following points before beginning to upgrade your Oracle Database software:
If you are using the Oracle Data Guard broker to manage your configuration, follow the instructions in the Oracle Data Guard Broker manual for information about removing or disabling the broker configuration.
The procedures described in these topics are to be used in conjunction with the ones contained in the Oracle Database Upgrade Guide.
Check for nologging operations. If nologging operations have been performed then you must update the standby database. See Recovering After the NOLOGGING Clause Is Specified for details.
Make note of any tablespaces or data files that need recovery due to OFFLINE IMMEDIATE
. Tablespaces or data files should be recovered and either online or offline prior to upgrading.
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
Note:
If there are cascaded standbys in your configuration then those cascaded standbys must follow the same rules as any other standby but should be shut down last and restarted in the new home first.
Perform the following steps to upgrade to Oracle Database 12c Release 1 (12.1) when a physical standby database is present in the configuration:
Note:
This topic describes the traditional method for upgrading your Oracle Database software with a logical standby database in place. A second method in Using SQL Apply to Upgrade the Oracle Database describes how to upgrade with a logical standby database in place in a rolling fashion to minimize downtime. Use the steps from only one method to perform the complete upgrade. Do not attempt to use both methods or to combine the steps from the two methods as you perform the upgrade process.
The procedure described in this section assumes that the primary database is running in MAXIMUM PERFORMANCE
data protection mode.
Perform the following steps to upgrade to Oracle Database 12c Release 1 (12.1) when a logical standby database is present in the configuration:
When you upgrade to a new release of Oracle Database, certain new features might make your database incompatible with your previous release. Oracle Database enables you to control the compatibility of your database with the COMPATIBLE
initialization parameter.
After the upgrade is complete, you can increase the setting of the COMPATIBLE
initialization parameter to the maximum level for the new Oracle Database release. When you are certain that you no longer need the ability to downgrade your database back to its original version, set the COMPATIBLE
initialization parameter based on the compatibility level you want for your new database.
In an Oracle Data Guard configuration, if you decide to increase the setting of the COMPATIBLE
initialization parameter after upgrading, then it is important that you perform the following steps in the order shown (be sure the standby database has a COMPATIBLE
setting equal to, or higher than, the primary):
Increase the value of the COMPATIBLE
initialization parameter on all standby databases in the configuration first, as follows:
Ensure that apply is current on the standby database(s).
On one instance of each standby database, execute the following SQL statement:
ALTER SYSTEM SET COMPATIBLE=<value> SCOPE=SPFILE;
If Redo Apply or SQL Apply is running, then stop them.
Restart all instances of the standby database(s).
If you previously stopped Redo Apply or SQL Apply, then restart them.
Increase the value of the COMPATIBLE
initialization parameter on the primary database, as follows:
On one instance of the primary database, execute the following SQL statement:
ALTER SYSTEM SET COMPATIBLE=<value> SCOPE=SPFILE;
Restart all instances of the primary database.
See Also:
Oracle Database Upgrade Guide for more information about compatibility settings
Perform the following steps to downgrade Oracle Database in an Oracle Data Guard configuration that does not contain a logical standby database: