创建catalog 数据库


步骤一:创建恢复目录用户
1、SQLPLUS下操作:
   conn scott/tiger@tones as sysdba;

2、为恢复目录单独创建表空间
     create tablespace rmandb
     datafile 'e:\oracle\erp\rmandb01.dbf'
     size 10m ;
3、创建恢复目录用户
  create  user  rman01  identified  by  rman01  default  tablespace  rmandb;

4、为恢复目录授予下列角色
  grant connect,resource,recovery_catalog_owner to rman01;

为恢复目录授予下列角色:

5、在DOS下操作:
   rman catalog rman01/rman01@tones
   --连接到恢复目录数据库
   --未安装恢复目录

6、rman>create catalog tablespace rmandb;
  --恢复目录已经创建。

7、rman>exit;

8、c:\> rman catalog rman01/rman01@tones target rman_db01/rman_db01@testcata
   --连接到目录数据库 TESTCATA
   --连接到恢复目录数据库。

9、rman>register database;
   --注册在恢复目录中的数据库
   --正在启动全部恢复目录的resync
   --完成全部resync

10、rman>show all;


查看目标数据库的所有schema文件
11、rman>report schema;
12、rman>list incarnation;

 

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

转载于:http://blog.itpub.net/16486600/viewspace-545165/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值