Professional Documents
Culture Documents
Using Recovery Catalog
Using Recovery Catalog
Using Recovery Catalog
The recovery catalog contains the information of the RMAN backup pieces and
the target database. More specially, the recovery contains the following
information
Creating the recovery catalog consists of two major steps one is to create the
recovery catalog owner or schema in the database where you want to create the
recovery catalog and the second, once the recovery catalog schema is created you
to create the recovery catalog itself.
1. Using SQL*PLUS connect as user SYS to the database where you want to create
the recovery catalog schema.
Now you created the recovery catalog owner and the next section is to create the
recovery catalog itself
Once you have created the recovery catalog owner you must create recovery
catalog hence in order to create you must connect to recovery catalog but not to
target database .
You are now ready to use RMAN with the recovery catalog, which will store the
RMAN backup information and the target database information.
USING RECOVERY CATALOG
If you want to grant restricted recovery catalog access to some users then you
have to create virtual private catalog
2. Create the user who will own the virtual private catalog.
If user already exists in the database then the above two steps are unnecessary.
4. Connect to the recovery catalog database as the recovery catalog owner and
grant the restricted access to the new user virtual1.
USING RECOVERY CATALOG
5. Now connect as a new user as created above and create virtual private catalog.
You can confirm the user virtual1 can access only imcl database by using the
below command
If the database you want to unregister from the recovery catalog is not at all
available or deleted from the server then you can easily unregister it by simply
connect to the catalog and issuing unregister database <db_name>.
if you have two databases of same name on two different servers and both
registered in recovery catalog and if you want to unregister one database then
use the below command as shown
RMAN>run
{
set dbid 123456;
unregister database testdb;
}
7:- UPDATING THE RECOVERY CATALOG:-
The recovery catalog is sometimes unavailable when issuing certain RMAN
commands or sometimes RMAN updates to recovery catalog is made infrequent
due to certain conditions at that time you can sync recovery catalog by issuing
below command shown by bring the target database in mount state
USING RECOVERY CATALOG