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


In reply to Re: Perl, DBI, Oracle, Apache by arturo
in thread Perl, DBI, Oracle, Apache by BigJoe

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.