FAILOVER_TYPE and FAILOVER_METHOD Are Null When Connecting With JDBC Thin With FAILOVER_MODE
Last updated on MAY 12, 2017
Applies to:JDBC - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
JDBC thin client does not use failover configuration to connect to the database, and it is not failing over to available database instance when original instance is down.
The JDBC connection string used is:
Checking out gv$session, those connections from JDBC thin show failover_type => NULL and failover_method=>NULL, and they do not switch over to available instance.
JDBC connections are expected to fail over to available node.
The issue can be reproduced at will with the following steps:
1. Configure connection string as:
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(FAILOVER=on)(ADDRESS=(PROTOCOL=TCP)(HOST=<scan host>)(PORT=<port>))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=<service name>)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETRIES=5)(DELAY=180))))
2. Run connections.
3. Check out gv$session, those connections from JDBC thin -- failover_type => NULL and failover_method=>NULL
4. Bring one node down -- those connections do not switch over to available instance.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms