Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • AWR settings- MMON is not taking snapshot. Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • Read CSV File using Python Python/PySpark
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • ORA-3136 Oracle
  • RAC with RHEL4 and 11g Oracle
  • dbms_job.submit example Oracle
  • Unix command for system configuration Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Mutating Table Error while using database trigger Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • Sequence Resetting Oracle

Rman Notes -1

Posted on 12-May-2008 By Admin No Comments on Rman Notes -1

##############

RMAN CATALOG

##############

The recovery catalog contains information about RMAN operations, including:

+ Datafile and archived redo log backup sets and backup pieces

+ Datafile copies

+ Archived redo logs and their copies

+ Tablespaces and datafiles on the target database

+ Stored scripts, which are named user-created sequences of RMAN commands

+ Persistent RMAN configuration settings

Creating recovery catalog is a 3 step process .The recovery catalog is stored in the default tablespace of the

recovery catalog schema. SYS cannot be the owner of the recovery catalog.

1. Creating the Recovery Catalog Owner

======================================

% sqlplus ‘/ as sysdba’

SQL> CREATE USER rman IDENTIFIED BY rman

DEFAULT TABLESPACE tools

TEMPORARY TABLESPACE temp

QUOTA UNLIMITED ON tools;

SQL> GRANT CONNECT, RECOVERY_CATALOG_OWNER TO rman;

2. Creating the Recovery Catalog

================================

Before creating the recovery catalog make sure to have the tnsnames.ora entry for the catalog database in

the target server and the listener must be up and running in the catalog database server.You must be able

to connect to the catalog database from sqlplus from the target server.

% rman catalog rman/rman @ catadb

RMAN> CREATE CATALOG;

3. Registering the target database

==================================

After making sure the recovery catalog database is open, connect RMAN to the target database and recovery

catalog database and register the database . Make sure that your target database is either open or in Mount

stage.

% rman TARGET / CATALOG rman/rman @ catdb

RMAN> REGISTER DATABASE;

RMAN creates rows in the catalog tables to contain information about the catalog database. Copy all the

pertinent data from the controlfile into the catalog, synchronizing the catalog with the control file. You can

register multiple target databases in a single recovery catalog, if they do not have duplicate DBIDs. RMAN

uses the DBID to distinguish one database from another.

How to Upgrade recovery catalog Schema ?

========================================

When you upgrade target database to the latest version you need to upgrade the RMAN catalog

schema.Connect to RMAN from the target database so that you can use, the target database’s RMAN

executable. Look at the example :

% rman target / catalog rman/rman @ catdb

RMAN> UPGRADE CATALOG;

RMAN-06435: recovery catalog owner is rman

RMAN-06442: enter UPGRADE CATALOG command again to confirm catalog upgrade

RMAN> UPGRADE CATALOG;

Issuing ‘upgrade catalog’ will only upgrade the catalog schema to be compatible with the higher release of

RMAN; it will not upgrade the catalog database in any way. You have to connect to recovery catalog

database catdb and run “upgrade catalog” twice.

How to remove catalog ?

=======================

The “drop catalog;” command to remove an RMAN catalog. These commands need to be entered twice to

confirm the operation. Look at the example

RMAN> DROP CATALOG;

How to unregister the target database from the recovery catalog ?

=================================================================

In 10g:

RMAN> UNREGISTER DATABASE ;

Prior 10g;

% sqlplus rman/rman @catdb

SQL > select name, db_key, dbid from rc_database;

SQL > DBMS_RCVCAT.UNREGISTERDATABASE(db_key, db_id);

How to identify recovery catalog schema version ?

=================================================

% sqlplus rman/rman @catdb

SQL > SELECT * FROM rcver;

VERSION

———

11.01.00

If the table displays multiple rows, then the highest version in the RCVER table is the current catalog schema

version. The table stores only the major version numbers and not the patch numbers

Oracle, rman-dataguard

Post navigation

Previous Post: find_log_switch.sql Find log switches in graphical manner
Next Post: V$ROLLSTAT status is Full

Related Posts

  • executing Function from SQLPLUS prompt Oracle
  • Another export with Query Oracle
  • Sequence Resetting Oracle
  • Finding locked objects Oracle
  • plan10g.sql good Oracle
  • create database syntax Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • oracle tips… from http://www.bijoos.com/oracle/douknow.htm Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress
  • TNSNAMES entries details Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • Roles and Stored Object behaviour Oracle
  • Find long Running Transaction Linux/Unix
  • Privilege to describe the table. Oracle
  • purge_trc.sh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme