oracle 10g rman恢复目录的创建

1. 通过DBCA创建一个数据库,后面的恢复目录会在这个数据库中创建。此处略去建库的详细步骤,

    该库的SID是rmancat。

2. 以sysdba身份进入数据库rmancat,创建一个表空间用来存储rman恢复目录的数据。

     SQL> create tablespace rmants datafile 'd:\oracle\product\10.2.0\oradata\rm
ancat\rmants01.dbf' size 500M;

3. 创建rman用户

     SQL> create user rman identified by rman default tablespace rmants
                 temporary tablespace temp quota unlimited on rmants;

4. 给rman用户赋予适当的权限,角色recovery_catalog_owner拥有rman维护恢复目录所需要的所有权限。

     SQL> grant recovery_catalog_owner to rman;

     SQL>exit;

5. 启动rman,创建rman恢复目录。

    D:\>rman catalog  rman/rman@rmancat

    恢复管理器: Release 10.2.0.3.0 - Production on 星期四 9月 15 14:06:22 2011

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    连接到恢复目录数据库

    RMAN>create catalog tablespace rmants;

    恢复目录已创建

    RMAN>exit

6. 注册目标数据库

    D:\>rman target  sys/system@orcl  catalog  rman/rman@rmancat

    恢复管理器: Release 10.2.0.3.0 - Production on 星期四 9月 15 14:13:39 2011

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.

    连接到目标数据库: ORCL (DBID=1286153759)
    连接到恢复目录数据库

    RMAN> register database;

    注册在恢复目录中的数据库
    正在启动全部恢复目录的 resync
    完成全部 resync

    RMAN>exit;

 

   

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/36590/viewspace-707501/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/36590/viewspace-707501/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值