in reply to Perl, DBI, Oracle, Apache

but out of the blue it loses the Oracle.so or the libclntsh.so.8.0 files.

Can you elaborate? I read this and hear "it works at one time and not at another", but the error messages suggest that something wasn't set up right.

So, is it that the files are there at time A, and not there at time B? That's what it sounds like, and that would be VERY confusing.

First stab: recall that when run as CGI scripts, these scripts have different environment varialbes available to them than when they're run from the command line. In particular, they *DO NOT* have $ENV{ORACLE_HOME} set. Set it explicitly in the script before you connect. Then try again.

I'm assuming you installed the Oracle client libraries and symlinked libclntsh.so in a system lib directory (check /etc/ld.so.conf for a list of those; then do ln -s /usr/lib/libclnstsh.so.8.0 $ORACLE_HOME/lib/libclntsh.so.8.0</code> )).

HTH

Replies are listed 'Best First'.
Re: Re: Perl, DBI, Oracle, Apache
by BigJoe (Curate) on Apr 24, 2001 at 23:38 UTC
    The files are there at time A and they are there at time B. The permissions have not changed on the files or directories. The symlink is still there.

    --BigJoe

    Learn patience, you must.
    Young PerlMonk, craves Not these things.
    Use the source Luke.