How to establish secure(SSL) connection to oracle database when using oracle.ucp.jdbc.PoolDataSource?

224 Views Asked by At

My application uses oracle.ucp.jdbc.PoolDataSource to connect to database. Able to connect to database with normal connection. How to establish secure SSL connection to oracle database?

3

There are 3 best solutions below

0
On

Can you review JDBC developer's guide for the instructions? You can also review this technical brief, it is old, but, you can still use it.

If you are using JKS or Oracle Wallets, you can also check out the videos on www.oracle.com/jdbc.

0
On

Just need to set PROTOCOL in connect string(url) to tcps and set truststore values in the command line.

0
On

Connection url should of the following format where we can mention protocol and port.

jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<server>)(PORT=1522))(CONNECT_DATA=(SERVER = DEDICATED)(SERVICE_NAME=<service name>)))