Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • telnet listening Linux/Unix
  • Oracle 11g Environment Setup Oracle
  • Oracle Metalink useful notes Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • Load SPM baseline from AWR Oracle
  • Difference between SYNC and AFFIRM Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • set_env_dba Linux/Unix
  • Flowers Resize datafiles Oracle
  • PLSQL Table Syntax 1 Oracle
  • Small sample shell program Linux/Unix
  • Unix command for system configuration Linux/Unix
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • find_open_cur.sql Find open cursorts per session Oracle
  • find_pk.sql /* Find Primary Key */ 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

  • CPU Core related projections AWS
  • Virtual Indexes in Oracle Oracle
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Good notes on Oracle Events Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Oracle Material from OTN Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Query to Generate aggregate on every 30 mins. Oracle
  • Finding locked objects Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • Unix split command to split files Linux/Unix
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Good links for x$ tables in oracle. Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • Caching sequence in Memory Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme