Patching and Upgrading Oracle Globally Distributed Database
There are special considerations for patching and upgrading a distributed database deployment.
Patching and Upgrading 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.
Patching a Distributed Database
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.Upgrading a Distributed Database
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.
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 patching and upgrading in an Oracle Data Guard configuration.
Performing a Rolling Upgrade
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, 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.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.
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 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 patching and upgrading databases in an Oracle Data Guard configuration.
Post-Upgrade Steps for Oracle Globally Distributed Database 21c
If you have a fully operational Oracle Globally Distributed Database environment in a release earlier than 21c, no wallets exist, and no deployment will be done by Oracle Globally Distributed Database after an upgrade to 21c to create them. You must perform manual steps to create the wallets.
Note:
The steps must be followed in EXACTLY this order.Compatibility and Migration from Oracle Database 18c
When upgrading from an Oracle Database 18c installation which contains a single PDB shard for a given CDB, you must update the shard catalog metadata for any PDB.
Specifically, in 18c, the name of a PDB shard is the DB_UNIQUE_NAME
of its CDB; however, in later Oracle
Database releases, the shard names are db_unique_name_of_CDB_pdb_name.
To update the catalog metadata to reflect this new naming methodology,
and to also support the new GSMROOTUSER
account as described in
About the GSMROOTUSER Account, perform the following steps during the upgrade process as
described in Upgrading Oracle Globally Distributed Database Components.