catalog数据库的建立

时间:2022-09-15 18:38:24

catalog 数据库建立的步骤:db01为CATALOG数据库,orcl为目标数据库
首先在catalog数据库上建立必要的条件:
表空间:
1.create tablespace rmantbs datafile '/u1/oracle/oradata/db01/rmantbs.dbf' size 200m;
用户:
2.drop user rman cascade;
create user rman identified by rman default tablespace rmantbs;
grant connect,resource,recovery_catalog_owner to rman;
辅助命令:select username,default_tablespace from dba_users;
 tnsping orcl;  tnsping db01

///3.rman catalog rman/rman@db01
///rman>create catalog;
///rman>exit


3.连接目标数据库,orcl为目标数据库,db01为CATALOG数据库
rman target
sys/oracle@orcl catalogrman/rman@db01   
rman>create catalog tablespace rmantbs
rman>register database;

注册成功。

下次使用注意指定catalog登录。