All Apps and Add-ons

DB Connect and Oracle failover

bohrasaurabh
Communicator

I would like to configure the DB connect to do fail over logic for Oracle database. I was given the below two options to handle that. Is there a way to configure this? If not what could be the best option for me to query the active database.

JDBC string that handles the db failover logic:

jdbc:oracle:thin:@(description=(address_list=(load_balance=on)(failover=on)(address=(protocol=tcp)(host=1.2.3.4)(port=9999))(address=(protocol=tcp)(host=5.6.7.8)(port=9999)))(connect_data=(service_name=MYDB)(failover_mode=(type=select)(method=basic))))

.

.

TNS entry:

MYDB.dummy =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 9999))
(ADDRESS = (PROTOCOL = TCP)(HOST = 5.6.7.8)(PORT = 9999))
)
(CONNECT_DATA =
(SERVICE_NAME = MYDB))
)
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 5.6.7.8)(PORT = 9999))
(ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 9999))
)
(CONNECT_DATA =
(SERVICE_NAME = MYDB))
)
)

Tags (2)

ShaneNewman
Motivator

We connected Splunk to the virtual instance, this way it queries the active node.

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...