`
hunxiejun
  • 浏览: 1145297 次
文章分类
社区版块
存档分类
最新评论

Failover Connections for Data Guard Error with ORA-1033 [ID 461874.1]

 
阅读更多

Failover Connections for Data Guard Error with ORA-1033 [ID 461874.1]


Modified 28-SEP-2010Type PROBLEMStatus PUBLISHED

In this Document
Symptoms
Cause
Solution


Applies to:

Oracle Net Services - Version: 9.2.0.1.0 to 10.2.0.1.0 - Release: 9.2 to 10.2
Information in this document applies to any platform.

Symptoms

Connections indata guard environment fail withORA-01033: ORACLE initialization or shutdown in progress.

Oracle Net client trace shows after successful connection handshake

[27-SEP-200711:34:18:104]nsprecv:0000394F52412D30|..9ORA-0|
[27-SEP-200711:34:18:104]nsprecv:313033333A204F52|1033:.OR|
[27-SEP-200711:34:18:104]nsprecv:41434C4520696E69|ACLE.ini|
[27-SEP-200711:34:18:104]nsprecv:7469616C697A6174|tializat|
[27-SEP-200711:34:18:104]nsprecv:696F6E206F722073|ion.or.s|
[27-SEP-200711:34:18:104]nsprecv:687574646F776E20|hutdown.|
[27-SEP-200711:34:18:104]nsprecv:696E2070726F6772|in.progr|
[27-SEP-200711:34:18:104]nsprecv:6573730A|ess.|

Net service name has LOAD_BALANCE set in description section

(DESCRIPTION=
(LOAD_BALANCE=yes)
(ADDRESS=(PROTOCOL=TCP)(HOST=NodeA)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=NodeB)(PORT=1521))

Or has two description sections

(DESCRIPTION_LIST=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(Host=NodeA)(Port=1521))
(CONNECT_DATA=
(SERVICE_NAME=ORCL1)
)
)
(DESCRIPTION=
(ADDRESS=(PROTOCOL=TCP)(Host=NodeB)(Port=1521))
(CONNECT_DATA=
(SERVICE_NAME=ORCL2)

Cause

Error ORA-1033 is expected for connections when they attempt to connect to standby instance, because it is mounted and not open.

When LOAD_BALANCE is set, connections can load balance between the addresses in the net service name.

When there are two description sections in a net service name, Oracle Net will load balancebetweenthem.

Solution

Example is for service called failover

1. Setup the net service name, ensuring LOAD_BALANCE is not used and one has one description section.

DGtest=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=TCP)(HOST=NodeA)(PORT=1521))
(ADDRESS=(PROTOCOL=TCP)(HOST=NodeB)(PORT=1521))
)
(CONNECT_DATA=
(SERVICE_NAME=failover)
(SERVER=DEDICATED)
(FAILOVER_MODE=
(TYPE=session)
(METHOD=BASIC)
(RETRIES=180)
(DELAY=5)
)
)
)
)

2. Create and startservice

SQL>execDBMS_SERVICE.CREATE_SERVICE(service_name=>'failover',network_name=>'failover',aq_ha_notifications=>true,failover_method=>'BASIC',failover_type=>'SELECT',failover_retries=>180,failover_delay=>1);

PL/SQLproceduresuccessfullycompleted.


SQL>exec dbms_service.start_service('failover');

PL/SQL procedure successfully completed.

3.Create a database trigger to ensure the service name is always the same, no matter which node's instance is the primary.

sqlplus / as sysdba

SQL>CREATEORREPLACETRIGGERmanage_OCIservice
afterstartupondatabase
DECLARE
roleVARCHAR(30);
BEGIN
SELECTDATABASE_ROLEINTOroleFROMV$DATABASE;
IFrole='PRIMARY'THEN
DBMS_SERVICE.START_SERVICE('failover');
ELSE
DBMS_SERVICE.STOP_SERVICE('failover');
ENDIF;
END;

PL/SQLproceduresuccessfullycompleted.

4. Ensure the change is made on the standby with command.

SQL>Alter system archive log current ;

5. Listener service command lsnrctl services on primary will then show

Service"failover"has1instance(s).
Instance"tom1",statusREADY,has1handler(s)forthisservice...
Handler(s):
"DEDICATED"established:0refused:0state:ready
LOCALSERVER


This method ensures the service failover is only available on the primary node.The net service name DGtest works through the addresses in the address_list section, in order. If NodeA is the standby, then Node B will have the service failover and the connection will attempt to connect.

Moreinformation on Dataguard setup can be found in following articles:
Note 316740.1How to configure to let TAF work after Data Guard Switchover or Failover

http://www.oracle.com/technology/deploy/availability/htdocs/maa.htm
http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_ClientFailoverBestPractices.pdf

------------------------------------------------------------------------------

Blog http://blog.csdn.net/tianlesoftware

网上资源: http://tianlesoftware.download.csdn.net

相关视频:http://blog.csdn.net/tianlesoftware/archive/2009/11/27/4886500.aspx

DBA1 群:62697716(); DBA2 群:62697977()

DBA3 群:62697850 DBA 超级群:63306533;

聊天 群:40132017

--加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请

分享到:
评论

相关推荐

    keepalived-2.1.5-1.el8.x86_64.rpm

    Keepalive服务的两大用途:healthcheck和failover ha failover功能:实现LB Master主机和Backup主机之间故障转移和自动切换 这是针对有两个负载均衡器Direator同时工作而采取的故障转移措施,当主负载均衡器失效...

    apache-flume-1.8.0-bin.tar

    Flume NG 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume NG支持(故障转移)failover和负载均衡。

    keepalived-2.2.2-1.el8.x86_64.rpm

    keepalived 最新版编译打包20210619 keepalived-2.2.2-1.el8.x86_64 包含SSL与IPV6支持 操作系统CENTOS8.4 Keepalive服务的两大用途:healthcheck和failover ha failover功能:实现LB Master主机和Backup主机之间...

    apache-flume-1.6.0-bin.tar

    Flume 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume NG支持(故障转移)failover和负载均衡。

    Hyper-V.for.VMware.Administrators

    Approach Hyper-V with confidence, and the knowledge that you've planned for success, with Hyper-V for VMware Administrators. What you’ll learn Find out how Hyper-V compares to VMware's vSphere, and ...

    apache-flume-1.7.0-bin.tar

    Flume 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume NG支持(故障转移)failover和负载均衡。

    Real-time.Analytics.with.Storm.and.Cassandra.1784395498

    This book will teach you how to use Storm for real-time data processing and to make your applications highly available with no downtime using Cassandra. The book starts off with the basics of Storm ...

    flume-0.9.4-cdh3u5.tar.gz

    很古老的软件了,近乎绝版的flume-ngFlume NG是一个分布式,高可用,可靠的系统,它能将不同的海量数据收集,移动并...轻量,配置简单,适用于各种日志收集,并支持 Failover和负载均衡。并且它拥有非常丰富的组件。

    开源项目-nanopack-yoke.zip

    开源项目-nanopack-yoke.zip,Postgres high-availability cluster manager with auto failover and recovery, written in Golang

    redis-desktop-manager-2019.0.0.zip

    集群管理:支持节点Forget、Replicate Of、Failover、Move Slot、Start、Stop、Restart、Delete、修改配置等功能 集群告警:支持 Memory、Clients 等指标(同监控指标),支持邮件、企业微信APP、企业微信Webhook、...

    failover-manager-master.zip_failover

    Redis 连接管理器, 防灾难, 实现故障重连.

    DataGuard(DG)

    (八.1)物理dg配置客户端无缝切换--Data Guard Broker 的配置 (八.2)物理dg配置客户端无缝切换--Fast-Start Failover 的配置 (八.3)物理dg配置客户端无缝切换 --客户端TAF 配置 (八.4)物理dg配置客户端无缝切换 --ora...

    Oracle的Node.js驱动node-oracledb.zip

     "SELECT department_id, department_name "  "FROM departments "  "WHERE department_id = :did",  [180],  function(err, result)  {  if (err) {  console.error(err.message);  ...

    官方资料:[英文]Oracle Data Guard Concepts and Administration 11g(11.2).pdf

    Data Guard Configurations,Primary Database,Standby Databases,...Using the Data Guard Command-Line Interface,Data Guard Protection Modes,Client Failover.,Data Guard and Complementary Technologies,

    Redis 3.0 中文版 - v1.1.pdf

    第 1 章Redis 介绍. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 第 2 章数据类型初探. . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

    Redis-7.0.13-Windows-x64-with-Service

    Upgrade urgency SECURITY: See security fixes below. ...subsequent failover or node joining (redis/redis#12344) Ensure that the function load timeout is disabled during loading from RDB/AOF and on repli

    redis-manager-master.zip

    可实时查看 Redis Info、Redis Config 和 Slow Log,支持 Docker、Machine、Humpback方式,集群管理:支持节点Forget、Replicate Of、Failover、Move Slot、Start、Stop、Restart、Delete、修改配置等功能,集群告警...

    DOS下用的GHOST 11.0.2.1573 版本(很好用的哦)

    Time elapsed.......1:01 Time remaining.....8:57 Program Call Stack AbortLog Generic_Abort ReadDiskSectorsNoOverlayTranslation ReadDiskSectors FatReadPartSectors ReadFATsector GetFATsectorOut ...

    apache-flume-1.7.0-src.tar

    Flume 是Cloudera提供的分布式数据收集系统,它能够将不同数据源的海量日志数据进行高效的收集、聚合、移动,最后存储到存储中心。Flume支持(故障转移)failover和负载均衡。

    redis-monitor-master.zip

    大家还在愁JVM,CPU等监控无门吗?对于分布式环境怎么样监控呢?,小型机器人替你搞定一切!redis-monitor 是一个nredis-proxy 的小型机器人,可以监控redisServer,nredis-proxy,jvm ,cpu等;具有failover功能!

Global site tag (gtag.js) - Google Analytics