Connecting to the Protected Database and Recovery Appliance Using CLI

To perform protected database backup or recovery operations using a Recovery Appliance, you must connect to the protected database and to the Recovery Appliance catalog. The connection to the protected database is established as target using operating system authentication or password file authentication. The connection to the Recovery Appliance catalog must be established as catalog. If the protected database is a pluggable database (PDB), then you must connect to the root of the multitenant container database (CDB) as TARGET.

To connect to a protected database (non-CDB) and Recovery Appliance:

  1. Start RMAN.

    % rman
    
  2. Use the CONNECT command to connect to the protected database as TARGET and to the Recovery Appliance catalog as CATALOG.

    The following command connects to the protected database as the SYS user. ra_rman_user is the Recovery Appliance user that the protected database uses to authenticate with the Recovery Appliance. ra1 is the net service name of the target Recovery Appliance that is configured in the Oracle wallet. Enter the passwords for both users when prompted.

    RMAN> CONNECT TARGET sys as sysdba;
    RMAN> CONNECT CATALOG ra_rman_user@ra1;
    

To connect to a protected database (CDB) and Recovery Appliance:

  1. Start RMAN.
    % rman
    
  2. Use the CONNECT command to connect as TARGET to the root of the CDB and to the Recovery Appliance catalog as CATALOG.

    Note:

    Connecting to the Recovery Appliance as CATALOG when connected to a PDB as TARGET is not supported. When using the Recovery Appliance catalog, RMAN must connect as TARGET to the root of the CDB for backup and recovery operations.

    The following command, run from the CDB, connects to the root as the common user c##bkuser user. my_cdb is the net service name of the CDB. ra_rman_user is the Recovery Appliance user that the protected database uses to authenticate with the Recovery Appliance. ra1 is the net service name of the target Recovery Appliance. Enter the passwords for both users when prompted.

    RMAN> CONNECT TARGET c##bkuser@my_cdb;
    RMAN> CONNECT CATALOG ra_rman_user@ra1;
    

    See Also:

    Oracle Database Backup and Recovery User's Guide for additional examples on connecting as TARGET to the root of a CDB