gihome Commands
Use commands with the gihome
keyword to add or delete
nodes to Oracle Grid Infrastructure home and, move and upgrade Oracle Grid Infrastructure
home.
- rhpctl addnode gihome
Adds one or more nodes to an Oracle Grid Infrastructure installation. - rhpctl deletenode gihome
Removes one or more nodes from an Oracle Grid Infrastructure installation. - rhpctl move gihome
Moves the Oracle Grid Infrastructure software stack from one home to another. - rhpctl upgrade gihome
Upgrades the Oracle Grid Infrastructure from a source working copy or source home path to a destination working copy.
Parent topic: RHPCTL Command Reference
rhpctl addnode gihome
Syntax
rhpctl addnode gihome {-workingcopy workingcopy_name | -client cluster_name}
-newnodes node_name:node_vip[:node_role][,node_name:node_vip[:node_role]...]
{-root | -cred cred_name | -sudouser sudo_user_name
-sudopath sudo_binary_location |
-auth plugin_name [-arg1 name1:value1 [-arg2 name2:value2 ...]]}
[-targetnode node_name] [-force] [-setupssh] [-useractiondata user_action_data]
[-eval] [-schedule {timer_value | NOW}]
Parameters
Table A-24 rhpctl addnode gihome Command Parameters
Parameter | Description |
---|---|
-workingcopy workingcopy_name |
Specify the name of the working copy of the active Oracle Grid Infrastructure home that you want to install and configure on the specified node. |
-client cluster_name |
Alternatively, you can specify the name of the client cluster to which to add cluster nodes. |
-newnodes node_name:node_vip[:node_role] |
Specify a comma-delimited list of nodes on which Oracle Clusterware
will be provisioned in the following format: If the target is a Flex Cluster, then |
-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_location | -auth plugin_name plugin_args |
You must choose either Choose |
-targetnode node_name |
Optionally, you can specify the name of a node in a remote cluster that has no Fleet Patching and Provisioning Client. |
–force |
Optionally, you can use this parameter to forcibly add nodes ignoring any previously failed add-node operation. |
-setupssh |
Sets up passwordless SSH user equivalence on the remote nodes for the provisioning user. |
-useractiondata user_action_data |
Optionally, you can pass a value to the |
–eval |
Optionally, you can use this parameter to evaluate the impact of this command on the system without actually running the command. |
-schedule {timer_value | NOW} |
Optionally, you can schedule a time to run this command in ISO-8601 format. For example: 2018-01-21T19:13:17+05. If |
Usage Notes
-
You can specify the target for the operation using the working copy name or, if the target is a Fleet Patching and Provisioning Client, then using the client cluster name.
-
You must provide either
root
credentials, a credential name, asudo
user, or an authentication plugin. -
A target node is required if the target cluster is an Oracle Clusterware 11g release 2 (11.2) or 12c release 1 (12.1) cluster and must be the node name of an existing cluster node.
Parent topic: gihome Commands
rhpctl deletenode gihome
Syntax
rhpctl deletenode gihome {-workingcopy workingcopy_name | -client cluster_name}
-node node_list {-root | -sudouser sudo_username -sudopath sudo_binary_path
-cred cred_name | -auth plugin_name [-arg1 name1:value1...]}
[-targetnode node_name] [-useractiondata user_action_data]
[-eval] [-schedule {timer_value | NOW}]
Parameters
Table A-25 rhpctl deletenode gihome Command Parameters
Parameter | Description |
---|---|
-workingcopy workingcopy_name |
Specify the name of a working copy of the Oracle Grid Infrastructure home that you want to remove from the specified node. |
-client cluster_name |
Alternatively, you can specify the name of the client cluster from which to remove cluster nodes. |
–node node_list |
Specify a comma-delimited list of node names from which to delete Oracle Grid Infrastructure. |
-root | -sudouser sudo_username -sudopath sudo_binary_path | -cred cred_name | -auth plugin_name [-arg1 name1:value1...] |
You must choose either If you choose Optionally, you can choose to specify a credential name to associate the user and password credentials to access a remote node. Alternative to |
-targetnode node_name |
Name of a node in a remote cluster with no Fleet Patching and Provisioning Client. |
-useractiondata user_action_data |
Optionally, you can pass a value to the |
–eval |
Optionally, you can use this parameter to evaluate the impact of this command on the system without actually running the command. |
-schedule {timer_value | NOW} |
Optionally, you can schedule a time to run this command in ISO-8601 format. For example: 2018-01-21T19:13:17+05. If |
Usage Notes
-
You can specify the target for the operation using the working copy name or, if the target is a Fleet Patching and Provisioning Client, then using the client cluster name.
-
You must provide either
root
credentials or asudo
user. -
A target node is required if the target cluster is an Oracle Clusterware 11g release 2 (11.2) or 12c release 1 (12.1) cluster and must be the node name of an existing cluster node.
Parent topic: gihome Commands
rhpctl move gihome
Moves the Oracle Grid Infrastructure software stack from one home to another.
Syntax
rhpctl move gihome -destwc destination_workingcopy_name
{{-sourcewc source_workingcopy_name | -sourcehome oracle_home_path}
[-targetnode target_node_name] [-ignorewcpatches] [-nonrolling] [-keepplacement]
[-auto -dbhomes mapping_of_Oracle_homes] [-dblist db_name_list
| -excludedblist db_name_list] [-nodatapatch] [-disconnect]
[-stopoption stop_option] [-drain_timeout timeout]
[-dbsinparallel number_of_instances] [-raconetimeout timeout]]
[-batches list_of_batches [-chainbatches] | -smartmove [-saf availability]]
[-eval] [-schedule {timer_value | NOW | PAUSE}] [-jobtag tag_name] [-pausebetweenbatches]
[[-tgip [-nodriverupdate]]] [-ignoremissingpatches patch_name1[,patch_name2...]]
| -continue | -revert |-abort | -forcecomplete} [-root | -cred cred_name | -sudouser sudo_username -sudopath path_to_sudo_binary
| -auth plugin_name [-arg1 name1:value1 [-arg2 name2:value2 ...]]]
[-cleanpids] [-useractiondata user_action_data] [-image image_name] [-smtpfrom "address"]
[-smtpto "addresse1 addresse2 ..."] [-iso_repo iso_image] [-patchmgrloc patch_mgr_loc]
[-patchmgrargs patch_mgr_arguments] [-usepatchedhome] [-ignoredbstarterror] [-excludedbs] [-ignorecvuprecheck | -skipcvuprecheck]
[-ignorecvupostcheck | -skipcvupostcheck] [-obfuscate]
Parameters
Table A-26 rhpctl move gihome Command Parameters
Parameter | Description |
---|---|
-destwc destination_workingcopy_name |
Specify the name of the destination working copy to which you want to move Oracle Grid Infrastructure. |
-sourcewc working_copy_name |
If you want to move Oracle Grid Infrastructure from a working copy, then specify the name of the source working copy from which you want to move the Grid home. |
-sourcehome oracle_home_path |
If you are moving Oracle Grid Infrastructure from an unmanaged (not provisioned by Fleet Patching and Provisioning) Oracle home, then specify the path to the Oracle home from which you want to move Oracle Grid Infrastructure. |
-targetnode target_node_name |
Optionally, you can specify the name of an
|
-ignorewcpatches |
Use this parameter to ignore if the patched working copy is missing some patches which are present in the source path or working copy. |
-nonrolling |
Use this parameter to move the Oracle home in a non-rolling fashion. |
-keepplacement |
Specify this parameter to ensure that services of administrator-managed Oracle RAC or Oracle RAC One Node databases are running on the same instances before and after the move operation. |
-auto -dbhomes mapping_of_Oracle_homes |
Specify this parameter to automatically patch databases when you patch Oracle Grid Infrastructure. |
-dblist db_name_list |
Specify the unique names of the databases
( Note: If you are moving a non-clustered
(single-instance) database, then, for the value of the
|
-excludedblist db_name_list |
Alternative to using the |
-nodatapatch |
Optionally, you can use this parameter to indicate not to run
|
-disconnect |
Optionally, you can use this parameter to disconnect all sessions before stopping or relocating services. |
-stopoption stop_option |
Optionally, you can choose one of the following stop options for the database: ABORT, IMMEDIATE, NORMAL, TRANSACTIONAL, or TRANSACTIONAL_LOCAL. |
-drain_timeout session_drain_time |
Optionally, you can use this parameter to specify a service drain timeout, in seconds. |
-dbsinparallel number_of_instances |
Specifies the number of database instances that can be started in parallel on a given node. |
-raconetimeout timeout |
Specify the Oracle RAC One Node database relocation timeout in minutes. |
-batches list_of_batches |
Optionally, you can specify a comma-delimited list of
batches of nodes (where each batch is a comma-delimited list of node
names enclosed in parentheses) enclosed in double quotation marks
( |
-chainbatches |
Use this parameter to run the command on all batches without
pausing after each batch. When this parameter is used, you do not have to
use the |
-noparallel {YES | NO} |
Process the nodes in the input batch serially and exit after all nodes in the batch are patched. |
-smartmove [-saf availability] |
Alternatively, you can use the Optionally, you can use the |
-eval |
Use this parameter to evaluate the |
-schedule {timer_value | NOW | PAUSE} |
Optionally, you can use this parameter to schedule a time to
run this operation, in ISO-8601 format, as in the following
example:
If If Note: If the-schedule parameter is used with the
-batches parameter, then the command stops after the
first batch and you have to use the -continue parameter
to run the next batch. A new job ID is generated for every batch
operation.
|
-jobtag job_tag |
Use this parameter to associate a tag with the job. |
-pausebetweenbatches |
Use this parameter to pause between two batches, which you
can rerun using the |
-tgip [-nodriverupdate] |
Performs a transparent move of the Oracle Grid Infrastructure home. The optional |
-ignoremissingpatches patch_name1[,patch_name2...] |
Proceed with the move and/or upgrade although the specified patches, which are present in the source path or working copy, may be missing from the destination path or working copy. |
-continue |
Use this parameter to continue restarting the Oracle Clusterware stack on the next batch of nodes. |
-revert |
Use this parameter to revert back to before the move operation. |
-abort |
Use this parameter to stop an ongoing move operation. |
-forcecomplete |
Use this parameter to mark the move operation as complete after completing it manually. |
-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_location |
If you choose to use the Choose |
-auth plugin-name
[-arg1 name1:value1 [-arg2 name2:value2
...]] |
Use an authentication plugin to access the remote node. Optionally provide a list of arguments to the plugin. |
-cleanpids |
When using a persistent home path for both the source and
destination working copies, specify |
-useractiondata user_action_data |
Optionally, you can pass a value to the
|
-image
image_name |
Specifies the name of the image. For Oracle Exadata, this is the Exadata image name. |
-smtpfrom "address" |
Optionally, you can specify an email address enclosed in
double quotation marks ( |
-smtpto "addresse1
addresse2 ..." |
Optionally, you can specify several email address enclosed in
double quotation marks ( |
-iso_repo iso_image |
Specifies the image in the ISO repository. |
-patchmgrloc patch_mgr_loc |
Specifies the patch manager location. |
-patchmgrargs |
Specifies the patch manager arguments. |
-usepatchedhome |
Specify this parameter to use patched home to run Oracle Fleet Patching Provisioning Server and Client for Oracle Grid Infrastructure patching. |
-ignoredbstarterror |
Use this parameter to ignore the database startup errors during Oracle Grid Infrastructure patching. |
-excludedbs file_path |
Use this parameter to start all patched databases except for
the database names specified in the input file. This parameter accepts
path of a file that contains comma-separated list of database names,
which is |
-ignorecvuprecheck |
Ignore errors during CVU pre-requisites Oracle Grid Infrastructure upgrade check. |
-skipcvuprecheck |
Skip checks during CVU pre-requisites Oracle Grid Infrastructure upgrade check. |
-ignorecvupostcheck |
Ignore errors during post Oracle Grid Infrastructure upgrade CVU check. |
-skipcvupostcheck |
Skip checks during post Oracle Grid Infrastructure upgrade CVU check. |
-obfuscate |
Obfuscate patch storage contents. |
Usage Notes
If you choose to use the -schedule
parameter, then you must
run this command on the Fleet Patching and Provisioning Server.
Example
Assume there is an rhpclient
-less target running Oracle
Grid Infrastructure 12c release 1 (12.1.0.2) from a working copy named
grid12102wcpy
, and one of the nodes in the cluster is named
bposvr141
. After provisioning the patched working copy, called
grid12102PSU
(using the -softwareonly
parameter
with the rhpctl add workingcopy
command), move the Grid home to the
patched working copy, as follows:
$ rhpctl move gihome -sourcewc grid12102wcpy -destwc grid12102PSU -root -targetnode bposvr141
Parent topic: gihome Commands
rhpctl upgrade gihome
Upgrades the Oracle Grid Infrastructure from a source working copy or source home path to a destination working copy.
Syntax
rhpctl upgrade gihome {-sourcewc source_workingcopy_name |
-sourcehome oracle_home_path -targetnode target_node_name}
-destwc destination_workingcopy_name
[-revert {-root | -sudouser sudo_user_name -sudopath sudo_binary_location]
-cred cred_name |
-auth plugin_name [-arg1 name1:value1...] [-arg2 name2:value2 …]]}
[-ignoreprereq] [-useractiondata user_action_data]
[-eval] [-batches list_of_batches] [-abort | -continue]
[-schedule {timer_value | NOW}]
[-ignoremissingpatches patch_name1[,patch_name2...]]
[-gimrwc gimr_wc_name]
[-ignorecvucheck]
Parameters
Table A-27 rhpctl upgrade gihome Command Parameters
Parameter | Description |
---|---|
-sourcewc source_workingcopy_name |
Specify the name of the source working copy from which the Oracle Grid Infrastructure home needs to be upgraded. |
-sourcehome oracle_home_path |
Alternative to specifying the name of the source working copy, you can specify the path to the unmanaged Oracle Grid Infrastructure home. |
-targetnode target_node_name |
In addition to specifying the source Oracle Grid Infrastructure home, you must also specify a node that is in a remote cluster that has no Oracle Fleet Patching and Provisioning Client. |
-destwc destination_workingcopy_name |
Specify the name of the destination working copy to which the Oracle Grid Infrastructure home is to be upgraded. |
-revert |
Specify this option to downgrade after a failed upgrade of Oracle Grid Infrastructure. |
-root | -sudouser sudo_username -sudopath sudo_binary_path | -cred cred_name |
If you choose to use the If you choose Optionally, you can choose to specify a credential name to associate the user and password credentials to access a remote node. Alternative to |
-auth plugin-name [-arg1 name1:value1 [-arg2 name2:value2 ...]] |
Use an authentication plugin to access the remote node. Optionally provide a list of arguments to the plugin. |
-ignoreprereq |
Use this parameter to ignore the CVU prerequisite checks. |
-schedule {timer_value | NOW} |
Optionally, you can schedule a time to run this command in ISO-8601 format. For example: 2018-01-21T19:13:17+05. If |
-useractiondata user_action_data |
Value to be passed to |
-eval |
Evaluate without running the command. |
-batches list_of_batches |
List of batches of nodes in the format: |
-abort | -continue |
Abort the ongoing move operation or continue the aborted move operation and continue restarting the CRS stack on the next batch of nodes. |
-ignoremissingpatches patch_name1[,patch_name2...] |
Proceed with the move and/or upgrade although the specified patches, which are present in the source path or working copy, may be missing from the destination path or working copy. |
-gimrwc gimr_wc_name |
Name of the destination working copy to which the Grid Infrastructure Management Repository database needs to be upgraded. |
-ignorecvucheck |
Ignore errors during post Oracle Grid Infrastructure upgrade CVU check . |
Note:
For self upgrade of FPPS to 21c, you must use therhpctl.sh
script from the Oracle Grid Infrastructure 21c home.
You should also specify the -gimrwc
parameter.
Parent topic: gihome Commands