Oracle 11g Active Data Guard搭建、管理

來源:互聯網
上載者:User

Oracle 11g Active Data Guard搭建、管理

說明:參考網路眾多人的筆記及思路,加上自己親身實踐之後的整理筆記,僅供參考。

Data Guard與RAC不同的是,在一般情況下,Standby只有一個節點處於活動狀態,所有的應用都串連到主伺服器。只有當伺服器發生故障時,才考慮切換到待命伺服器。

在Oracle 11g以前版本中的的Data Guard物理備用資料庫,可以以唯讀方式開啟資料庫,但此時MediaRecovery利用日誌進行資料同步的過程就停止了,如果物理備用資料庫處於恢複的過程中資料庫就不能開啟查詢,也就是說日誌應用和唯讀開啟兩個狀態是互斥的,而Oracle 11g Active Data Guard功能解決了這個矛盾,在利用日誌恢複資料的同時可以用唯讀方式開啟資料庫,使用者可以在備用資料庫上進行查詢、報表等操作,這類似邏輯Data Guard備用資料庫的功能(查詢功能方面),但是,資料同步的效率更高、對硬體的資源要求更低。這樣可以更大程度地發揮物理備用資料庫的硬體資源的效能。

Oracle 11g物理Active Data Guard即時查詢(Real-time query)特性。備庫在這種特性的支援下,Oracle可以最大限度滿足備庫作為報表庫或者查詢分析類型資料庫的需求。

利用Oracle 11g的 Duplicate From Active Database技術,使用rman通過網路連接主庫資料庫進行複製。

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

基於同一主機配置 Oracle 11g Data Guard

探索Oracle之11g DataGuard

Oracle Data Guard (RAC+DG) 歸檔刪除策略及指令碼

Oracle Data Guard 的角色轉換

Oracle Data Guard的日誌FAL gap問題

Oracle 11g Data Guard Error 16143 Heartbeat failed to connect to standby 處理方法

一、環境介紹

1. 主要資料庫環境

作業系統版本: OEL6.4 x64

資料庫版本 : Oracle 11.2.0.4.0x64

資料庫sid名 : orcl

資料庫db_unique_name:orcl_primary 

2. 備庫環境

作業系統版本: OEL6.4 x64

資料庫版本 : Oracle 11.2.0.4.0x64 (只安裝oracle資料庫軟體,no netcadbca)

資料庫sid名 : orcl

資料庫db_unique_name:orcl_standby 

配置hosts檔案

# cat /etc/hosts

192.168.10.205 oradb205 oradb205.localdomain

192.168.10.206 oradb206 oradb206.localdomain  

資料庫需要開啟歸檔模式(主、備庫都修改):

SQL> shutdown immediate

SQL> startup mount

SQL> alter database archivelog;

SQL> alter database open;

SQL> archive log list;  

DG的三種保護模式:

Maximum Protection 最大保護 | MaximumPerformance最高效能(預設模式) | Maximum Availability 最高可用性 

查看DG處於何種保護模式

SQL> selectdb_unique_name,protection_mode,protection_level from v$database; 

設定保護模式(3中模式,可選)

SQL> alter database set standbydatabase to maximize performance;

SQL> alter database set standbydatabase to maximize availability;

SQL> alter database set standbydatabase to maximize protection; 

 

更多詳情見請繼續閱讀下一頁的精彩內容:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.