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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...