Oracle 學習之RMAN(十四)Catalog

來源:互聯網
上載者:User

標籤:catalog

 Catalog是一個獨立的資料庫, 它用來儲存從目標資料庫的控制檔案中擷取的RMAN 中繼資料。RMAN 將有關資料庫結構、歸檔重做日誌、備份組以及資料檔案副本的資訊從目標資料庫的控制檔案傳播到恢複目錄中。當要管理多個目標資料庫時,應該使用目錄。

  先看建立Catalog的步驟

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/70/AE/wKioL1W7fari4YaFAAGXYrXusp8614.jpg" title="create catalog.PNG" alt="wKioL1W7fari4YaFAAGXYrXusp8614.jpg" />


1. 建立資料表空間

SQL> create tablespace rman_ts ;Tablespace created.SQL>

2. 建立Catalog Owner

SQL> CREATE USER rman IDENTIFIED BY rman DEFAULT TABLESPACE rman_ts QUOTA UNLIMITED ON rman_ts;User created.

3. 賦許可權

SQL> GRANT recovery_catalog_owner TO rman;Grant succeeded.SQL> GRANT connect, resource TO rman;Grant succeeded.

4. 建立Catalog

現在target資料庫配置一個catdb的連接字串,指向catlog的資料庫。

11gdg-> rman catalog rman/[email protected]Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 9 11:36:49 2015Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to recovery catalog databaseRMAN> create catalog tablespace rman_ts;recovery catalog created

5.串連target資料庫,使用Catalog 。

11gdg-> rman target / catalog rman/[email protected]Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 9 11:52:30 2015Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to target database: DEVDB (DBID=789087786, not open)connected to recovery catalog databaseRMAN> 11gdg-> rman target /                        Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 9 11:52:53 2015Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.connected to target database: DEVDB (DBID=789087786, not open)RMAN> connect catalog rman/[email protected]connected to recovery catalog databaseRMAN>

6. 註冊目標資料庫

RMAN> register database;database registered in recovery catalogstarting full resync of recovery catalogfull resync complete


本文出自 “叮咚” 部落格,請務必保留此出處http://lqding.blog.51cto.com/9123978/1680721

Oracle 學習之RMAN(十四)Catalog

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.