Академический Документы
Профессиональный Документы
Культура Документы
3-1
Objectives
After completing this lesson, you should be able to: Contrast the usage of a recovery catalog with that of the control file for the RMAN repository Create and configure a recovery catalog Register a database in the recovery catalog Synchronize the recovery catalog Use RMAN stored scripts Back up the recovery catalog Create a virtual private catalog
3-2
3-3
Database structure Archived redo logs Backup sets Data file copies
3-4
3-5
3-6
Create a tablespace for the recovery catalog, which becomes the default tablespace for the recovery catalog owner.
SQL> CREATE TABLESPACE rcat_ts DATAFILE SIZE 15M;
3-7
SQL> 2 3 4 SQL>
CREATE USER rcowner IDENTIFIED BY rcpass TEMPORARY TABLESPACE temp DEFAULT TABLESPACE rcat_ts QUOTA UNLIMITED ON rcat_ts; GRANT recovery_catalog_owner TO rcowner;
3-8
3-9
3 - 10
3 - 11
3 - 12
3 - 13
3 - 14
This is because the database ID (DBID) of the duplicated database is the same as the original databases DBID:
SQL> select dbid from v$database; DBID ---------1157170067
3 - 15
Considerations: Previous backups and archive logs are unusable. Database must be opened with the RESETLOGS option.
3 - 17
3 - 18
Recovery catalog
3 - 21
3 - 22
3 - 23
3 - 24
3 - 25
Deleting a script:
DELETE SCRIPT script_name;
3 - 26
Recovery catalog
3 - 27
3 - 28
3 - 29
3 - 30
3 - 31
Owner of 1
Owner of 2
3 - 32
3 - 34
Summary
In this lesson, you should have learned how to: Contrast the usage of a recovery catalog with that of the control file for the RMAN repository Create and configure a recovery catalog Register a database in the recovery catalog Synchronize the recovery catalog Use RMAN stored scripts Back up the recovery catalog Create a virtual private catalog
3 - 36
3 - 37