title: JDBC Thin connection string in Oracle uses both colon and forward slash
body: <p>I wanted to know can we use both colon and forward slash with SID in making the connection URL in Oracle?</p>
  
  <p>e.g. </p>
  
  <pre><code>jdbc:oracle:thin:@&lt;host&gt;:1521:&lt;SID&gt;
  jdbc:oracle:thin:@&lt;host&gt;:1521/&lt;SID&gt;
  </code></pre>
  
  <p>Will these two are same and will work?</p>
  
  <p>I am building an application which will work with both Oracle RAC and non RAC environments and RAC environments supports <strong>SERVICE NAME</strong> with <code>forward slash</code> so wanted to check will <code>non RAC</code> environment support <code>forward slash</code> .</p>
  
  <p>For <code>RAC</code> environment URL is like this</p>
  
  <pre><code>jdbc:oracle:thin:@&lt;host&gt;:1521/&lt;SERVICENAME&gt;
  </code></pre>
  
  <p><strong>Update</strong> 
  This is different question because i want to ask is it possible to use both (<code>:</code> and <code>/</code> while using <code>&lt;SID&gt;</code> in the connection String which we call as <code>OracleJDBCUrl</code> .</p>