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