Link to home
Start Free TrialLog in
Avatar of Member_2_7965723
Member_2_7965723

asked on

To run CGI/perl on tomcat and connect to oracle database.

Hi,

My requirement is to run CGI/perl on tomcat and connect to oracle database.

I have managed to run the scripts and have installed few perl module, but cant find a way forward while connecting to oracle database.

I have a oracle client installed and can connect to database if I run the script from command line (Redhat).

But the moment I try to run it browser it does not work.

I am new to perl and not sure how could I see whats wrong with it, I can print all ENV variables which it would need.

is there a way to capture the errors?

-AM
test-db-cgi1
Avatar of giltjr
giltjr
Flag of United States of America image

Asking the obvious, but do you have Perl DBI and DBD::Oracle installed?

http://search.cpan.org/~timb/DBI-1.636/
http://search.cpan.org/~pythian/DBD-Oracle-1.74/
ASKER CERTIFIED SOLUTION
Avatar of FishMonger
FishMonger
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_7965723
Member_2_7965723

ASKER

Thanks a lot everytone,

Below commands solved all of my problem, because I could see what was wrong and then fix it

use CGI::Carp qw(fatalsToBrowser);

I have managed to achieve what I wanted.
Hi,

If the command you used solved your problem then you should select Best Solution as the answer, and any other comments from Experts if they helped you along the way as Assisted Solutions.