You are on page 1of 3

24.

RMAN CATALOG

MACHINE DB32 CATALOG:


--------------------
Create New Database : catalog
-----------------------------

SQL> alter user fmcat default tablespace fm;

User altered.

SQL> create tablespace fm datafile '/u01/app/oracle/oradata/catalog/fm1.dbf' size


20m;

Tablespace created.

SQL> alter user fmcat identified by fmcat quota unlimited on fm;

User altered.

SQL> grant connect, resource, recovery_catalog_owner to fmcat;

Grant succeeded.

[oracle@db32 ~]$ rman catalog fmcat/fmcat

RMAN> create catalog;

recovery catalog created

RMAN> exit

[oracle@db32 ~]$ !sql

Sql> conn fmcat/fmcat


Sql> select * from tab;
Sql> desc rc_backup_datafile;

CREATE LISTNER:
--------------

[oracle@db32 ~]$ netca

open graphical mode

next

add

next

type listner name : cat

next

select protocols: tcp

next
select use another port number: 1555

next

would you like to another listner? select "no"

next

finish

assign this database created listener through netmgr:


REGISTER LISTNER : (machine db32)
---------------------------------

[oracle@db32 ~]$ netmgr

open graphical mode

select listners

list

select database service

add database

type global database name: catalog

oralce home directory : /u01/app/oracle/product/11.2.0/dbhome_2/

SID=catalog

select file

select save network configuration

exit

MACHINE DB31 (Production):


-------------------------

CREATE TNS : catalog

[oracle@db31 ~]$ netca

select local net service name configuration

next

add

next

service name : catalog (database name)

next

select tcp
next

host name : 192.168.139.32

use another port number: 1555

next

no, do not test

next

net service name : tocatalog

would do you like to configure another net service name?

select no

next

finish

After Save Configuration :

[oracle@db31 ~]$ tnsping tocatalog

[oracle@db32 ~]$ $rman target / catalog fmcat/fmcat@tocatlog

RMAN> register database;

RMAN> backup database;

=================================================================================TH
E
END===============================================================================

You might also like