1. Create catalog
a) Createt tablespace to store catalog’s object ;
{ echo $ORACLE_SID (dgdemo)
create tablespace tbs_rman datafile '/u01/oradata/dgdemo/tbs_rman.dbs' size 300m;
}
-------------
如果表空间存在,就执行删除:
Drop tablespace tbs_rman including contents and datafiles;
b) Create rman user & grant privilege to it
{ create user rmanuser identified by rman default tablespace tbs_rman temporary tablespace
temp;
grant recovery_catalog_owner to rmanuser;
――
查 看 方 法 :
select * from
session_roles;
alter user rmanuser
quota
unlimited on tbs_rman;---
增加
用户
tbs_rman
表空间操作
权限
;
}
补充:
lsnrctl service;
查看目前监听的结果
c) Create catalog on rman
{ rman catalog rmanuser/rman
create catalog tablespace tbs_rman;
创建
catalog
表空间
}
2. Register database
$ rman catalog rmanuser/rman
----------
只有连接到
catalog
才可以
registerdatabase
RMAN> connect target sys/oracle;
RMAN> register database;
RMAN> List incarnation;
评论