I wanted to know if we can use the colon and slash with SID when creating the connection url in Oracle?
eg.
jdbc:oracle:thin:@<host>:1521:<SID> jdbc:oracle:thin:@<host>:1521/<SID>
Will these two be the same and work?
I am creating an application that will work with both Oracle RAC and non-RAC environments, and RAC environments support the SERVICE NAME forward slash , so you will need to check non RAC support for the forward slash environment.
For RAC environment URL is as follows
jdbc:oracle:thin:@<host>:1521/<SERVICENAME>
Update This is another question because I want to ask whether it is possible to use both ( : and / when using <SID> in the connection string, which we call OracleJDBCUrl .
oracle oracle11g jdbc
Deepak Jain May 10 '17 at 5:52 a.m. 2017-05-10 05:52
source share