Combined Oracle Grid Infrastructure and Oracle Database Patching
When you patch an Oracle Grid Infrastructure deployment, Fleet Patching and Provisioning enables you to simultaneously patch the Oracle Database homes on the cluster, so you can patch both types of software homes in a single maintenance operation.
Note:
You cannot patch both Oracle Grid Infrastructure and Oracle Database in combination, with the independent automaton.The following optional parameters of the rhpctl move gihome
command are relevant to the combined Oracle Grid Infrastructure and Oracle Database patching use case:
-
-auto
: Automatically patch databases along with patching Oracle Grid Infrastructure -
-dbhomes mapping_of_Oracle_homes
: Mapping of source and destination working copies in the following format:sourcewc1=destwc1,...,source_oracle_home_path=destwcN
-
-dblist db_name_list
: Patch only the specified databases -
-excludedblist db_name_list
: Patch all databases except the specified databases -
-nodatapatch
: Indicates thatdatapatch
is not be run for databases being moved
As an example, assume that a Fleet Patching and Provisioning Server with Oracle Grid Infrastructure 12c release 2 (12.2) has provisioned the following working copies on an Oracle Grid Infrastructure 12c release 1 (12.1.0.2) target cluster which includes the node test_749
:
-
GI121WC1
: The active Grid home on the Oracle Grid Infrastructure 12c release 1 (12.1.0.2) cluster -
GI121WC2
: A software-only Grid home on the Oracle Grid Infrastructure 12c release 1 (12.1.0.2) cluster -
DB121WC1
: An Oracle RAC 12c release 1 (12.1.0.2.0) database home running database instances -
DB121025WC1
: An Oracle RAC 12c release 1 (12.1.0.2.5) database home with no database instances (this is the patched home) -
DB112WC1
: An Oracle RAC 11g release 2 (11.2.0.4.0) database home running database instances -
DB112045WC1
: An Oracle RAC 11g release 2 (11.2.0.4.5) database home with no database instances (this is the patched home)
Further assume that you want to simultaneously move
-
Oracle Grid Infrastructure from working copy
GI121WC1
to working copyGI121WC2
-
Oracle RAC Database
db1
from working copyDB121WC1
to working copyDB121025WC1
-
Oracle RAC Database
db2
in working copyDB112WC1
to working copyDB112045WC1
The following single command accomplishes the moves:
$ rhpctl move gihome -sourcewc GI121WC1 -destwc GI121WC2 -auto
-dbhomes DB121WC1=DB121025WC1,DB112WC1=DB112045WC1 -targetnode test_749 {authentication_option}
Notes:
-
If you have an existing Oracle home that is not currently a working copy, then specify the Oracle home path instead of the working copy name for the source home. In the preceding example, if the Oracle home path for an existing 12.1.0.2 home is
/u01/app/prod/12.1.0.2/dbhome1
, then replaceDB121WC1=DB121025WC1
with/u01/app/prod/12.1.0.2/dbhome1=DB121025WC1
. -
If the move operation fails at some point before completing, then you can either resolve the cause of the failure and resume the operation by rerunning the command, or you can undo the partially completed operation by issuing the following command, which restores the configuration to its initial state:
$ rhpctl move gihome -destwc GI121WC2 -revert {authentication_option}
In the preceding command example, the Oracle Grid Infrastructure 12c release 1 (12.1.0.2) Grid home moves from working copy GI121WC1
to working copy GI121WC2
, databases running on working copy DB121WC1
move to working copy DB121025WC1
, and databases running on working copy DB112WC1
move to working copy DB112045WC1
.
For each node in the client cluster, RHPCTL:
-
Runs any configured pre-operation user actions for moving the Oracle Grid Infrastructure (
move gihome
). -
Runs any configured pre-operation user actions for moving the database working copies (
move database
). -
Stops services running on the node, and applies drain and disconnect options.
-
Performs the relevant patching operations for Oracle Clusterware and Oracle Database.
-
Runs any configured post-operation user actions for moving the database working copies (
move database
). -
Runs any configured post-operation user actions for moving the Oracle Grid Infrastructure working copy (
move gihome
).
Related Topics
Parent topic: Patching Oracle Grid Infrastructure