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
CONNECT
command to connect to the protected database asTARGET
and to the Recovery Appliance catalog asCATALOG
.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: