光头老蒋

讨论存储技术,IP存储, 数据库容灾等

« 有关控制文件的实验netapp的精髓 WAFL和RAID4 »

如何配置RMAN备份

ram是oracle数据库备份里使用最多的热备方式,本文从结构上让操作者了解rman的备份机理,如何将目标数据库注册到rman数据库上

 

Target 数据库

应用数据库 ora815

NBU CLIENT

Oracle agent for nbu

Internal/oracle

Internal/oracle@ora815

 

  |

  |

  |

  |

  |

  |

 

Rman 数据库

Rman Db orarman

Rman catalog

Rman /rman

Rman/ramn@oraramn

有关拓扑图的说明:

 下面的命令$ rman target internal/oracle@ora815 catalog rman/rman@orarman ;

表示在Target 数据库上运行RMAN命令,先连接数据库本身,然后将Target 数据库本身同RMAN数据库关联起来.然后再注册.注意次序不要搞混,是主动注册到RMAN数据库.而不是RMAN数据库来联系.

 

RMAN数据库上:

------------------------------------------------------------]

1.创建RMAN用户的表空间

SVRMGR> create tablespace rmantable

     2> datafile '/u01/oradata/ora815/rmantable.dbf' size 150m;

经验之谈:在oracle8.1.5中不能用catalog,rcvcat这种敏感字眼作为catalog所在的表空间名。

-----------------------------------------------------------

 

------------------------------------------------------------

2.创建RMAN 用户.

SVRMGR> create user rman identified by rman

     2> DEFAULT TABLESPACE rmantable

     3> TEMPORARY TABLESPACE temp

     4> QUOTA UNLIMITED ON rmantable;

Statement processed.

-------------------------------------------------------------

 

-------------------------------------------------------------

3.RMAN用户授权.

SVRMGR> grant recovery_catalog_owner to rman;

语句已处理。

SVRMGR>grant connect,resource to rman;

Statement processed.

--------------------------------------------------------------

 

---------------------------------------------------------------

4.如果是8i:,则通过create catalog来实现。

$ rman catalog rman/rman;

Recovery Manager: Release 8.1.5.0.0 - Production

RMAN-06008: connected to recovery catalog database

RMAN-06428: recovery catalog is not installed

 

RMAN>connect  catalog rman/rman@orarman

说明: rman/rman@orarman orarman表示rman所在的本身数据库的名称.

 

RMAN|>create catalog tablespace rmantable;

RMAN-06431: recovery catalog created

--------------------------------------------------------------

 

5.如果是8.0.5:

connect rman/rman;(注意必须以rman身份登录)

@../rdbms/admin/catrman.sql:

最后的执行结果是:

No errors for PACKAGE DBMS_RCVCAT

Statement processed.

No errors for PACKAGE BODY DBMS_RCVCAT

Statement processed.

No errors for PACKAGE DBMS_RCVMAN

Statement processed.

No errors for PACKAGE BODY DBMS_RCVMAN

----------------------------------------------

 

 

------------------------------------------------

.Target 数据库上将本身DB注册到RMAN 数据库上.

 rman  target internal/oracle@ora815 catalog rman/rman@orarman;

 

Recovery Manager: Release 8.1.5.0.0 - Production

 

RMAN-06005: connected to target database: ORA815 (DBID=1560757381)

RMAN-06008: connected to recovery catalog database

 

RMAN>

 

RMAN> register database;

 

RMAN-03022: compiling command: register

RMAN-03023: executing command: register

RMAN-08006: database registered in recovery catalog

RMAN-03023: executing command: full resync

RMAN-08029: snapshot controlfile name set to default value: ?/dbs/snapcf_@.f

RMAN-08002: starting full resync of recovery catalog

RMAN-08004: full resync complete

  • quote 1.pngqp
  • http://www.baidu.com
  • 纖體瘦身一向是變瘦D的主打項目,除了先進的纖體儀器,營養師、醫生、心理輔導專家均會駐場為顧客深入分析致肥的原因,致肥的原因有多方面,不少是因為心理及壓力因素所造成,變瘦D網頁設計貫徹徹底根治問題的原則,保證顧客零反彈. 0.5057546579132579
  • 2008-11-13 6:56:45 回复该留言
  • quote 2.lptxj
  • http://www.baidu.com
  • 在傳統的市場推廣活動裡面, 接觸到的網上客戶對象很多時候都不是目標客戶. 舉個例子, 當一本雜誌宣傳最新型號的 網頁設計, 其實很多閱讀該雜誌的讀者都沒有駕駛執照. 當然傳統的做法有它的效益, 這兒我們只是想突出AIM SEO網站網上商店推廣的目標web design客戶的比率非常高, 因為是搬屋客戶主動來找你. 0.8392173854248388
  • 2008-11-14 13:43:05 回复该留言
  • quote 7.myuuf
  • http://www.baidu.com
  • Shooter Combat airsoft gun Supplies was founded in 2006.
    We also have a retail aeg shop located in Hong Kong.
    We provide a variety of dboys skirmish wargame products including
    airsoft gun,airsoft accessories,combat gear
    scope ,military uniform, footwear, vest, protective gear,radios headset . 0.6470407499059667
  • 2008-11-30 5:14:03 回复该留言

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Powered By Z-Blog 1.7 Laputa Build 70216

Copyright click2earth Your WebSite. Some Rights Reserved.