Error on connecting database using Perl

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


--- Hemant Verma <Hemant.Verma at ons.gsi.gov.uk> wrote:

> Hi,
> 
> I have a cgi script which tries to connect to oracle 92 database
> using
> ODBC.
> 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.

Cheers,
Ovid

--
Buy the book  - http://www.oreilly.com/catalog/perlhks/
Perl and CGI  - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog     - http://use.perl.org/~Ovid/journal/


More information about the london.pm mailing list