workingcopy Commands
Use commands with the workingcopy
keyword to create,
update, extend, and delete working copies.
- rhpctl add workingcopy
Creates a working copy on a client cluster. - rhpctl addnode workingcopy
Extends an Oracle RAC database to another node or nodes in a cluster. - rhpctl delete workingcopy
Deletes an existing working copy. - rhpctl query workingcopy
Displays the configuration information of an existing working copy.
Parent topic: RHPCTL Command Reference
rhpctl add workingcopy
Creates a working copy on a client cluster.
Syntax
To add a working copy to a client cluster:
rhpctl add workingcopy -workingcopy workingcopy_name
{-image image_name | -series series_name}
[-oraclebase oraclebase_path] [-path where_path]
[-storagetype {LOCAL | RHP_MANAGED}] [-user user_name]
[-client cluster_name] [-ignoreprereq | -fixup]
[-responsefile response_file_path] [-clusternodes node_list]
[-groups group_list] [-root | -cred cred_name | -sudouser sudo_username
-sudopath path_to_sudo_binary | -auth plugin_name [-arg1 name1:value1
[-arg2 name2:value2 ...]]]
[-notify [-cc users_list]] [-asmclientdata data_path]
[-gnsclientdata data_path] [-clustermanifest data_path] [-softwareonly]
[-local] [-inventory inventory_path] [-targetnode target_node_name]
[-agpath read_write_path -aupath gold_image_path] [-setupssh]
[-useractiondata user_action_data] [-eval] [-schedule timer_value]
[-checkwcpatches -sourcehome source_home_path] [-scan scan_name]
[-diskDiscoveryString disk_discovery_string] [-fromnode node_name]
[-unkey] [-smtpfrom "address"] [-smtpto "addresses"] [-precheckonly]
[-modifyatprereq] [-resetforce] [-force] [-help options]
Parameters
Table A-61 rhpctl add workingcopy Command Parameters
Parameter | Description |
---|---|
-workingcopy workingcopy_name |
Specify a name for the working copy that you want to create. |
{-image image_name | -series series_name} |
Specify the name of a configured image from which to create a working copy or the name of an image series from which RHPCTL takes the latest image when adding a working copy. |
-oraclebase oracle_base_path |
Specify an Note: This parameter is required only for the |
-inventory inventory_path |
Specify the location of the Oracle Inventory directory. |
-path absolute_path |
Specify the absolute path for provisioning the software home on the client side (this location must be empty). For Oracle Database images, this becomes the Note: This parameter is required for |
-storagetype {LOCAL | RHP_MANAGED} |
Specify the type of storage for the software home. |
-user user_name |
Specify the name of the user that will own the working copy being provisioned. If you do not specify this parameter, then the working copy is owned by the user running the command. If you are provisioning to a remote cluster, then the user name must be a valid user on the remote cluster. The user ID need not be the same between the two clusters, but the user name must exist on both. Note: You cannot use |
-client cluster_name |
Specify the name of the client cluster. |
-ignoreprereq | -fixup |
You can choose to ignore the Clusterware Verification Utility (CVU) checks or you can choose to run the recommended fixup script. Note: These parameters are valid only when you are provisioning Oracle Grid Infrastructure. |
-responsefile response_file_path |
Specify a response file to use when you provision Oracle Grid Infrastructure. |
-clusternodes node_name:node_vip[:node_role][,node_name:node_vip[:node_role]...] |
Specify a comma-delimited list of cluster node information on which to provision Oracle Clusterware. |
-groups "OSDBA|OSOPER|OSASM|OSBACKUP|OSDG|OSKM|OSRAC=group_name[,...]" |
Specify a comma-delimited list of Oracle groups, enclosed in double quotation marks ( For example:
When you create a gold image from a source home or working copy, the gold image inherits the groups configured in the source. When you create a working copy from that gold image using If you use the
Notes:
|
-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_location | -auth plugin_name plugin_args |
If you choose to use the Choose |
-notify [-cc user_list] |
Specify this parameter to have email notifications sent to the owner of the working copy. Optionally, you can include a list of additional users who will receive notifications. |
-asmclientdata data_path |
Specify the path to a file that contains Oracle ASM client data. |
-gnsclientdata data_path |
Specify the path to a file that contains the Grid Naming Service (GNS) data. |
-clustermanifest data_path |
Optionally, you can specify the location of cluster manifest file. You can use this parameter when the Fleet Patching and Provisioning Server is on a domain services cluster and you are creating a member cluster. |
-local |
Use this parameter to provision only Oracle Grid Infrastructure software on the local node. Note: You can only use this parameter in conjunction with the |
-softwareonly |
Use this parameter to provision only Oracle Grid Infrastructure software. |
-targetnode target_node_name |
Specify the name of a node in a remote cluster with no Fleet Patching and Provisioning Client on which you want to provision a working copy. |
-agpath read_write_path -aupath gold_image_path |
Use |
-setupssh |
Use this parameter to set 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 |
Optionally, you can use this parameter to schedule a time to run this operation, in ISO-8601 format, as in the following example:
|
-checkwcpatches -sourcehome source_home_path |
Optionally, you can use the |
-scan scan_name |
Optionally, you can use this parameter to specify a SCAN name. |
-diskDiscoveryString disk_discovery_string |
Optionally, you can use this parameter to specify a disk discovery string. |
-fromnode node_name |
Optionally, you can specify a database server node name from where the patch manager is to be run. |
–unkey |
Optionally, you can use this parameter to remove passwordless SSH access to the Oracle Exadata patch nodes from the database server node from where the patch manager is run before exit. |
-smtpfrom "address" |
Optionally, you can specify an email address enclosed in double quotation marks ( |
-smtpto "addresses" |
Optionally, you can specify several email address enclosed in double quotation marks ( |
-precheckonly |
Optionally, you can use this parameter to run only the patching precheck operations. |
-modifyatprereq |
Optionally, you can use this parameter to run the |
-resetforce |
Optionally, you can use this parameter to run the |
-force |
Optionally, you can use this parameter to run the |
Usage Notes
-
You can obtain context sensitive help for specific use cases for the
rhpctl add workingcopy
command, as follows:$ rhpctl add workingcopy -help [REMOTEPROVISIONING | STORAGETYPE | ADMINDB | GRIDHOMEPROV | SWONLYGRIDHOMEPROV | STANDALONEPROVISIONING | GGHOMEPROVISIONING]
-
If you choose to use the
-schedule
parameter, then you must run this command on the Fleet Patching and Provisioning Server.
Examples
-
To create a working copy on a client cluster for yourself or another user:
rhpctl add workingcopy -workingcopy workingcopy_name {-image image_name | -series series_name} -oraclebase oracle_base_path -client cluster_name [-user user_name]
-
To create a working copy on storage that you specify:
rhpctl add workingcopy -workingcopy workingcopy_name {-image image_name | -series series_name} -oraclebase oracle_base_path -storagetype {LOCAL | RHP_MANAGED} [-path absolute_path]
-
To create and configure a working copy of Oracle Grid Infrastructure:
rhpctl add workingcopy -workingcopy workingcopy_name {-image image_name | -series series_name} {-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_path} -responsefile response_file_path [-clusternodes node_information] [-user user_name] [-oraclebase oracle_base_path] [-path absolute_path] [-asmclientdata data_path] [-gnsclientdata data_path] [-ignoreprereq | -fixup]
-
To provision a software-only working copy of Oracle Grid Infrastructure:
rhpctl add workingcopy -workingcopy workingcopy_name {-image image_name | -series series_name} -softwareonly -path Grid_home_path -oraclebase oracle_base_path [-local | -client cluster_name [-groups "Oracle_group=user_group[,...]"] [-node client_node_name] | {-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_path} -targetnode node_name]
-
To provision a working copy on a node or a cluster where Fleet Patching and Provisioning does not exist:
rhpctl add workingcopy -workingcopy workingcopy_name {-image image_name | -series series_name} -oraclebase oracle_base_path -user user_name -node node_name [-path absolute_path] {-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_path}
Note:
If you are provisioning Oracle database software to a Fleet Patching and Provisioning Client that has been configured with an Oracle ASM disk group, then do not specify the -path
parameter, so as to enable the Fleet Patching and Provisioning Client to use storage provided by Fleet Patching and Provisioning.
If the Fleet Patching and Provisioning Client is not configured with an Oracle ASM disk group, then specify the -storagetype
parameter with LOCAL
, in addition to specifying the -path
parameter.
Parent topic: workingcopy Commands
rhpctl addnode workingcopy
Syntax
rhpctl addnode workingcopy -workingcopy workingcopy_name -node node_list
[-targetnode node_name {-root | -sudouser sudo_username -sudopath sudo_binary_path
| -cred cred_name | -auth plugin_name [-arg1 name1:value1...]} -setupssh]
[-ignoreprereq] [-useractiondata user_action_data] [-eval]
Parameters
Table A-62 rhpctl addnode workingcopy Command Parameters
Parameter | Description |
---|---|
-workingcopy workingcopy_name |
Specify the name of a working copy that contains the Oracle database you want to extend. |
-node node_list |
Specify a node or a comma-delimited list of nodes to which you want to extend the database. |
-targetnode node_name |
Optionally, you can specify a node on which to run this command. |
-root | -sudouser sudo_username -sudopath sudo_binary_path | -cred cred_name | -auth plugin_name [-arg1 name1:value1...] |
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 |
-ignoreprereq |
Use this parameter to ignore the CVU prerequisite checks. |
-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. |
Usage Notes
-
If you are extending a policy-managed database, then the database automatically starts on the new nodes.
-
If you are extending an administrator-managed database, then you must also run the
rhpctl addnode database
command to start the instance. -
If the target cluster is an Oracle Clusterware 11g release 2 (11.2) or 12c release 1 (12.1) cluster, then you must provide either root credentials or provide a sudo user. You must also specify a target node that must be the node name of one of the cluster nodes.
Parent topic: workingcopy Commands
rhpctl delete workingcopy
Deletes an existing working copy.
Syntax
rhpctl delete workingcopy -workingcopy workingcopy_name [-notify [-cc user_list]] [-force]
[[-targetnode node_name] {-root | -sudouser sudo_user_name -sudopath
sudo_binary_path -cred cred_name | -auth plugin_name [-arg1 name1:value1...]}
[-useractiondata user_action_data] [-schedule timer_value]
Parameters
Table A-63 rhpctl delete workingcopy Command Parameters
Parameter | Description |
---|---|
-workingcopy workingcopy_name |
Specify the name of a working copy that you want to delete. |
-notify [-cc user_list] |
Name of a node in a remote cluster with no Fleet Patching and Provisioning Client. |
-targetnode node_name |
Optionally, you can specify a particular node from which you want to delete a working copy. |
-force |
Use this parameter to forcibly delete the database working copy. |
-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 |
-useractiondata user_action_data |
Optionally, you can pass a value to the |
-schedule timer_value |
Optionally, you can use this parameter to schedule a time to run this operation, in ISO-8601 format, as in the following example:
|
Usage Notes
-
This command will not delete the working copy if there are any databases configured on it. Use the
-force
option to override this. -
This command will not not delete the working copy if there are any running databases on it. The
-force
option will not override this. -
This command does not delete the Oracle base that was created when you ran
rhpctl add workingcopy
. -
If you choose to use the
-schedule
parameter, then you must run this command on the Fleet Patching and Provisioning Server.
Examples
To delete a working copy:
$ rhpctl delete workingcopy -workingcopy wc1
Parent topic: workingcopy Commands
rhpctl query workingcopy
Displays the configuration information of an existing working copy.
Syntax
rhpctl query workingcopy [-workingcopy workingcopy_name [-metadataonly] | [-image image_name ] [-client cluster_name] [-drift] ]
Parameters
Table A-64 rhpctl query workingcopy Command Parameters
Parameter | Description |
---|---|
|
Specify the name of a working copy for which you want to display the configuration information. |
|
Use this paramter only when you use the |
|
Alternatively, you can specify the name of a configured image you want to query. Note: If you specify an image name, then RHPCTL lists all the working copies based on that image. |
-client cluster_name |
Optionally, you can specify a client cluster on which to query working copies. |
-drift |
List the the bug fixes not included in the golden image. |
Parent topic: workingcopy Commands