Patching and Upgrading Oracle Globally Distributed Database
There are special considerations for patching and upgrading a distributed database deployment.
Patching Oracle Globally Distributed Database
Applying an Oracle patch to a distributed database environment can be done on a single shard or all shards; however, the method you use depends on the replication option used for the environment and the type of patch being applied.
Oracle Globally Distributed Database uses consolidated patching to update a shard director (GSM) ORACLE_HOME, so you must apply the Oracle Database release updates to the ORACLE_HOME to get security and Global Data Services fixes.
Most patches can be applied to a single shard at a time; however, some patches should be applied across all shards. Use Oracle’s best practices for applying patches to single shards just as you would a non-distributed database, keeping in mind the replication method that is being used with the distributed database.
Oracle opatchauto
can be used to apply patches to
multiple shards at a time, and can be done in a rolling manner. Data Guard
configurations are applied one after another, and in some cases (depending on the
patch) you can use Standby First patching.
If a patch addresses an issue with multi-shard queries, replication, or the sharding infrastructure, it should be applied to all of the shards in the distributed database.
Note:
Because logical standbys are not supported in Oracle Sharding, rolling upgrades may run into a DDL recovery issue because a physical standby database becomes a 'transient logical standby' during a rolling upgrade. To avoid this issue, follow the steps in Performing a Rolling Upgrade.See Also:
Oracle Data Guard Concepts and Administration for information about patching in an Oracle Data Guard configuration.
Upgrading Oracle Globally Distributed Database Components
The order in which Oracle Globally Distributed Database components are upgraded is important for limiting downtime and avoiding errors as components are brought down and back online.
Upgrading the Oracle Globally Distributed Database environment is not much different from upgrading other Oracle Database and global service manager environments; however, the components must be upgraded in a particular sequence such that the shard catalog is upgraded first, followed by the shard directors, and finally the shards.
Before upgrading any Oracle Globally Distributed Database components you must
-
Complete any pending
MOVE CHUNK
operations that are in progress. -
Do not start any new
MOVE CHUNK
operations. -
Do not add any new shards during the upgrade process.
See Also:
Oracle Database Global Data Services Concepts and Administration Guide for information about upgrading the shard directors.
Oracle Data Guard Concepts
and Administration for information about
using DBMS_ROLLING
to perform a rolling upgrade.
Oracle Data Guard Concepts and Administration for information about upgrading databases in an Oracle Data Guard configuration.
Performing a Rolling Upgrade
Because logical standbys are not supported by Oracle Globally Distributed Database, rolling upgrades may run into a DDL recovery issue because a physical standby database becomes a 'transient logical standby' during a rolling upgrade.
To avoid this issue, perform the following steps.
Note:
During a rolling upgrade, some operations such as automatic failover may not be available while the shard catalog is shut down.