creating catalog database and registering databases to catalog

Create catalog database and configure the network in between the catalog and database you wish to register in the database



1. Here i have already created the database
    Name:CATALOG

ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
ORACLE_BASE:/u04/app/oracle/oradata/
FRA: /u04/app/oracle/fast_recovery_area/


SQL> select name from v$database;

NAME
---------
CATALOG



2. Create a tablespace for the RMAN user:

SQL> create tablespace cattb datafile '/u04/app/oracle/oradata/CATALOG/datafile/cattb01.dbf' size 1G;

Tablespace created.



3. Create an USER with default tablespace CATTB with unlimited quota on that tablespace:

SQL> create user rman identified by oracle temporary tablespace temp default tablespace cattb quota unlimited on cattb;

User created.



4. Grant the RECOVERY_CATALOG_OWNER role to the schema owner. This role provides the user with all privileges required to maintain and query the recovery catalog.

SQL> grant recovery_catalog_owner to rman;

Grant succeeded.



5. Connect to catalog database from target database from RMAN prompt

[oracle@localhost oracle]$ rman target / catalog rman/oracle@to_catalog

Recovery Manager: Release 12.1.0.2.0 - Production on Mon Oct 16 21:15:32 2017

Copyright (c) 1982, 2014, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL (DBID=1479262473)
connected to recovery catalog database



6. Create catalog database if  not yet created

RMAN> create catalog;

recovery catalog created



7. Register the database to catalog

RMAN> register database;

database registered in recovery catalog
starting full resync of recovery catalog
full resync complete


##Now all  the details of the backups of the registered database are stored in views created under the RMAN user in the catalog database##

Comments

Popular posts from this blog

Oracle Database Client(12.1.0.2.0) Installation for Microsoft Windows(x64)

configuring goldengate

sample extract,pump and replicate(goldengate)