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:
-
Start RMAN.
% rman -
Use the
CONNECTcommand to connect to the protected database asTARGETand to the Recovery Appliance catalog asCATALOG.The following command connects to the protected database as the
SYSuser.ra_rman_useris the Recovery Appliance user that the protected database uses to authenticate with the Recovery Appliance. ra1is 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:
-
Start RMAN.
% rman -
Use the
CONNECTcommand to connect asTARGETto the root of the CDB and to the Recovery Appliance catalog asCATALOG.Note: Connecting to the Recovery Appliance as
CATALOGwhen connected to a PDB asTARGETis not supported. When using the Recovery Appliance catalog, RMAN must connect asTARGETto 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##bkuseruser.my_cdbis the net service name of the CDB.ra_rman_useris the Recovery Appliance user that the protected database uses to authenticate with the Recovery Appliance. ra1is 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.