Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBD::Oracle for Oracle 9.2

24 views
Skip to first unread message

Kiko

unread,
Dec 1, 2005, 5:43:21 PM12/1/05
to
Hi everybody,

i'm new to using Perl to connect to Oracle.
I use Perl through Windows, not through Unix or Linux.

While trying to connect to an Oracle database, I keep getting an error
about DBI CONNECT () FAILING.
I did some research and found that it might have to do with DBD::Oracle
being set to work against Oracle 8, and not 9.
If this is the case, what can I do to fix this?
Thanks everybody.

sco...@pythian.com

unread,
Dec 2, 2005, 7:17:42 AM12/2/05
to

Kiko wrote:
> Hi everybody,
>
> i'm new to using Perl to connect to Oracle.
> I use Perl through Windows, not through Unix or Linux.
>
> While trying to connect to an Oracle database, I keep getting an error
> about DBI CONNECT () FAILING.
Can you post the error.

> I did some research and found that it might have to do with DBD::Oracle
> being set to work against Oracle 8, and not 9.
> If this is the case, what can I do to fix this?
> Thanks everybody.

What version of Perl, DBI, and DBD are you usieng.

Kiko

unread,
Dec 2, 2005, 10:13:37 AM12/2/05
to
Hey Thanks

Here is the Error:
"DBI connect('host=E06K03;sid=spspsdw','r1aabw',...) failed: at SDW
Oracle Connect.pl line 11
Use of uninitialized value in concatenation (.) or string at SDW Oracle
Connect.pl line 11.
Database connection not made: at SDW Oracle Connect.pl line 11."

Line 11 is:
my $dbh = DBI->connect( 'dbi:Oracle:host=E06K03;sid=spspsdw',
'r1aabw',
'Peru1978'
) || die "Database connection not made: $DBI::errstr";

Perl is 5.6.1
DBI is 1.34
DBD-Oracle is 1.12

And I install modules via Activestate PPM (not through compiling and
makefile)

Thanks

Kiko

unread,
Dec 5, 2005, 10:24:20 AM12/5/05
to
Any clues guys? Thanks a lot!

tim....@gmail.com

unread,
Dec 6, 2005, 11:53:39 AM12/6/05
to
The $DBI::errstr is getting lost before connect() returns. That bug was
fixed around DBI 1.43 (July 2004). You're using a DBI that's almost 3
years old, and your DBD::Oracle is 4 years old.

Kiko

unread,
Dec 7, 2005, 7:36:08 PM12/7/05
to
Hi Tim
Thanks a lot! I really appreciate.

Message has been deleted
0 new messages