官方文件學習:data guard broker
5 如果有RAC環境,則START_OPTIONS必須設定為MOUNTLISTENER = (DESCRIPTION =(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=port_num))))SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(SID_NAME=sid_name)(GLOBAL_DBNAME=db_unique_name_DGMGRL.db_domain)(ORACLE_HOME=oracle_home))
srvctl add database -d -o -s mount或srvctl modify database -d -o -s mount
alter system set local_listener='(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dg2)(PORT=1521)))'然後啟動監聽,檢視監聽狀態,有dg2_XPT服務Service "dg2_XPT" has 1 instance(s).
Table 1-2 DGMGRL Commands
Command | Description |
---|---|
ADD |
Adds a standby database to the broker configuration |
CONNECT |
Connects to an Oracle instance |
CREATE |
Creates a broker configuration |
DISABLE |
Disables a configuration, a database, or fast-start failover |
EDIT |
Edits a configuration, database, or instance |
ENABLE |
Enables a configuration, a database, or fast-start failover |
EXIT |
Exits the program |
FAILOVER |
Changes a standby database to be the primary database |
HELP |
Displays description and syntax for individual commands |
QUIT |
Exits the program |
REINSTATE |
Changes a disabled database into a viable standby database |
REM |
Comments to be ignored by DGMGRL |
REMOVE |
Removes a configuration, database, or instance |
SHOW |
Displays information of a configuration, database, or instance |
SHUTDOWN |
Shuts down a currently running Oracle instance |
START |
Starts the fast-start failover observer |
STARTUP |
Starts an Oracle database instance |
STOP |
Stops the fast-start failover observer |
SWITCHOVER |
Switches roles between the primary database and a standby database |
NAME TYPE VALUE
------------------------------------
dg_broker_start boolean TRUE
Password:
Connected.
Configuration
Name: dgconfig
Enabled: NO
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
dg1 - Primary database
dg2 - Physical standby database
Current status for "dgconfig":
DISABLED
Enabled.
DGMGRL> show configuration
Configuration
Name: dgconfig
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
dg1 - Primary database
dg2 - Physical standby database
Current status for "dgconfig":
SUCCESS
Table 4-1 Database States and Descriptions
Database Role | State Name | Description |
---|---|---|
Primary |
ONLINE |
The primary database is open for read/write access and redo transport services are archiving online redo log files to the standby databases. If this is a RAC database, all started instances are open in read/write mode and have redo transport services running. This is the default state for a primary database when it is enabled for the first time. |
Primary |
LOG-TRANSPORT-OFF |
The primary database is open for read/write access, but redo transport services are not transmitting redo data to the standby databases. If this is a RAC database, all started instances are open in read/write mode and redo transport services are not running on any instances. |
Physical standby |
ONLINE |
The physical standby database is mounted and Redo Apply is started. The standby database is not open for read-only queries. If the standby database is a RAC database, the broker starts log apply services on exactly one standby instance, called the apply instance. If this instance fails, the broker automatically chooses another started instance. This new instance then becomes the apply instance. This is the default state for a physical standby database when it is enabled for the first time. |
Physical standby |
LOG-APPLY-OFF |
The physical standby database is mounted, but Redo Apply is stopped. The standby database is not open for read-only queries. If this is a RAC database, there is no instance running log apply services until you change the database state to ONLINE. |
Physical standby |
READ-ONLY |
The physical standby database is open for read-only queries, and Redo Apply is stopped. If this is a RAC database, one or more instances will be open in read-only mode. Redo Apply is not running on any instance. |
Logical standby |
ONLINE |
The logical standby database is open for read-only queries and SQL Apply is started. The logical standby database guard is on. If this is a RAC database, SQL Apply is running on one instance, the apply instance. If this instance fails, the broker automatically chooses another started instance. This new instance becomes the apply instance. This is the default state for a logical standby database when it is enabled for the first time. |
Logical standby |
LOG-APPLY-OFF |
The logical standby database is open for read-only queries, and SQL Apply is not running. The logical standby database guard is on. If this is a RAC database, there is no instance running SQL Apply until you change the database state to ONLINE. |
All |
OFFLINE |
When you set the state of a standby database to OFFLINE, the broker automatically shuts down the database, turns off redo transport services to this database, and leaves the database as disabled in the broker configuration. The broker will not manage this database until you restart the database. When you set the state of a primary database to OFFLINE, the broker automatically shuts down the database. The primary database is not available, and the broker is no longer managing the entire Data Guard configuration. You need to restart the database to resume broker control. If this is a RAC database, all started instances are shutdown. |
ArchiveLagTarget = '0'
DGMGRL> EDIT DATABASE 'North_Sales' SET PROPERTY 'ArchiveLagTarget'=1200;
Property "ArchiveLagTarget" updated
DGMGRL> SHOW DATABASE 'North_Sales' 'ArchiveLagTarget';
ArchiveLagTarget = '1200'
AlternateLocation
Binding
Dependency
LogShipping
LogXptMode
MaxFailure
NetTimeout
ReopenSecs
DGMGRL> EDIT DATABASE 'dg2' SET PROPERTY 'LogXptMode'='SYNC';
DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXAVAILABILITY;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26239116/viewspace-749142/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 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
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- [20221111]19c配置Data Guard Broker問題.txt
- 使用Broker管理Data Guard——停用、改保護模式等模式
- [20201110]How to get the Data Guard broker configuration from a SQL query.txtSQL
- [20221111]19c配置Data Guard Broker問題2.txt
- 面向官方文件學習Pytoch
- 從官方文件去學習之FreeMarker
- 前端學習-Dart官方文件學習-003-模式匹配前端Dart模式
- Oracle Data Guard簡介Oracle
- 單機搭建Data Guard
- 【DG】Data Guard搭建(physical standby)
- 1 關於 Oracle Data GuardOracle
- 2 Oracle Data Guard 安裝Oracle
- bd_ticket_guard_client_dataclient
- Libev 官方文件學習筆記 – 03:常用 watcher 介面筆記
- Libevent 官方文件學習筆記(2. bufferevent部分)筆記
- 9 Oracle Data Guard 故障診斷Oracle
- Bd-Ticket-Guard-Client-Data逆向client
- Spring框架學習筆記(一):官方文件介紹,IoC與AOP概念學習Spring框架筆記
- 跟著 React 官方文件學 HooksReactHook
- Spring框架學習筆記(二):官方文件Core Technologies – Part 1Spring框架筆記
- oracle 11g data guard維護Oracle
- 4.1.6 Oracle Restart 與 Oracle Data Guard 整合OracleREST
- 2 開始實用 Oracle Data GuardOracle
- 19 Oracle Data Guard 相關檢視Oracle
- 6 Oracle Data Guard Protection Modes 保護模式Oracle模式
- 【DG】Data Guard主備庫Failove切換AI
- 【DG】Data Guard主備庫Switchover切換
- 15 Oracle Data Guard Scenarios 保護場景OracleiOS
- Django官方文件Django
- nmap官方文件
- Oracle 12.2 How to Generate AWRs in Active Data Guard Standby DatabasesOracleDatabase
- Oracle Data Guard Feature 12cR2系列(二)Oracle