Error on connecting database using Perl

Ovid publiustemp-londonpm at
Wed Apr 9 15:36:39 BST 2008

--- Hemant Verma <Hemant.Verma at> wrote:

> Hi,
> I have a cgi script which tries to connect to oracle 92 database
> using
> On running this cgi script through internet browser it gives an error
> and unable to make connection using odbc.

What's the error?  Tough to comment without that :)

If you are unsure of the error, it would help if you could show us the
relevant entry from your error logs.  Failing that, try *temporarily*
adding the following to your CGI program:

 use CGI::Carp qw/fatalsToBrowser/;

That will usually (not always) display the actual error message in the
browser.  However, you will want to remove that for production.  If
people see the error messages they, they may get enough information to
use that to try to hack into your box.


Buy the book  -
Perl and CGI  -
Personal blog -
Tech blog     -

More information about the mailing list