Recovering Protected Databases Using Local Backups
When you create protected database backups to a local disk location, you can use regular RMAN commands to perform recovery. You need to configure one of the following before you restore and recover the protected database:
-
disk channels that corresponds to the disk location where the backups are stored
-
SBT channels that correspond to backups on legacy media management environments where the backups are stored
To perform complete recovery of a protected database using local disk backups:
-
Connect RMAN to the protected database as
TARGETand connect to the RMAN recovery catalog asCATALOG.The following command connects as
TARGETto the protected database with net service namehr_ptdband asCATALOGto an RMAN recovery catalog database with net service namerco.hradmis a user withSYSBACKUPprivileges on the protected database andrcois the RMAN recovery catalog owner. Enter the passwords for thehradmandrcousers when prompted.% rman TARGET hradm@hr_ptdb CATALOG rco@catdb -
Allocate an RMAN channel of device type DISK to use backups stored on local disk storage.
The following command allocates a disk channel that creates backups to the local disk storage.
RMAN> ALLOCATE CHANNEL d1 DEVICE TYPE DISK; -
Restore and recover the protected database using the
RESTOREandRECOVERcommands respectively.The following example performs complete recovery of the protected database:
RUN { STARTUP MOUNT; ALLOCATE CHANNEL c1 DEVICE TYPE DISK; RESTORE DATABASE; RECOVER DATABASE; ALTER DATABASE OPEN; }