RE: DBI DBD-Oracle connection failure woth ORA-12705



SOLVED Thanks Ron,

I have another oracle home for Oracle9ias . NLS_LANG was set right in
The database oracle_home, but set as NA in the IAS home.

I have set an environment variable NLS_LANG so that all homes will pick it
up.

The connect now works. I am just puzzled as to why
DBI and DBD-Oracle in previous versions worked, then did not work
When I updated them. Which Oracle home was it looking at?

Anyway thanks again

Gavin


-----Original Message-----
From: Reidy, Ron [mailto:Ron.Reidy@xxxxxxxxxxxxxxxxxx]
Sent: 26 August 2005 14:45
To: Gavin W; dbi-users@xxxxxxxx
Subject: RE: DBI DBD-Oracle connection failure woth ORA-12705

Metalink not 158654.1

-----------------
Ron Reidy
Lead DBA
Array BioPharma, Inc.


-----Original Message-----
From: Gavin W [mailto:gavin.s.williams@xxxxxxxxxxxxxx]
Sent: Friday, August 26, 2005 2:03 AM
To: dbi-users@xxxxxxxx
Subject: DBI DBD-Oracle connection failure woth ORA-12705


Environment = Windows XP, perl 5.6 (activestate)



I recently upgraded my DBI module to 1.32

And DBD-Oracle to 1.16



I have an Oracle 9 database on my PC, and have been connecting to it using
DBI with no problems.



On upgrading to the above versions (I think the prior DBD was 1.12)

My connection no longer works



Here is the code which has not changed

# $!perl -w





use strict;

use DBI;





DBI->trace(2,"my_trace.txt");

my %attr = (RaiseError => 0, AutoCommit =>1);

my $dbh = DBI->connect("dbi:Oracle:host=127.0.0.1;sid=GAV", 'tdf', 'bike',
\%attr)

or die "Failed to connect to database: $DBI::errstr";

my $sth = $dbh->prepare("

SELECT distinct (owner)

FROM tdf_results

" );

$sth->execute();









Here is the error





C:\databases\perl\eg>perl tdftest4.pl

DBI connect('host=127.0.0.1;sid=GAV','tdf',...) failed: ORA-12705: invalid
or unknown NLS parameter

value specified (DBD ERROR: OCISessionBegin) at tdftest4.pl line 10

Failed to connect to database: ORA-12705: invalid or unknown NLS parameter
value specified (DBD ERRO

R: OCISessionBegin) at tdftest4.pl line 10.



Is this a known issue, or am I unlucky? Can anyone help, or point me in the
right direction?



Thanks



Gavin


This electronic message transmission is a PRIVATE communication which
contains
information which may be confidential or privileged. The information is
intended
to be for the use of the individual or entity named above. If you are not
the
intended recipient, please be aware that any disclosure, copying,
distribution
or use of the contents of this information is prohibited. Please notify the
sender of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.

.



Relevant Pages

  • Re: Evaluated "require $database" not found.
    ... I'm familiar with error trapping as described in "perldoc DBI" - ... Transactions are a fundamental part of any robust database system. ... Ron Wingfield ... of how you do a simple DBI connection. ...
    (perl.dbi.users)
  • RE: fetchrow_array performance
    ... I agree - set RasieError. ... it is impossible to tell what is going on in the database without a 10046 trace. ... You aren't error checking your dbi statements - do you have RaiseError ... sender of the delivery error by replying to this message, or notify us by ...
    (perl.dbi.users)
  • Re: Evaluated "require $database" not found.
    ... DBI Error 1046: No database selected ... What I have found is that if the spaceare removed as per the correct syntax, then the DBI_errorhandler will trap and report a connection failure if a non-existent database is specified, as per this example: ... This requires that you first have an installation of mysql setup on a host ...
    (perl.dbi.users)
  • Re: Cant call method "prepare" on an undefined value
    ... Somehow you managed to have an undefined value instead of a DBI database handle in front of ->prepare, which is burried deep inside Oraperl.pm. ... Oracle HTTP Server at Server B. Both server are Solaris server. ... I have installed DBI and DBD into Server B and setup the oraperl in my perl script. ...
    (perl.dbi.users)
  • Balasan: RE: Balasan: RE: Balasan: RE: Balasan: RE: cant execute "use $database"
    ... dictionary of the each database of my MSSQL. ... to load it -- DBI will load it for you. ... Subject: Balasan: RE: Balasan: RE: Balasan: RE: ...
    (perl.dbi.users)