Just a quick note, to mention something that I just recently discovered. (Yes, this has been available since at least Oracle 10.1, but I wasn’t aware of it!)
When composing a JDBC thin client connect URL, we have been using something of the form:jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOSTNAME=myhost.my.domain)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=mydb)))
This is fine, but if you have a mix of Oracle OCI clients and JDBC thin clients, and if the OCI clients are all configured to use an LDAP server for Net Service Name resolution, then, whenever you make any kind of reconfiguration, you need to update the LDAP server, and then still need to update the hardcoded connection information in the JDBC Thin URL.
However, what i recently discovered, is that it’s possible to define your JDBC Thin URL, thus: