in reply to Oracle and Perl
It was a mistake putting use DBD::Oracle in there, as I was just typing my example up, not a direct copy n' paste. My actual code wasn't doing that, but when I was typing here it just snuck in there.
I am awaiting information ... --insert pause-- ... ah, it just arrived. Well I plugged in the ORACLE_HOME bit and the error has not changed.
So I don't mistype this time, I'll copy and paste my script below:
BEGIN { $ENV{ORACLE_HOME} = 'g:\orant'; } use DBI; use strict; my $host = 'myhost'; my $sid = 'PROD'; my $user = 'foo'; my $pass = 'bar'; my $db = DBI->connect('dbi:Oracle:host="$host";sid="PROD"', $user, $pa +ss) or die "Can't connect to server: $DBI::errstr\n"; print "Content-type: text/plain\n\n"; print "Hey, I got this far!";
Any further suggestions?
--
notsoevil
--
Jeremiah 49:32 - And their camels shall be a booty. . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Oracle and Perl
by agoth (Chaplain) on Mar 29, 2001 at 14:42 UTC | |
by notsoevil (Pilgrim) on Mar 30, 2001 at 09:13 UTC |