rhpctl move database

Use the rhpctl move database command to move one or more databases from a source working copy or any Oracle home to a patched working copy. The patched working copy need not exist and can be created dynamically, in which case you must specify an image name from which to create the patched working copy.

Syntax

rhpctl move database {-sourcewc workingcopy_name | -sourcehome Oracle_home_path
   [-oraclebase Oracle_base_path] [-client cluster_name]} -patchedwc workingcopy_name
   [-dbname unique_db_name] [-nonrolling] [-image image_name] [-path where_path]

Parameters

Table F-17 rhpctl move database Parameters

Parameter Description
-sourcewc workingcopy_name

Specify the name of the working copy from which the database is to be moved.

-sourcehome Oracle_home_path

Specify the source Oracle home path.

-oraclebase Oracle_base_path

Specify the ORACLE_BASE path for provisioning the Oracle database home (required only for ORACLEDBSOFTWARE image type).

-client cluster_name

Specify the name of the client cluster.

-patchedwc workingcopy_name

Specify the name of the working copy to where you want to move the database.

-dbname unique_db_name

Specify the unique name of the database (DB_UNIQUE_NAME) that you want to provision.

-nonrolling

Specify this parameter to move the database in a non-rolling mode. By default, databases move in a rolling mode.

-image image_name

Optionally, you can specify the name of the database software image you want to move.

-path where_path

Optionally, you can specify the directory path to where you want to move the database.

Example

To move all the databases running from one working copy to another in a rolling fashion:

rhpctl move database -sourcewc prodHomeV1 -patchedwc prodHomeV2 -client prodcluster -dbname prod1db

In the preceding example, the patched working copy, prodHomeV2, must exist.