Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Alter procedure auditing Oracle
  • Drop database in Oracle 10g Oracle
  • Oracle Data Direct to TAPE Oracle
  • create database syntax Oracle
  • How to find where datafile is created dbf_info.sql Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • handling filenname with space Linux/Unix
  • Another export with Query Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Find_planinfo.sql Oracle
  • oracle 11g RAC on vmware Oracle
  • telnet listening Linux/Unix
  • set_env_dba Linux/Unix
  • Goldengate Tutorial Oracle
  • Specify the Rollback segment to use in Transaction 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

  • Rollback force for distributed transactions Oracle
  • Implementing Listener Security Oracle
  • good note for shared pool tunnig Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • Good links for x$ tables in oracle. 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Jai Shree Ram Linux/Unix
  • scp with ssh2 Linux/Unix
  • Facts about SCN and Rollback Segment Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • Shuffle an array PHP/MYSQL/Wordpress
  • USER_TABLES.Freelists Oracle
  • useful dg links Oracle
  • Implementing Listener Security Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme