Professional Documents
Culture Documents
Lab-10-Managing Target Database Records
Lab-10-Managing Target Database Records
Overview
In these practices, you will perform the following one-time setup tasks:
Register the ORCLCDB database in the recovery catalog.
Overview
In this practice, you use RMAN to register the ORCLCDB database in the recovery catalog that
you created in a previous practice.
Assumptions
You have completed Practice 9-1 and Practice 9-2. If you skipped any required practice(s),
complete the Catchup Step in a terminal window.
Timing Estimate
It should take approximately 5 minutes to complete this practice.
RMAN>
RMAN>
5. To verify that the registration was successful, execute the REPORT SCHEMA command. The
output should list all of the data files associated with the ORCLCDB database that have been
registered in the recovery catalog.
RMAN> REPORT SCHEMA;
RMAN>
6. Exit from RMAN and close the terminal window.
RMAN> exit
…
$
Overview
Your organization determined that if the recovery catalog is lost or damaged, it needs to be
restored quickly and completely.
In this practice, you configure the retention policy for the recovery catalog (retaining two
backups), configure the fast recovery area for RCATCDB, enable archive log mode, and back up
your RCATCDB database.
You back up the recovery catalog to implement a backup strategy of incremental backups
applied to image copies. This provides a method of fast restore by switching to the image copy
rather than copying the backups back to the original location.
Timing Estimate
It should take approximately 25 minutes to complete this practice.
Tasks
1. (Catchup Step) This practice requires Practice 9-1, Practice 9-2, and Practice 10-1.
Case 1: If you skipped all three practices, run the prep10-02.sh script and then
proceed to step 2.
$ /home/oracle/labs/admin/prep10-02.sh
...
$
Case 2: If you only skipped Practice 9-2 and Practice 10-1, run the prep10-02b.sh
script and then proceed to step 2.
$ /home/oracle/labs/admin/prep10-02b.sh
...
$
Case 3: If you only skipped Practice 10-1, run the prep10-02b.sh and then proceed
to step 2.
$ /home/oracle/labs/admin/prep10-02c.sh
$
RMAN>
c. Make sure that the retention policy for the recovery catalog is set to redundancy
greater than 1. If it is not, set it to at least 2.
RMAN> show retention policy;
RMAN>
d. Exit RMAN.
RMAN> exit
…
$
3. To configure the fast recovery area for RCATCDB, perform the following:
a. Ensure that the environment variables are set for the RCATCDB database.
$ . oraenv
ORACLE_SID = [rcatcdb] ? rcatcdb
The Oracle base remains unchanged with value /u01/app/oracle
System altered.
SQL>
SQL>
c. Put the database in ARCHIVELOG mode and then open the database.
SQL> ALTER DATABASE ARCHIVELOG;
Database altered.
Database altered.
RMAN>
b. Back up the recovery catalog database as an image copy and a base for incremental
backups. Review the output and find the data file for the tablespace that you created
for the recovery catalog.
RMAN> BACKUP AS COPY INCREMENTAL LEVEL 0 DATABASE;
RMAN>
c. Exit RMAN.
RMAN> exit
…
$
6. Close all terminal windows.