Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting up an encrypted jdbc thin connection

Brian.MuirMar 17 2016 — edited Mar 22 2016

Howdy folks,

Has anyone been able to get an encrypted JDBC thin connection setup with SQL Developer?

I'm using version 4.1.1.19 on a 12.1.0.2 database and I've tried to use the method mentioned in this post with no luck:

I set up everything in the database sqlnet.ora file, created a connection with connection type advanced and used this as my JDBC URL(names changed to protect the innocent databases):

Properties prop = new Properties();

prop.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_LEVEL,"REQUIRED");

prop.setProperty(OracleConnection.CONNECTION_PROPERTY_THIN_NET_ENCRYPTION_TYPES,"(AES128)");

OracleDataSource ods = new OracleDataSource(); ods.setProperties(prop); ods.setURL(jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=TEST-BOX)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TESTDB)(INSTANCE_NAME=TESTDB))));

Connection conn = ods.getConnection();

When I test the connection in SQL Developer I get the following error:

Status: Failure -Test failed: Invalid connection information specified. Verify the URL format for the specified driver.

Since I can't seem to add encryption properties to the JDBC URL and I can't seem to find a way to add encryption properties anywhere else in SQL Developer I'm kind of stuck.

This post has been answered by Gary Graham-Oracle on Mar 17 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2016
Added on Mar 17 2016
9 comments
4,507 views