Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • dbinv.sql Oracle
  • Monitor Long Running Job Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Another export with Query Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • cache buffer chain latch Oracle
  • Find nth max and min. Oracle
  • Nice notes on wait events Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • S3 Basic info AWS
  • Database logon trigger issue 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

  • Oracle 10g for solaris 10 Oracle
  • standard Monitoring – 1 Oracle
  • Good links for x$ tables in oracle. Oracle
  • ORA-3136 Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • create user with unlimited quota 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
  • Good Link from metalink 1 Oracle
  • How To Transfer Passwords Between Databases (ref note: 199582.1) Oracle
  • refre.sql Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme