Re: Error appears in web log but script runs ok on the command line

2013-10-22 Thread Alexander Foken
Just a wild guess: mod_perl sets %ENV, but *AFTER* loading DBD::Oracle, so the XS part of DBD::Oracle won't see the required environment variables. It is possible to manipulate %ENV from inside Perl (this includes mod_perl) and then load DBD::Oracle, or at least it was possible for a long

Re: Error appears in web log but script runs ok on the command line

2013-10-22 Thread Bruce Johnson
On Oct 22, 2013, at 10:50 AM, Alexander Foken alexan...@foken.de wrote: Just a wild guess: mod_perl sets %ENV, but *AFTER* loading DBD::Oracle, so the XS part of DBD::Oracle won't see the required environment variables. It is possible to manipulate %ENV from inside Perl (this includes

Re: Error appears in web log but script runs ok on the command line

2013-10-22 Thread Richie
Or what about modding the shell or init scripts that start apache and make use of PerlPassEnv http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlPassEnv_ On 10/22/2013 1:50 PM, Alexander Foken wrote: Just a wild guess: mod_perl sets %ENV, but *AFTER* loading DBD::Oracle, so the XS

Re: Error appears in web log but script runs ok on the command line

2013-10-22 Thread Bruce Johnson
Nope, that failed, too. I'm not even trying to use a persistent connection At this point I believe it's a bug in apache, mod_perl or DBD::Oracle, or some unholy partial bug in all three that's combining to make my life miserable. I've been advised to recompile DBD::Oracle with -rpath in the