Can I connect to Oracle 9i database using Perl CGI. If yes,
how do I do it ? I have tried the code which was available on a website, but that didn't help.
Thnks Philote for the link, but it didn't help.
I'm using Oracle 9i database along with Perl CGI ver 5.6 on an apache server. Its giving an internal server error while executing the script.
I have copied the script below. Please tell me if I written the correct code or is there a mistake. If so please revert.
============================
#!/usr/bin/perl
DBI connect('host=192.168.10.89; sid=dems; port=1521','demsuser',...)
failed: (UNKNOWN OCI STATUS 1804) OCIInitialize. Check ORACLE_HOME and NLS
settings etc. at /var/
Where's your prepare statement? Line 17 of test4.cgi
Check all the values before going into the prepare statement, that is that each variable in the prepare has a value.
hi Paul,
thnx for your reply. what abt this error?
ORACLE_HOME environment variable not set!
DBI connect('host=192.168.10.89; sid=dems; port=1521','demsuser',...)
failed: (UNKNOWN OCI STATUS 1804) OCIInitialize. Check ORACLE_HOME and NLS
settings etc. at /var/
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.