Home | Downloads | Contact Us
HyperBac for Oracle

Go to previous page Go to beginning of chapter Go to next page

RMAN Commands , 19 of 59


CREATE CATALOG

Syntax

Text description of createCatalog.gif follows
Text description of the illustration createCatalog.gif


Purpose

To create a schema for the recovery catalog. Typically, you create this schema in a separate recovery catalog database. The catalog is created in the default tablespace of the recovery catalog owner.


Note:

In releases prior to 8.1.5, you created the recovery catalog schema by connecting to the recovery catalog database and executing the catrman.sql script.


See Also:

Oracle9i Recovery Manager User's Guide to learn how to create the recovery catalog

Restrictions and Usage Notes

Keywords and Parameters

Syntax Element Description

TABLESPACE 'tablespace_name'

Specifies the tablespace in which to store the recovery catalog schema. The catalog owner must be granted quota privileges. If you do not specify a tablespace, then RMAN stores the recovery catalog in the default tablespace of the recovery catalog owner.

Example

Creating a Catalog Schema: Example

The following UNIX shell script creates a user rman, grants rman the RECOVERY_CATALOG_OWNER role, then creates the recovery catalog in the schema rman.cattbs of the database rcat:

#!/usr/bin/tcsh
# create user rman in recovery catalog database as catalog owner
sqlplus 'SYS/change_on_install@rcat AS SYSDBA' <<EOF
CREATE USER rman IDENTIFIED BY rman 
  DEFAULT TABLESPACE cattbs 
  QUOTA UNLIMITED ON cattbs;
GRANT recovery_catalog_owner TO rman;
EXIT
EOF
# connect to database as catalog owner and create catalog
rman CATALOG rman/rman@rcat <<EOF
CREATE CATALOG;
EOF

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996, 2002 Oracle Corporation.

All Rights Reserved.