官方文件學習: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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Data Guard Broker系列之二:Data Guard Broker配置實戰
- Oracle Data Guard Broker and Static Service Registration (文件 ID 1387859.1)Oracle
- 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的三種保護模式(摘自官方文件)模式
- 【DATAGUARD】Oracle19c Data Guard BrokerOracle
- A Oracle Data Guard Broker 升級和降級Oracle
- 使用Data Guard Broker進行Data Guard物理備用庫配置(Oracle 19c)Oracle
- [Data Guard]Oracle10g Data Guard學習筆記(一)Oracle筆記
- [Data Guard]Oracle10g Data Guard學習筆記(二)Oracle筆記
- [Data Guard]Oracle10g Data Guard學習筆記(三)Oracle筆記
- Data Guard Broker系列之四:資料庫管理資料庫
- 【DataGuard】部署Data Guard相關引數詳解 - Oracle官方文件描述Oracle
- 【DG】Oracle Data Guard官方直譯Oracle
- 使用Broker管理Data Guard——停用、改保護模式等模式
- Data Guard Broker High Availability (Doc ID 275977.1)AI
- Data Guard Broker系列之六:Fast-Start FailoverASTAI
- Data Guard broker系列之五:資料庫角色轉換資料庫
- Data Guard 學習之引數設定
- 面向官方文件學習Pytoch
- Data Guard學習之物理standby建立步驟
- Data Guard配置Broker解決ORA-16664、ORA-16792
- 前端學習-Dart官方文件學習-003-模式匹配前端Dart模式
- 從官方文件去學習之FreeMarker
- kafka官方文件學習筆記2–QuickStartKafka筆記UI
- 官方文件學習:RAC刪除節點
- oracle 10g data guard broker ORA-16607 故障處理案例Oracle 10g
- DATA GUARD部署模式——DATA GUARD概念和管理模式
- Spring Framework 官方文件學習(一)介紹SpringFramework
- 介紹ORACLE DATA GUARD——DATA GUARD概念和管理Oracle
- Data guard搭建
- oracle data guard!!Oracle
- 【DATAGUARD】物理dg配置客戶端無縫切換 (八.1)--Data Guard Broker 的配置客戶端
- 盛哥學習 Data Guard 第一篇《先了解大概》
- DATA GUARD 簡介