On Wed, Apr 11, 2001 at 04:22:55PM +0300, N Sikkandar Dulkarnai wrote:
> Yah, I configured and that error has been fixed, but still the below error
> ...
> 
> DBI->connect(test) failed: Error while trying to retrieve text for error
> ORA-12154 (DBD ERROR:
> OCIServerAttach) at /usr/local/apache/cgi-bin/test.pl line 11
> cannot connect at /usr/local/apache/cgi-bin/test.pl line 11.
> 
> Thank you for your help

Well, the test failed for some reason. Initially, it'd be because it
can't find the client libraries. Setting ORACLE_HOME correctly ought
to fix that.

The problem you're looking at here is that when an error occurs, the
client libaries have to figure out how to tell you. They get the text
from files. The location of those files is determined by $ORACLE_HOME.

So, if you've got it set, and it's set to the right value, and you've
got read access on the files, you'll get a meaningful error message.

Hopefully, in this case, *all* the errors will go away, and everything
will just work. But at the moment you're getting a networking error,
probably because ORACLE_HOME isn't set correctly (based on the next
piece of evidence), and a failure to report it: almost certainly
because it isn't set correctly.

You do realise that Martin was quoting the value he uses? Yours will
be different...

----- Original Message -----
From: "Martin Hesse" <[EMAIL PROTECTED]>
To: "N Sikkandar Dulkarnai" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 2:08 PM
Subject: Re: perl/cgi


> set the ORACLE_HOME in your httpd.conf (apache conf file)
> SetEnv ORACLE_HOME=/u/app/....
>

--
T.

Reply via email to