第一步:创建RMAN CATAGORY储存信息的表空间,和治理Catagory的用户 sqlplus /nolog conn / as sysdba
create tablespace rman_ts datafile 'd:Oracleordataorcl man_ts.dbf' size 10M extend management local uniform size 128K; create user rman01 identified by rman01 default tablespace rman_ts quota unlimited on rman_ts;
第二步:授予用户rman01治理catagory和相关的权限 grant recover_catagory_owner to rman01; grant connect, resource to rman01;
第三步,登陆rman c:>rman catagory rman01/rman01 log=catalog.log
第四步:创建rman catagory rman>create catalog tablespace rman_ts; rman>exit;
第五步:登陆catagory,第一次连接目标数据库(必须用sysdba)并注册,以后直接连接,本地的数据库第一次也要注册,以后假如有变化只要同步即可。 c:>rman target sys/oracle@orcl catalog rman01/rman01 rman>register database;
至此,已经成功创建了rman catagory,并且注册了一个目标数据库。
|