RMAN - Setup of the Recovery Catalog:
Setting up the recovery catalog RMAN is the first task the DBA
completes when preparing to use RMAN. Lets look at the basic steps required to
set up the recovery catalog.
Creating The Recovery Catalog
Creating the recovery catalog is not a terribly complicated process. It
requires the DBA to set up a user in the database that will be used to store
the recover catalog schema objects. Then the DBA needs to grant certain user
rights to that userid, and then run a script to create the recovery catalog.
The example below shows the creation of a user/schema in a database that will
store the recovery catalog:
CREATE USER MYRMAN IDENTIFIED BY
MYRMAN
DEFAULT TABLESPACE
myrman_catalog_tbs
TEMPORARY TABLESPACE temp
QUOTA UNLIMITED ON
myrman_catalog_tbs;
Once the user has been created, follow these steps to complete the
setup of the schema and to create the recovery catalog in that schema:
GRANT the userid (in this example, myrman) the role
RECOVERY_CATALOG_OWNER with the following:
GRANT CONNECT TO myrman;
GRANT RECOVERY_CATALOG_OWNER TO
myrman;
The first grant allows you to connect to the recovery catalog schema,
create tables and the like. The second grant gives the user account the
privileges that it needs to manage the recovery catalog.
Once you have created the schema for the recovery catalog, sign into
that user account. You must execute the SQL script catrman.sql from the account
you just created to install the recovery catalog:
@?/rdbms/admin/catrman.sql
This script is generally in the ORACLE_HOME/rdbms/admin directory on
Unix or in the ORACLE_HOME\rdbms80\admin directory on NT.
RMAN
Basics
The RMAN executable allows you to manage the recovery catalog, start
backups and recoveries, and generate reports on backups. Generally, you will
start RMAN from the command line, passing it parameters as required. An example
call to RMAN might look like this:
- rman target=system/manager@test1
- rcvcat=myrman/myrman@backupdb
Option Description
APPEND This causes
RMAN to append to the output file specified by MSGLOG.
CMDFILE This causes
RMAN to get input from the filename given as the argument to this parameter. If
it is not specified, the default is STDIN.
DEBUG This turns on the debug mode for
RMAN.
MSGLOG This specifies
the name of a file to which RMAN will send all messages. The default is STDOUT.
NOCATALOG This option is
required if you do not have a recovery catalog. Using this parameter allows you
to do backups and recoveries without the recovery catalog.
RCVCAT This is the
connect string to the recovery catalog username and database.
TARGET This is the
target database connect string. If you wish to do the equivalent of connect sys
as sysdba, just type "target /" (without the quotation marks).
Comments
Post a Comment