U
user
Hi all,
I am using DBI to connect to an Oracle database.
The following is the simple code to test for the connection :
use strict;
use warnings;
use DBI ;
my $dbh;
$dbh = DBI->connect('dbi:Oracle:',"APPS","APPS") or die ("Cannot get
handle to db");
print $dbh . "\n" ;
I have set all the environment variables (TWO_TASK, TNS_ADMIN, ORACLE_HOME).
The above works fine with perl 5.6.1, but exits with the following on
perl 5.8 :
sh-2.05$ /local/perl5.8/bin/perl test1.pl
DBI->connect() failed: (UNKNOWN OCI STATUS 1804) OCIInitialize. Check
ORACLE_HOME and NLS settings etc. at test1.pl line 14
Cannot get handle to db at test1.pl line 14.
sh-2.05$
Please let me know what I am doing wrong ....
Thanks and regards
Abhinav
I am using DBI to connect to an Oracle database.
The following is the simple code to test for the connection :
use strict;
use warnings;
use DBI ;
my $dbh;
$dbh = DBI->connect('dbi:Oracle:',"APPS","APPS") or die ("Cannot get
handle to db");
print $dbh . "\n" ;
I have set all the environment variables (TWO_TASK, TNS_ADMIN, ORACLE_HOME).
The above works fine with perl 5.6.1, but exits with the following on
perl 5.8 :
sh-2.05$ /local/perl5.8/bin/perl test1.pl
DBI->connect() failed: (UNKNOWN OCI STATUS 1804) OCIInitialize. Check
ORACLE_HOME and NLS settings etc. at test1.pl line 14
Cannot get handle to db at test1.pl line 14.
sh-2.05$
Please let me know what I am doing wrong ....
Thanks and regards
Abhinav