title: Connecting to Oracle DB using Ruby
body: <p>I am stuck with connecting to Oracle DB, have read lots of stuff but no help on result.<br>
  I have remote Oracle DB, I am connecting to it using DBVisualizer setting connection like this:</p>
  
  <pre><code>DB Type : Oracle
  Driver (jdbc) : Oracle thin
  Database URL: jdbc:oracle:thin:@10.10.100.10:1521/VVV.LOCALDOMAIN
  UserIdf: SomeUser
  Pass: SomePass
  </code></pre>
  
  <p>Connection works ok.</p>
  
  <p>What I do in Ruby is :</p>
  
  <pre><code>require 'oci8'
  require 'dbi'
  ...
  
  conn = OCI8.new('SomeUser','SomePass','//10.10.100.10:1521/VVV.LOCALDOMAIN')
  ...
  </code></pre>
  
  <p>What I get is:</p>
  
  <pre><code>ORA-12545: Connect failed because target host or object does not exist
  oci8.c:360:in oci8lib.so
  </code></pre>