Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect to SSL enabled Oracle database using SQL Developer

Tags:

I am trying to connect to Oracle database through SQL Developer. Our database is SSL enabled and runs with TCPS. In SQL Developer, I could not find any option where I can configure SSL parameters.

Does SQL developer support connecting to SSL enabled databases? If yes, how. I searched a lot about this, but could not find any relevant solution.

like image 476
Somnath Musib Avatar asked Nov 22 '17 04:11

Somnath Musib


1 Answers

Find sqldeveloper.conf and add lines

    AddVMOption -Djavax.net.ssl.trustStore=point to your keystore.jks with Oracle certificate
    AddVMOption -Djavax.net.ssl.trustStoreType=JKS
    AddVMOption -Djavax.net.ssl.trustStorePassword=your keystore password

In the developer use custom JDBC URL like

    jdbc:oracle:thin:@(description=(address=(protocol=tcps)(host=your dbhost)(port=2484))(connect_data=(service_name=your db_service)))
like image 153
Alexander Avatar answered Sep 19 '22 13:09

Alexander