当前位置:  数据库>oracle

配置RMAN RECOVERY CATALOG

    来源: 互联网  发布时间:2017-06-13

    本文导语: Oracle的RMAN配置信息默认存放在target数据库的控制文件中,也可以配置一个recovery catalog服务器来存储这些信息,下面是控制文件和恢复的特性比较 Control file:– Simpler administration– DefaultRecovery catalog:– Replicates control file data– Has r...

Oracle的RMAN配置信息默认存放在target数据库的控制文件中,也可以配置一个recovery catalog服务器来存储这些信息,下面是控制文件和恢复的特性比较
Control file:
– Simpler administration
– Default
Recovery catalog:
– Replicates control file data
– Has room for more data
– Can service many targets
– Can store RMAN scripts
RMAN repository data is always stored in the control file of the target database. But it can also be stored in a separate database, called a recovery catalog.
A recovery catalog preserves backup information in a separate database, which is useful in the event of a lost control file. This allows you to store a longer history of backups than what is possible with a control file–based repository. A single recovery catalog is able to store information for multiple target databases. The recovery catalog can also hold RMAN stored scripts, which are sequences of RMAN commands for common backup tasks. Centralized storage of scripts in the recovery catalog can be more convenient than working with command files.
Usage of a separate recovery catalog database is not recommended for small installations where administration of a separate recovery catalog database would be burdenso


下面来演示下恢复目录的配置,其中jy为catalog数据库,test数据库为测试数据库
1.创建用户/表空间与授权(我这里使用users表空间没有新建表空间)
SQL> create user rman identified by "rman"
  2  default tablespace users
  3  temporary tablespace temp
  4  quota unlimited on users;

User created.

SQL> grant recovery_catalog_owner to rman;

Grant succeeded.

SQL>  conn rman/rman
Connected.
SQL> select count (*) from user_objects;

  COUNT(*)
----------
        0


2:创建恢复目录
[oracle@jingyong1 admin]$ rman catalog rman/rman@jy

Recovery Manager: Release 10.2.0.5.0 - Production on Sun Feb 1 21:22:31 2015

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

connected to recovery catalog database

RMAN> create catalog;

recovery catalog created


SQL> conn rman/rman
Connected.
SQL> select count (*) from user_objects;

  COUNT(*)
----------
      194


可以看出在rman用户下的对象个数为194个

3:增加tns服务名
[oracle@oracle11g admin]$ vi tnsnames.ora

jy =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.56.11)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = jy)
    )
  )

 

4:注册目标数据库,同步catalog和控制文件
[oracle@oracle11g admin]$ rman target sys/zzh_2046@test catalog rman/rman@jy

Recovery Manager: Release 10.2.0.5.0 - Production on Sun Feb 1 21:25:25 2015

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

connected to target database: TEST (DBID=2155613261)
connected to recovery catalog database

RMAN> register database;

database registered in recovery catalog
starting full resync of recovery catalog
full resync complete

RMAN> resync catalog;

starting full resync of recovery catalog
full resync complete

RMAN> list incarnation;


List of Database Incarnations
DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
------- ------- -------- ---------------- --- ---------- ----------
1      10      TEST    2155613261      PARENT  1          30-JUN-05
1      11      TEST    2155613261      PARENT  446075    05-SEP-14
1      12      TEST    2155613261      PARENT  2849317    27-JAN-15
1      13      TEST    2155613261      PARENT  2880152    27-JAN-15
1      2      TEST    2155613261      CURRENT 3017109    01-FEB-15

--------------------------------------推荐阅读 --------------------------------------

RMAN 配置归档日志删除策略

Oracle基础教程之通过RMAN复制数据库

RMAN备份策略制定参考内容

RMAN备份学习笔记

Oracle数据库备份加密 RMAN加密

--------------------------------------分割线 --------------------------------------


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • C++ Strings(字符串) 成员 get_allocator():返回配置器
  • LINUX如何配置网卡,配置TELNET,急!在线等待!
  • C++ MultiMaps 成员 get_allocator():返回multimap的配置器
  • liunx下配置axis2的环境变量怎么配置
  • C++ Lists(链表) 成员 get_allocator():返回list的配置器
  • centos配置JAVA运行环境在配置JK时出错
  • C++ Maps 成员 get_allocator():返回map的配置器
  • 求xmanager3.0 配置root用户,连接redhat linux 6.0 配置文档
  • C++ Double Ended Queues(双向队列) 成员 get_allocator():返回双向队列的配置器
  • 高分求救!!!怎样在linux下配置tomcat文件?同时配置sqlServer数据库?
  • 修改配置真正解决php文件上传大小限制问题(apache+php)
  • EJB配置好了,下次启动weblogic的时候还需要重新配置吗
  • 修改配置真正解决php文件上传大小限制问题(nginx+php)
  • 高手赐教!Tomcat4.02的配置,不知javaBean目录、servlet目录该如何配置?
  • kohana介绍及安装配置方法
  • 请问JDBC 需要配置吗?如要,如何配置??来者送分!!!
  • Myeclipse中自带Tomcat的JDBC连接池配置(mysql和mssql)
  • 请问该如何配置GTK的字体配置文件??
  • centos6网络配置及网卡设置相关命令及配置文件
  • 何处有 Linux 内核编译配置详细的中文介绍? 我在重新配置编译时老是出错:-(
  • Linux内核中影响tcp三次握手的一些协议配置
  • 安装linux的最低配置:硬盘,内存,以及cpu的最低配置?多谢赐教!


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,