Try running this through the command prompt first if you are not already.
You can also
use CGI::Carp qw(fatalsToBrowser);

To direct errors to STDOUT, but I found that in some situtations it does not
work, especially if it fails before the header output, so command prompt is
your best answer.

Ilya

> -----Original Message-----
> From: Perl ++ [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, November 17, 2001 3:53 PM
> To: [EMAIL PROTECTED]
> Subject: Conecting Oracle??
>
>
> Hi all,
>
>     I'm newbie  using Oracle and i'm just trying to connect it on my Web
> page.i ' ve been looking for answers in the mailing list however i'm
> stuck right now.The code below is the code i'm trying to do that and the
> problem is that is not connecting , its not showing any error message
> and the message Hello world that i put is not be showed on my web
> browser. I think the process is killed after "use DBD::Oracle
> qw(:ora_types); " i don't know why. I have Win2K and Oracle 8i personal
> edition in my computer. I hope someone can help me....i want  to learn
> that.
>
> Tks in advance
> Fabio (Brazil)
>
>
>
> use CGI qw/:standard :html3 -no_debug/;
> $query = new CGI;
> print $query->header();
> use DBI;
> use DBD::Oracle qw(:ora_types);
>
> my $dbh = DBI->connect('dbi:Oracle:Oracle','system','manager')
>  or die "Couldn't connect to database: " . DBI->errstr;
>
> my $sth = $dbh->prepare( qq{select sysdate from dual} )
>     or die "Couldn't prepare statement: " . $dbh->errstr;
>
> print "Hello World\n";
>
> $sth->finish;
> $dbh->disconnect;
> exit;
>

Reply via email to