[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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Data Guard Broker元件Oracle元件
- 1 Oracle Data Guard Broker 概念Oracle
- Oracle Data Guard和Broker概述Oracle
- 8 Oracle Data Guard Broker 屬性Oracle
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- A Oracle Data Guard Broker 升級和降級Oracle
- get_data_from_yml
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- [20221111]19c配置Data Guard Broker問題.txt
- 使用Broker管理Data Guard——停用、改保護模式等模式
- Oracle 12.2 How to Generate AWRs in Active Data Guard Standby DatabasesOracleDatabase
- [20221111]19c配置Data Guard Broker問題2.txt
- How To Replicate Data from Oracle to Postgres Using GoldenGate (Doc ID 1544137.1OracleGo
- 【等待事件】SQL*Net more data from dblink事件SQL
- 18 與Oracle Data Guard 相關的SQL語句OracleSQL
- How to Understand Transportation Lane Configuration in SAP SNP
- Oracle Data Guard簡介Oracle
- 單機搭建Data Guard
- [20180918]等待事件SQL/Net more data from client.txt事件SQLclient
- How boltdb Write its Data?
- 【DG】Data Guard搭建(physical standby)
- 1 關於 Oracle Data GuardOracle
- 2 Oracle Data Guard 安裝Oracle
- bd_ticket_guard_client_dataclient
- How to get propose products in Sales Order
- 9 Oracle Data Guard 故障診斷Oracle
- Bd-Ticket-Guard-Client-Data逆向client
- How to get the description of blast hit using blastdbcmd?AST
- how to move a MediaWiki wiki from one server to anotherServer
- How to prevent your jar packages from being decompiled?JARPackageCompile
- How To Copy Any Text To Clipboard From Terminal In UbuntuUbuntu
- oracle 11g data guard維護Oracle
- 4.1.6 Oracle Restart 與 Oracle Data Guard 整合OracleREST
- 2 開始實用 Oracle Data GuardOracle
- 19 Oracle Data Guard 相關檢視Oracle
- MongoDB:Read and write access to data and configuration is unrestricted.MongoDBREST
- 6 Oracle Data Guard Protection Modes 保護模式Oracle模式
- 【DG】Data Guard主備庫Failove切換AI