All Apps and Add-ons

Splunk DB Connect 1.1.4: How to make a secure connection to Oracle databases with SSL and certificates?

abhijitmishra87
Explorer

We have successfully connected to several Oracle databases from our DBConnect app on a heavy forwarder. Now we would want to connect to the databases which have a secure listener. I would like to know how can I enable secure connections to the databases ? Where and which configuration files do we have to touch to configure the certificates and ssl ? We are currently using DBX version 1.1.4, but if the task of connecting to Oracle databases securely is better achieved with higher/other versions, we will not have problems upgrading.

0 Karma
1 Solution

splunkIT
Splunk Employee
Splunk Employee

For DB Connect v2, this custom db connection type might work:

## db_connection_types.conf 
[oraclessl] 
displayName = Oracle SSL 
serviceClass = com.splunk.dbx2.OracleJDBC 
jdbcDriverClass = oracle.jdbc.OracleDriver 
jdbcUrlFormat = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=<host>)(PORT=<port>))(CONNECT_DATA=(SERVICE_NAME=<database>))) 
testQuery = SELECT 1 FROM DUAL 

View solution in original post

splunkIT
Splunk Employee
Splunk Employee

For DB Connect v2, this custom db connection type might work:

## db_connection_types.conf 
[oraclessl] 
displayName = Oracle SSL 
serviceClass = com.splunk.dbx2.OracleJDBC 
jdbcDriverClass = oracle.jdbc.OracleDriver 
jdbcUrlFormat = jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=<host>)(PORT=<port>))(CONNECT_DATA=(SERVICE_NAME=<database>))) 
testQuery = SELECT 1 FROM DUAL 

pmdba
Builder

By default DBX uses JDBC Thin connections, which do not support SSL. To do what you want would require that you be using Oracle Database Enterprise Edition with the Advanced Security Option. You would need to install a full Oracle client on the heavy forwarder and configure it to connect to the database with SSL, then configure DBX to use a JDBC Thick connection through the Oracle client. If you are not running Oracle Enterprise Edition with the Advanced Security Option then there is no way to use SSL.

abhijitmishra87
Explorer

I notice that in DBConnect 2.x, there is a new configuration stanza which seems general. Have you worked with this ?
Though, I still haven't found a way to connect my certificates.

jdbcUseSSL = true | false

  • optional

  • default is false, whether this type of connection will support SSL connection.

0 Karma

splunkIT
Splunk Employee
Splunk Employee

Just FYI, Oracle SSL is listed as not supported under our supported
database matrix:

http://docs.splunk.com/Documentation/DBX/2.0.4/DeployDBX/Supporteddatabases

There is already an enhancement request (DBX-496) filed for supporting Oracle SSL connection.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...