| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> cgi gateway to oracle database
I had following problem when I tried to use DBI/DBD (DBI version 1.06, DBD
version 0.60) to connect to Oracle database (version 7.3.4). The following
script runs ok under Unix environment but fails when accessing through Web. It
seems that the ora_login function fails. I appreciate if anyone can help
me out.
H. Chen
use Oraperl;
print "Content-type: text/plain", "\n\n";
$lda = &ora_login ($system_id, "scott", "tiger");
# $system_id is the connecting string for the database
$csr = &ora_open ($lda, " select sysdate from dual ");
($sdate) = &ora_fetch ($csr);
&ora_close ($csr);
&ora_logoff ($lda);
print "today is $sdate", "\n";
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Mon Apr 19 1999 - 17:11:15 CDT
![]() |
![]() |