Oracle connection issue with perl DBI



Folks,

I am facing a funny but troubling issue with Perl DBI & Oracle.
When my shell environment does not have ORACLE_HOME path set, my script
works fine. I am connecting
to Oracle DB like this:

#!/usr/bin/perl -w
use strict;
use DBI;
my $dbh = DBI->connect("dbi:Oracle:host=xx.gold.com;port=1522;sid=sid",
$eusr, $epas,{RaiseError => 1, AutoCommit => 1})
die "Can not connect : $DBI->errstr ";

Now,
set the ORACLE_PATH to /opt/bin/oracle/9.2.0.8
and I do try to connect but it complains that it can not connect.
-Kumar R


Relevant Pages

  • Re: cant load library that exists (Oracle.sl)
    ... used perl or Oracle or perl DBI in quite a while, ... failover machine (note that you need at least the Oracle client ... We have a HP cluster that has per, perl DBI, and oracle. ...
    (perl.dbi.users)
  • Re: Perl DBI and DBD::ODBC for Oracle on Windows
    ... You may want to read up on some oracle basic before continueing to save yourself additional hassle if you have no oracle knowledge. ... Subject: Perl DBI and DBD::ODBC for Oracle on Windows ... I've been trying to connect to a remote Oracle database through Windows ...
    (perl.dbi.users)
  • Re: 10g Bind peeking causes multiple cursors for same query with perl DBD::Oracle
    ... Don't use Perl DBI with Oracle. ... New data types and features like direct load or evven array interface ...
    (comp.databases.oracle.server)
  • RE: Oracle/DBI
    ... Before installing Oracle client, I was able to connect to Oracle server. ... But I want to run both Oracle client and Perl DBI. ...
    (perl.dbi.users)
  • Problem retrieving Number Data (Oracle)
    ... While I have some experience with the perl DBI, Oracle is new to me and ... I get the raw binary back from the oracle sever ... ... if someone has a good functioning shell script running sqlplus from ...
    (perl.dbi.users)