I wanted to know can we use both colon and forward slash with SID in making the connection URL in Oracle?
e.g.
jdbc:oracle:thin:@:1521:
jdbc:oracle:thin:@:1521/
Will these two are same and will work?
I am building an application which will work with both Oracle RAC and non RAC environments and RAC environments supports SERVICE NAME with forward slash so wanted to check will non RAC environment support forward slash .
For RAC environment URL is like this
jdbc:oracle:thin:@:1521/
Update
This is different question because i want to ask is it possible to use both (: and / while using in the connection String which we call as OracleJDBCUrl .
解决方案
I was able to use both colon : and forward slash / for SID in connection URL and was able get the connection established.
I think in Oracle 11g we can do such thing and for Service Name only we can use is forward slash / .