Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • DBMS_JOB all example Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • Important Script Method for tuning Oracle
  • initUOCIOTTO.ora Oracle
  • cache buffer chain latch Oracle
  • good note for shared pool tunnig Oracle
  • Error Handling in Proc Oracle
  • Implementation of key based authentications Linux/Unix
  • plan10g.sql Oracle
  • replace alphabets using sed Linux/Unix
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • proper cpu stats Linux/Unix
  • How to choose Driver table in SQL statement 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

  • Find Stale DR Physical Standby Oracle
  • TNSNAMES entries details Oracle
  • Good notes on Oracle Events Oracle
  • cache buffer chain latch Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Optimizer_Index init.ora parameter explaination. 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Processes Parameter decision Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • SQL_PROFILE – I explaination Oracle
  • Physical Standby switchover with session active Oracle
  • Wait time tuning research Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • fkwoind.sql fkwoindex.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme