There are 2 URL syntaxes, the old syntax that will only work with SID, and the new one with the name of the Oracle service.
Old syntax
jdbc:oracle:thin:@[HOST][:PORT]:SID
New syntax
jdbc:oracle:thin:@//[HOST][:PORT]/SERVICE
What is the correct JDBC URL syntax if using Oracle wallets ?
The following URL syntax should be used according to this article :
jdbc:oracle:thin:/@db_alias
But as I see, the following url works too:
jdbc:oracle:thin:@db_alias
Which of these syntaxes is correct?
Volodymyr bezuglyy
source share