Archive for 一月 20th, 2009

create catalog

星期二, 一月 20th, 2009
测试RSS输出随便黏贴点
 
 
第一步:在目标数据库中创建恢复表空间:
        
SQL>create tablespace rman_tbs datafile '....' autoextend on size 50M;
第二步:在目标数据库中创建恢复用户,并分配回复表空间(
rman_tbs)的定额:
        
SQL>create user rman identified by rman
                    
temporary tablespace temp
                    
default tablespace rman_tbs
                    
quota unlimited on rman_tbs;
第三步:赋予恢复目录所有者权限:
        
SQL>grant  recovery_catalog_owner to rman;
第四步:以恢复目录所有者身份登录
RMAN恢复目录:
            
RMAN>connect catalog rman/rman;
第五步:在恢复目录中创建恢复表空间(
rman_tbs):
        
RMAN>create catalog tablespace rman_tbs;
第六步:退出
RMAN
第七步:连接目标数据和恢复目录数据库,并注册数据库:
        
RMAN>connect target rman/rman catalog rman/rman;
            
            
RMAN>register database;