Title: RE: Anyone using DBD::Oracle from Red Hat 7.2

While not yet doing so through CGI I do have a few machines running 7.2 and DBI/DBD:Oracle. One thought...double check your environment variables for $ORACLE_HOME. I'm guessing a CGI process would be run outside of a shell and may not be getting that set correctly (perhaps the wrong terminology but you get my drift). In the beginning we had some problems with this and got results much like you mention.

Good luck and post when you get it resolved.

Christopher Sink

PS you don't mention your Oracle version but we're running 8.1.7.

-----Original Message-----
From: Rhugga [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: ARG: Anyone using DBD::Oracle from Red Hat 7.2


I cannot for the life of me get a DBI script to run under the default apache
server shipping with RH 7.2

The scripts works fine from the command line, works fine from several
Solaris and SuSE machimes, but low and behold, the red hat box fails
miserably. (surprise) I usually install my own apache server on RH 7.2 since
RH cludges it all up into the wrong directory structure. However, this must
be pushed to several hundred machines and I want to use the default server
for simplicity.

I get to the following line of the script and it does, however, nothing is
written to the error log.

print "DEBUG: datasource=$datasource  db_login=$db_login
db_passwd=$db_passwd\n"; # This is okay, all variables visible
print STDERR "Testing apache error log\n";  # this works
my $dbh = DBI->connect($datasource, $db_login, $db_passwd) or die "Can't
connect to DB: $DBI::errstr\n"; # Script dies with no error message print
anywhere

My database info is stored in a module under /var/www/lib/cluster.pm.

CGI scripts ARE working under this directory, in fact, this script runs to
complete if I comment out the DBI->connect entry.

Anyone have similiar problems?

Thanks,
Chuck




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to