11g 配置 dgmgrl 以及报错 DataGuard ORA-00313,
1参考
https://gavinsoorma.com/2010/03/11g-data-guard-broker-dgmgrl-configuration-quick-steps/
This note describes the commands used to create a Data Guard broker configuration using the command line dgmgrl interface. This can also be done via the Enterprise Manager Grid Control GUI as well and the assumption is that there is a Physical Standby database in place and redo transport and redo apply have already been configured and that both the Primary and Standby database are in sync.
Primary Database: genoa1_js
Standby Database: genoa1_fc
On both Primary as well as Standby database start the Data Guard Broker process
SQL> ALTER SYSTEM SET DG_BROKER_START=TRUE SCOPE=BOTH;System altered.
Edit the listener.ora on both nodes to add a static entry for DGMGRL
This is to prevent the ORA-12154 error which can be observed on startup of the standby database after performing a switchover.
Ensure that the GLOBAL_DBNAME is set to db_unique_name_DGMGRL.db_domain
SID_LIST_LISTENER =(SID_LIST =(SID_DESC =(GLOBAL_DBNAME = genoa1_js_dgmgrl)(ORACLE_HOME = /u01/oracle/product/11.1.0/db_1)(SID_NAME = genoa1)) )
Create the configuration
genoa1:/u01/oracle> dgmgrl DGMGRL for IBM/AIX RISC System/6000: Version 11.1.0.7.0 - 64bit ProductionCopyright (c) 2000, 2005, Oracle. All rights reserved.Welcome to DGMGRL, type "help" for information. DGMGRL> connect sys/xxxx Connected. DGMGRL> CREATE CONFIGURATION 'GenesisDR' > AS > PRIMARY DATABASE IS 'genoa1_js' > CONNECT IDENTIFIER IS 'genoa1_js' > ; Configuration "GenesisDR" created with primary database "genoa1_js"
Add the Standby database to the configuration
DGMGRL> ADD DATABASE > 'genoa1_fc' > AS > CONNECT IDENTIFIER IS 'genoa1_fc' > ; Database "genoa1_fc" addedDGMGRL> SHOW CONFIGURATIONConfigurationName: GenesisDREnabled: NOProtection Mode: MaxAvailabilityDatabases:genoa1_js - Primary databasegenoa1_fc - Physical standby databaseFast-Start Failover: DISABLEDCurrent status for "GenesisDR": DISABLED
Enable the configuration
DGMGRL> ENABLE CONFIGURATION Enabled.DGMGRL> SHOW CONFIGURATIONConfigurationName: GenesisDREnabled: YESProtection Mode: MaxAvailabilityDatabases:genoa1_js - Primary databasegenoa1_fc - Physical standby databaseFast-Start Failover: DISABLEDCurrent status for "GenesisDR": SUCCESS
View the Standby and Primary database properties
DGMGRL> show database genoa1_jsDatabaseName: genoa1_jsRole: PRIMARYEnabled: YESIntended State: TRANSPORT-ONInstance(s):genoa1Current status for "genoa1_js": SUCCESSDGMGRL> show database genoa1_fcDatabaseName: genoa1_fcRole: PHYSICAL STANDBYEnabled: YESIntended State: APPLY-ONInstance(s):genoa1Current status for "genoa1_fc": SUCCESSDGMGRL> show database verbose genoa1_fcDatabaseName: genoa1_fcRole: PHYSICAL STANDBYEnabled: YESIntended State: APPLY-ONInstance(s):genoa1Properties:DGConnectIdentifier = 'genoa1_fc'ObserverConnectIdentifier = ''LogXptMode = 'SYNC'DelayMins = '0'Binding = 'OPTIONAL'MaxFailure = '0'MaxConnections = '1'ReopenSecs = '300'NetTimeout = '30'RedoCompression = 'DISABLE'LogShipping = 'ON'PreferredApplyInstance = ''ApplyInstanceTimeout = '0'ApplyParallel = 'AUTO'StandbyFileManagement = 'AUTO'ArchiveLagTarget = '0'LogArchiveMaxProcesses = '4'LogArchiveMinSucceedDest = '1'DbFileNameConvert = ''LogFileNameConvert = ''FastStartFailoverTarget = ''StatusReport = '(monitor)'InconsistentProperties = '(monitor)'InconsistentLogXptProps = '(monitor)'SendQEntries = '(monitor)'LogXptStatus = '(monitor)'RecvQEntries = '(monitor)'HostName = 'drou037'SidName = 'genoa1'StaticConnectIdentifier = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=drou037)
(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=genoa1_fc_DGMGRL)(INSTANCE_NAME=genoa1)(SERVER=DEDICATED)))' StandbyArchiveLocation = 'USE_DB_RECOVERY_FILE_DEST' AlternateLocation = '' LogArchiveTrace = '0' LogArchiveFormat = '%t_%s_%r.dbf' LatestLog = '(monitor)' TopWaitEvents = '(monitor)' Current status for "genoa1_fc": SUCCESS
Change the properties of a configured databaase
DGMGRL> EDIT DATABASE 'genoa1_js' SET PROPERTY 'LogXptMode'='SYNC'; Property "LogXptMode" updated
Performing a switchover
Note: In this case, currently the Primary Database is genoa1_fc and the Standby database is genoa1_js.
DGMGRL> switchover to 'genoa1_js' Performing switchover NOW, please wait... New primary database "genoa1_js" is opening... Operation requires shutdown of instance "genoa1" on database "genoa1_fc" Shutting down instance "genoa1"... ORA-01109: database not openDatabase dismounted. ORACLE instance shut down. Operation requires startup of instance "genoa1" on database "genoa1_fc" Starting instance "genoa1"... ORACLE instance started. Database mounted. Switchover succeeded, new primary is "genoa1_js"DGMGRL> SHOW CONFIGURATION;ConfigurationName: GenesisDREnabled: YESProtection Mode: MaxAvailabilityDatabases:genoa1_js - Primary databasegenoa1_fc - Physical standby databaseFast-Start Failover: DISABLEDCurrent status for "GenesisDR": SUCCESS
Monitoring the Data Guard Broker Configuration
If we receive any error or warnings we cab obtain more information about the same ny running the commands as shown below. In this case there is no output seen because currently we are not experiencing any errors or warning.
DGMGRL> show database genoa1_js statusreport STATUS REPORTINSTANCE_NAME SEVERITY ERROR_TEXTDGMGRL> show database genoa1_js logxptstatus LOG TRANSPORT STATUS PRIMARY_INSTANCE_NAME STANDBY_DATABASE_NAME STATUSgenoa1 genoa1_fcDGMGRL> show database genoa1_js InconsistentProperties INCONSISTENT PROPERTIESINSTANCE_NAME PROPERTY_NAME MEMORY_VALUE SPFILE_VALUE BROKER_VALUE 2.
分类: Linux
2011-09-09 21:07:38
.###########3
-> ORA-16857: standby disconnected from redo source for longer than specified threshold
Error code: ORA-16857
Description: standby disconnected from redo source for longer than specified threshold
Cause:
The amount of time the standby was disconnected from the redo source database exceeded the value specified by the 'TransportDisconnectedThreshold' database property. It is caused by no network connectivity between the redo source and the standby databases.
Action:
Ensure that there is network connectivity between the redo source and standby databases, and the redo source is working properly.
The above error is just a warning message and not actually a problem with the standby database. The error is received when the last communication from the primary database exceeds the value specified by 'TransportDisconnectedThreshold' property. The value is in seconds. Default value is 30 seconds
SOLUTION - Setting 'TransportDisconnectedThreshold' to 0 seconds will disable the alert. Alternatively we can set the property to a higher value.
-> issue has to do with network between primary and standby DB site.
probably your network latency is very bad OR intermittent failures occurs on your network.
a workaround is to increase TransportDisconnectedThreshold database property:
DGMGRL> EDIT DATABASE testfo SET PROPERTY TransportDisconnectedThreshold='120';
转载于:https://www.cnblogs.com/feiyun8616/p/8920637.html
11g 配置 dgmgrl 以及报错 DataGuard ORA-00313,相关推荐
- Oracle 11G R2 RAC 启动报错:ORA-01078 ORA-01565 ORA-17503 ORA-12547 处理方法
Oracle 11G R2 RAC 启动报错:ORA-01078 ORA-01565 ORA-17503 ORA-12547 处理方法 前几天搭建的RAC测试环境:RedHat 6.8 grid ...
- mysql逻辑删除的区别_不能和逻辑删除一起配置,不然报错。
源自:8-1 SQL注入器简介及自定义方法实现 不能和逻辑删除一起配置,不然报错. 逻辑删除的配置:@Bean public ISqlInjector sqlInjector(){ return ne ...
- oracle批量插入报错,[数据库]Mybatis 批量插入数据 关于Oracle 批量插入报错:ORA
[数据库]Mybatis 批量插入数据 关于Oracle 批量插入报错:ORA 0 2020-08-19 08:00:06 Mybatis 批量插入数据 关于Oracle 批量插入报错:ORA-009 ...
- 更改yum源配置后执行报错[Errno 14] PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found”
更改yum源配置后执行报错 报错信息入下 //[root@bucktanc6 yum.repos.d]# yum clean all Loaded plugins: fastestmirror Cle ...
- php永久mediaid,幺蛾子事件之-zabbix配置告警媒介报错mediaid重复
幺蛾子事件之-zabbix配置告警媒介报错mediaid重复 admin • 2020 年 12 月 21 日 直接开篇点题好吧zabbix运行一段时间后,添加报警媒介类型后,添加收件人信息后保存报错 ...
- springboot配置日志文件报错:
前言 springboot配置日志文件报错: 错误信息如下: ERROR in ch.qos.logback.core.joran.spi.Interpreter@3:65 - no applicab ...
- unplugin-auto-import的配置和eslint报错解决
unplugin-auto-import的配置和eslint报错解决 先上官网:unplugin-auto-import unplugin-auto-import 解决了vue3-hook.vue-r ...
- kvm linux 网络不稳定,kvm 虚拟机网络配置有时会报错问题
kvm 虚拟机网络配置有时会报错问题 添加网卡 解决办法: 添加网卡修改宿主机的配置文件 1.修改如下: #virsh edit cent02 网卡的配置文件段为 添加网卡则照着上述格式写入cent0 ...
- 为了转行程序员而努力的第四十五天-二叉树,centOS联网,阿里云源配置yum makecache报错
今天在配置上花的时间太多,主要怕进行到一半,明天就要从头开始,以至于都没有太多时间总结了,锻炼的时间也被挤掉了,争取明天早起来补上.就不多感慨了,直接进入正题. 今日进度: 1.坚持刷题,坚持听网课, ...
最新文章
- MATLAB2013a的license过期的解决办法
- ArrayList的实现及原理
- C++中Delete时堆错误(Heap Corruption)的原因
- Andorid Binder进程间通信---总结
- html 实时预览在线,用HTML+CSS做一个实时预览的markdown编辑器
- 分享一下10个常用jquery片段
- 【图像融合】基于matlab GUI简单+拉普拉斯金字塔算法图像融合【含Matlab源码 780期】
- 让一个.sh文件一直运行_想做AI鉴黄工具?这有一个内含20多万张“不可描述”图片的数据集...
- U盘格式化后恢复,DiskGenius 4.9.6 海外注册版
- 基于SSM企业人事管理系统.doc
- 必备效率:一个让你不再加班的小白编程课
- 对小波变换中DWT和CWT的理解
- 文成小盆友python-num14 - web 前端基础 html ,css, JavaScript
- 正大国际期货:做期货主帐户有什么风险?
- Minecraft 1.16.5模组开发(三十) 自定义成就系统(advancements)
- 地图可视化工具有哪些,基于地图的数据可视化软件
- Winform打包工具SetupFactory 9 的使用
- 护眼宝_双显示屏_失效_win10护眼宝失效_护眼宝不能调节
- 2022电大国家开放大学网上形考任务-内科护理学(本)非免费(非答案)
- 客户机和虚拟机复制粘贴,即在VMware中安装VMware Tools问题解决