DBI oracle connection ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS settings etc.)



Hi,
I am using using a perl script to connect to my oracle db with DBI.
It worked previously, then our DB admin updated oracle in some way, it
stopped working, anyway, it gave this msg on trace:

DBI 1.47-ithread default trace level set to 0x0/2 (pid 3237)
-> DBI->connect(dbi:Oracle:ABE, etop, ****, HASH(0x13b36c))
-> DBI->install_driver(Oracle) for solaris perl=5.008005 pid=3237
ruid=144203 euid=144203
install_driver: DBD::Oracle version 1.16 loaded from
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris-thread-multi/DBD/Oracle.pm
-> STORE in DBD::_::common for DBD::Oracle::dr
(DBI::dr=HASH(0x1ca75c)~0x3065dc 'ShowErrorStatement' 1) thr#229a0
<- STORE= 1 at Oracle.pm line 61
<- install_driver= DBI::dr=HASH(0x1ca75c)
-> connect for DBD::Oracle::dr (DBI::dr=HASH(0x1ca75c)~0x3065dc 'ABE'
'etop' **** HASH(0x3092ac)) thr#229a0
-> DESTROY for DBD::Oracle::db (DBI::db=HASH(0x3092a0)~INNER) thr#229a0
DESTROY for DBI::db=HASH(0x3092a0) ignored - handle not
initialised
ERROR: '-1' 'ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS
settings etc.)' (err#1)
<- DESTROY= undef at DBI.pm line 596
!! ERROR: '-1' 'ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS
settings etc.)' (err#0)
<- connect= undef at DBI.pm line 596
-> $DBI::errstr (&) FETCH from lasth=HASH
>> DBD::Oracle::dr::errstr
<- $DBI::errstr= 'ERROR OCIEnvNlsCreate (check ORACLE_HOME and NLS
settings etc.)'
DBI connect('ABE','etop',...) failed: ERROR OCIEnvNlsCreate (check
ORACLE_HOME and NLS settings etc.)
-- DBI::END
-> disconnect_all for DBD::Oracle::dr (DBI::dr=HASH(0x1ca75c)~0x3065dc)
thr#229a0
<- disconnect_all= (not implemented) at DBI.pm line 675
! -> DESTROY in DBD::_::common for DBD::Oracle::dr
(DBI::dr=HASH(0x3065dc)~INNER) thr#229a0
! <- DESTROY= undef during global destruction

my perl connection:

use DBI;
$ENV{'ORACLE_HOME'}="/usr/abeora";
$ENV{'ORACLE_SID'}="ABE";

unlink 'dbitrace.log' if -e 'dbitrace.log';

### Set trace output to a file at level 2 and prepare()
DBI->trace( 2, 'dbitrace.log' );

$dbh = DBI -> connect ('dbi:Oracle:ABE', $username, $passw,
{ RaiseError => 1,
AutoCommit => 0}
) || die "Database connection not made:
$DBI::errstr";
$sth = $dbh->prepare($_[0]);
$sth->execute();

ENV is also set in .cshrc in the shell. and I 've tried with without it
in the script etc, keep giving the same error.

So should I wait for my DB admin return from vacation to bug him or is
there something I missed obviously?
Thanks,

.



Relevant Pages

  • RE: oracle win2k ORA-1222 problems
    ... AS does not provide a package, but you can and should install both DBI and DBD::Oracle from ftp.esoftmatic.com. ... Oracle is listed as "failed" if I recall correctly. ... Data Source is DBI:Oracle:Space ...
    (perl.dbi.users)
  • RE: DBI problem
    ... I had Oracle 8 all along, I upgraded to ActiveState Perl 5.8.7 from ... DBD 1.16 and DBI 1.48. ... Did you install DBD::Oracle? ...
    (perl.dbi.users)
  • RE: (Fwd) DBD:: Oracle Problems
    ... The error is being thrown inside the pl/sql procedure itself not the DBI! ... Subject: DBD:: Oracle Problems ... are receiving the following error when we execute any stored procedures. ... This email has been scanned by the MessageLabs Email Security System. ...
    (perl.dbi.users)
  • Re: OCIEnvNlsCreate error with DBD::Oracle 1.21 and Oracle 10g client in Cygwin
    ... If not: you could reinstall DBI and DBD::Oracle and make sure that your Oracle environment is set correctly. ... If you have multiple Oracle installations: set your $ENVusing the ORACLE_HOME with which you compiled your DBD::Oracle. ... If you have multiple perl installations (with DBI, DBD::Oracle) you may have to set the correct path to perl (first line of your script). ...
    (perl.dbi.users)
  • RE: Unix: Oracle User Identified Externally
    ... Subject: Unix: Oracle User Identified Externally ... use DBI; ... intended recipient, please be aware that any disclosure, copying, distribution ... sender of the delivery error by replying to this message, or notify us by ...
    (perl.dbi.users)