oracle catalog 恢复,oracle rman catalog db(恢复目录数据库)的创建

oracle rman catalog db(恢复目录数据库)的创建

(2012-02-07 22:13:16)

标签:

rman

备份恢复

catalog

db

记不清是哪个版本教材上的内容了,今天看了一下,步骤还是很清晰的,做个记录。

How to Set Up a Recovery Catalog

1. Create the database to be used as the recovery catalog.

Alternatively, identify an already

existing database and use that. Because a single recovery catalog

can serve more than

one database, you may choose to create a single recovery catalog

that services all your

databases that are being backed up.

2. In the recovery catalog database, create the user that will own

the recovery catalog data.

For example, assume that catdb is the name of the catalog database,

and rcat_ts is

the name of a tablespace you have created where the catalog data is

to be stored.

$ sqlplus sys/password@catdb as sysdba

SQL> CREATE USER rman IDENTIFIED BY cat

2 TEMPORARY TABLESPACE temp

3 DEFAULT TABLESPACE rcat_ts

4 QUOTA UNLIMITED ON rcat_ts;

SQL> GRANT UNLIMITED ON rcat_ts TO rman;

3. Grant the RECOVERY_CATALOG_OWNER role to the catalog owner. This

role provides

the user with all privileges required to maintain and query the

recovery catalog.

SQL>GRANT RECOVERY_CATALOG_OWNER TO rman;

4. Start RMAN and log in as the catalog owner.

$ rman catalog rman/cat@catdb

RMAN> CREATE CATALOG TABLESPACE rcat_ts;

5. Connect to the target database by using RMAN, and register it in

the newly created

recovery catalog.

$ rman target sys/oracle@orcl catalog rman/cat@catdb

RMAN> register database;

Note: It is important to back up your recovery catalog

database.

分享:

a4c26d1e5885305701be709a3d33442f.png喜欢

0

a4c26d1e5885305701be709a3d33442f.png赠金笔

加载中,请稍候......

评论加载中,请稍候...

发评论

登录名: 密码: 找回密码 注册记住登录状态

昵   称:

评论并转载此博文

a4c26d1e5885305701be709a3d33442f.png

发评论

以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值