in reply to Re: Error running CGI on tomcat
in thread Error running CGI on tomcat
Yes, I can connect using sqlplus as well as toad. I can also ping the DB machine and tnsping is successful. This makes me believe that everything on the oracle client is ok.
I am also providing the "connect" code here that I am using:
the last line is where it fails and gives me the error message!# DBI Initializations my $driver = 'Oracle'; my $hostname = 'host=oradev;sid=oradev;port=1521'; my $user = 'user'; my $password = 'password'; my $dsn = "DBI:$driver:$hostname"; my $dbh = DBI->connect($dsn,$user,$password) or croak "Error $DBI::err +str connecting to $dsn\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Error running CGI on tomcat
by rdfield (Priest) on Sep 12, 2007 at 10:19 UTC | |
by sdeshpan (Initiate) on Sep 12, 2007 at 19:10 UTC | |
by rdfield (Priest) on Sep 13, 2007 at 11:23 UTC | |
by sdeshpan (Initiate) on Sep 13, 2007 at 17:50 UTC | |
by rdfield (Priest) on Sep 14, 2007 at 08:21 UTC |
In Section
Seekers of Perl Wisdom