Migrate PDBs

Relocate pluggable databases (PDBs) from a source CDB to target CDB.

The pdb relocate command supports the following options:

Syntax

exacloudmigration pdb relocate [-ahV] -i <inputFile> [-w <walletFile] [-a|-l <pdbNames>] [--dry-run]

Table 3-36 exacloudmigration pdb relocate Commands

Command Description
-a, --all Relocates all pluggable databases (PDBs).
-i, --inputFile Specifies the PDB input file name with complete path.
-l, --pdbNames Specifies a comma-delimited list of PDBs to perform relocate operation.

Example:

  • To relocate a PDB: -l pdb1
  • To relocate multiple PDBs: -l pdb1,pdb2,pdb3
-w, --walletFile Specifies the wallet file name with the path.
--dry-run Performs dry run without relocating PDBs.
-h, --help Displays help information about the command and its options.
-V, --version Displays the version of the utility.

Examples:

  • To validate the PDBs input template file and perform a --dry-run:
    /home/opc>./exacloudmigration pdb relocate -a -i inputs/infra_<infra-text>/vmcluster_vmcluster1/DBNAME1_pdb_inputs -w ewallet.p12 --dry-run

    Specify the password for reading the wallet file.

  • To validate a comma-delimited list of PDBs of PDB input template file and perform a --dry-run:
    /home/opc>./exacloudmigration pdb relocate -i inputs/infra_<infra-text>/vmcluster_vmcluster1/DBNAME1_pdb_inputs -w ewallet.p12 -l PDB1,PDB2 --dry-run

    Specify the password for reading the wallet file.

  • To relocate all pluggable databases (PDBs) from a source CDB to target CDB, following successful validation and dry run:
    /home/opc>./exacloudmigration pdb relocate -a -i inputs/infra_<infra-text>/vmcluster_vmcluster1/DBNAME1_pdb_inputs -w ewallet.p12

    Specify the password for reading the wallet file.

  • To relocate comma-delimited list of pluggable databases (PDBs) from a source CDB to target CDB, following successful validation and dry run:
    /home/opc>./exacloudmigration pdb relocate -i inputs/infra_<infra-text>/vmcluster_vmcluster1/DBNAME1_pdb_inputs -w ewallet.p12 -l PDB1,PDB2

    Specify the password for reading the wallet file.

    Note:

    • If the database wallet file is not used, the command prompts for the SYS password for each database.
    • If the database wallet file is used, but a password entry for any database is missing, the utility stops execution and displays an error indicating that the password does not exist in the wallet.