catalog数据库的建立

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登录。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值