CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: DBI:
Error with CGI + Oracle on Tomcat


New User

Sep 11, 2007, 11:48 AM

Post #1 of 1 (5374 views)
Error with CGI + Oracle on Tomcat Can't Post


I have been trying to run a CGI script on the tomcat app server by enabling CGI support through the configuration files in tomcat (on windows xp). I have been able to set up this configuration successfully and a sample "hello world" program works ok.

However, now I am trying to run my actual code, which connects to a DB using DBI, but it fails and gives me the following error:

Error ORA-12545: Connect failed because target host or object does not exist (DBD ERROR: OCIServerAttach) connecting to DBI:Oracle:host=<hostname>;sid=<sid>;port=1521

I checked the TNSNAMES file and I am able to successfully ping and tnsping to the <hostname>. I wonder what might still be missing! Can anyone point me in the right direction? Frown



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives