Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Connect ORACLE to WWW through CGI-Perl-Script

Re: Connect ORACLE to WWW through CGI-Perl-Script

From: Charlie Wu <charliew_at_atlml1.attmail.com>
Date: 1996/12/17
Message-ID: <32B71AB6.3D19@atlml1.attmail.com>#1/1

Ingo Ruth wrote:
>
> The CGI-Perl-script should do this:
> 1. Connect DB (here: SQL-PLUS)
> 2. SELECT * FROM ...
> 3. DISCONNECT DB
>

i mainly use sybase but it should be no difference. what i usually do is write a shell script to do the database inquiries and then pass the result to perl.

e.g.

$cmd = `/bin/ksh sql.sh arg1 arg2`;
print `$cmd`;

and the in sql.sh you can have

#!/bin/ksh
/sybase/bin/isql -Uuser -Ppasswd << END_SQL your sql goes here
END_SQL
#end of script

hope that helps.

-- 
Charlie Wu
Web Applications Developer/Consultant
AT&T, Atlanta, Georgia
Received on Tue Dec 17 1996 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US