admin管理员组

文章数量:1516870

create catalog[如有错误请不吝斧正]

1、【catalog】dbca a new database

dbca

2、【catalog】

create tablespace tbs_catalog datafile '/home/u01/app/oracle/oradata/CATALOG/tbs_catalog01.dbf' size 500m autoextend on next 2m maxsize 31G;

3、【catalog】create a user for catalog

Create user rmanc identified by rmanc temporary tablespace temp default tablespace tbs_catalog quota unlimited on tbs_catalog;

4、【catalog】 grant

grant connect,resource to rmanc;
grant recovery_catalog_owner to rmanc;

5、【catalog】create catalog

rman catalog rmanc/rmanc

RMAN>create catalog tablespace tbs_catalog;

6、【target】register target  database

export ORACLE_SID=RACDB

rman target  sys/racdb@racdb catalog rmanc/rmanc@catalog

Register database

7、【target】cancel register

export ORACLE_SID=RACDB

rman target  sys/racdb@racdb catalog rmanc/rmanc@catalog

unregister database

or

select * from db;
DB_KEY DB_ID CURR_DBINC_KEY
---------- ---------- --------------
1 3021445076 2
SQL> execute dbms_rcvcat.unregisterdatabase(1,3021445076);

  

本文标签: create catalog如有错误请不吝斧正