日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle11g broker,张欣橙 Oracle11g 配置DG broker

發布時間:2024/9/19 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle11g broker,张欣橙 Oracle11g 配置DG broker 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在配置DG broker之前需要確保Dataguard配置正常且主庫和備庫均使用spfile.

1. 主庫配置

配置DG_BROKER_START參數

檢查主庫dg_broker_start設置

SQL> show parameter dg_broker_start;

NAME TYPE VALUE

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

dg_broker_start boolean FALSE

啟用dg_broker_start,啟用后oracle會自動啟動一個dmon進程

SQL> alter system set dg_broker_start = true;

System altered.

在監聽文件中加入DGMGRL靜態監聽

修改listener.ora文件,加入DGMGRL靜態監聽:SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(GLOBAL_DBNAME = ora11db)

(ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)

(SID_NAME = ora11db)

)

(SID_DESC =

(GLOBAL_DBNAME = ora11db_DGMGRL)

(ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)

(SID_NAME = ora11db)

)

)

重啟監聽$> lsnrctl reload

2. 備庫配置

配置DG_BROKER_START參數

檢查主庫dg_broker_start設置

SQL> show parameter dg_broker_start;

NAME TYPE VALUE

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

dg_broker_start boolean FALSE

啟用dg_broker_start,啟用后oracle會自動啟動一個dmon進程

SQL> alter system set dg_broker_start = true;

System altered.

在監聽文件中加入DGMGRL靜態監聽

修改listener.ora文件,加入DGMGRL靜態監聽:

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(GLOBAL_DBNAME = ora11sty)

(ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)

(SID_NAME = ora11sty)

)

(SID_DESC =

(GLOBAL_DBNAME = ora11sty_DGMGRL)

(ORACLE_HOME = /app/oracle/product/11.2.0/dbhome_1)

(SID_NAME = ora11sty)

)

)

重啟監聽:

$> lsnrctl reload

3.配置broker

創建dg broker

啟動dgmgrl命令行

oracle@solora11g:~ $> dgmgrl sys/manager

DGMGRL for Solaris: Version 11.2.0.1.0 - 64bit Production

Copyright (c) 2000, 2009, Oracle. All rights reserved.

Welcome to DGMGRL, type "help" for information.

Connected.

創建dg broker配置

DGMGRL> create configuration 'DGORA11G' as primary database is 'ora11db' connect identifier is ora11db;

Configuration "DGORA11G" created with primary database "ora11db"

顯示配置信息

DGMGRL> show configuration

Configuration - DGORA11G

Protection Mode: MaxPerformance

Databases:

ora11db - Primary database

Fast-Start Failover: DISABLED

Configuration Status:

DISABLED

增加備庫設置

增加備庫

DGMGRL> add database 'ora11sty' as connect identifier is 'ora11sty' maintained as physical;

Database "ora11sty" added

顯示配置

DGMGRL> show configuration

Configuration - DGORA11G

Protection Mode: MaxPerformance

Databases:

ora11db - Primary database

ora11sty - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:

DISABLED

enable配置

啟用配置

DGMGRL> enable configuration

Enabled.

顯示配置

DGMGRL> show configuration

Configuration - DGORA11G

Protection Mode: MaxPerformance

Databases:

ora11db - Primary database

ora11sty - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:

SUCCESS

4. 測試switchover

DGMGRL> switchover to ora11sty

Performing switchover NOW, please wait...

New primary database "ora11sty" is opening...

Operation requires shutdown of instance "ora11db" on database "ora11db"

Shutting down instance "ora11db"...

ORA-01109: database not open

Database dismounted.

ORACLE instance shut down.

Operation requires startup of instance "ora11db" on database "ora11db"

Starting instance "ora11db"...

ORACLE instance started.

Database mounted.

Switchover succeeded, new primary is "ora11sty"

總結

以上是生活随笔為你收集整理的oracle11g broker,张欣橙 Oracle11g 配置DG broker的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。