title: Perl script to connect oracle database
body: <p>I am new to Perl Programming and database connectivity. Can anyone please let me know step by step procedure to write Perl Script for Oracle Database connectivity.</p>
  
  <p>My Perl Verion is:</p>
  
  <blockquote>
    <p>This is perl 5, version 22, subversion 0 (v5.22.0) built for MSWin32-x64-multi-thread<br>
    Copyright 1987-2015, Larry Wall<br>
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.</p>
  </blockquote>
  
  <p>I have tried the below:</p>
  
  <pre><code>my $db = DBI-&gt;connect("dbi:Oracle:Local","SYSTEM","SYSTEM") or die print ("could not connect! $DBI::errstr \n");
  </code></pre>
  
  <p>Since I don't know what is this "dbi:Oracle:Local" I could not able to connect to Database.</p>
  
  <p>Can you please let me know what is dbi, Oracle, local. if it is Hostname and oracle database name, how can I find the same in my computer.</p>
  
  <p>Do I need to set any ENV variable in Perl?  If so, where and what I need to set?</p>