[20201110]How to get the Data Guard broker configuration from a SQL query.txt
[20201110]How to get the Data Guard broker configuration from a SQL query.txt
--//連結:
--//介紹一種方法如果設定dg broker的情況下,可以透過sql語句查詢,做一個記錄:
SYS@xxxx1> @ &r/ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
SELECT piv.*, obj.status
FROM (SELECT object_id, attribute, VALUE
FROM x$drc
WHERE object_id IN (SELECT object_id
FROM x$drc
WHERE attribute = 'DATABASE')) drc PIVOT (MAX
(
VALUE
)
FOR attribute
IN ('DATABASE' DATABASE
,'intended_state' intended_state
,'connect_string' connect_string
,'RAC' RAC
,'enabled' enabled
,'role' role
,'receive_from' receive_from
,'ship_to' ship_to
,'dgb_connect' dgb_connect
,-- 'static_connect_identifier' static_connect_identifier ,
'FSFOTargetValidity' FSFOTargetValidity)) piv
JOIN x$drc obj
ON (obj.object_id = piv.object_id AND obj.attribute = 'DATABASE');
SYS@xxxx1> @ &r/prxx
==============================
OBJECT_ID : 16842752
DATABASE : xxxx
INTENDED_STATE : READ-WRITE-XPTON
CONNECT_STRING : xxxx
RAC : YES
ENABLED : YES
ROLE : PRIMARY
RECEIVE_FROM :
SHIP_TO :
DGB_CONNECT :
FSFOTARGETVALIDITY :
STATUS : SUCCESS
==============================
OBJECT_ID : 33619968
DATABASE : xxxxdg
INTENDED_STATE : PHYSICAL-APPLY-ON
CONNECT_STRING : xxxxdg
RAC : NO
ENABLED : YES
ROLE : PHYSICAL
RECEIVE_FROM :
SHIP_TO :
DGB_CONNECT :
FSFOTARGETVALIDITY :
STATUS : SUCCESS
==============================
OBJECT_ID : 50397184
DATABASE : xxxxdg2
INTENDED_STATE : OFFLINE
CONNECT_STRING : xxxxdg2
RAC : NO
ENABLED : NO
ROLE : PHYSICAL
RECEIVE_FROM :
SHIP_TO :
DGB_CONNECT :
FSFOTARGETVALIDITY :
STATUS : SHUTDOWN
PL/SQL procedure successfully completed.
--//有一臺機器offline,馬上檢檢視看。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2733180/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to get ORACLE_HOME from data dictionaryOracle
- Data Guard Broker系列之二:Data Guard Broker配置實戰
- Oracle Data Guard Broker元件Oracle元件
- 1 Oracle Data Guard Broker 概念Oracle
- Oracle Data Guard和Broker概述Oracle
- 8 Oracle Data Guard Broker 屬性Oracle
- 官方文件學習:data guard broker
- 轉載《Data Guard Broker基礎》
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- Get data style from ExcelExcel
- get_data_from_yml
- A Oracle Data Guard Broker 升級和降級Oracle
- Setting the Data Protection Mode of a Data Guard Configuration
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- Oracle Data Guard Broker and Static Service Registration (文件 ID 1387859.1)Oracle
- Data Guard Broker系列之四:資料庫管理資料庫
- How to migrate data from Oracle to MSSQLSERVEROracleSQLServer
- 使用Broker管理Data Guard——停用、改保護模式等模式
- Data Guard Broker High Availability (Doc ID 275977.1)AI
- Data Guard Broker系列之六:Fast-Start FailoverASTAI
- Data Guard broker系列之五:資料庫角色轉換資料庫
- SQL*Net more data from clientSQLclient
- Oracle 12.2 How to Generate AWRs in Active Data Guard Standby DatabasesOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active databaseOracleDatabase
- 搭建11g data guard(duplicate from active database方式)Database
- Data Guard配置Broker解決ORA-16664、ORA-16792
- SQL語句——DATA GUARD概念和管理SQL
- oracle 10g data guard broker ORA-16607 故障處理案例Oracle 10g
- DATA GUARD部署模式——DATA GUARD概念和管理模式
- Oracle 11g Data Guard 使用 duplicate from active database 建立 standby databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active database 建立 standby databaseOracleDatabase
- 介紹ORACLE DATA GUARD——DATA GUARD概念和管理Oracle
- 【等待事件】SQL*Net more data from dblink事件SQL
- SQL*Net more data from dblink Reference NoteSQL
- Data guard搭建
- oracle data guard!!Oracle
- 【DATAGUARD】物理dg配置客戶端無縫切換 (八.1)--Data Guard Broker 的配置客戶端
- Export data from a data blockExportBloC