Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: OraPerl w/ Oracle 8
In article <6a80rr$a3t$5_at_nntp2.ba.best.com>,
Jordan Redner <jordan_at_webnex.com> wrote:
>Has anyone out there got OraPerl 2.4 working with Oracle8 on a
>Solaris platform?
No, but there have been reports of success with the Perl5 DBI/DBD::Oracle modules. DBD::Oracle includes an Oraperl emulation module.
#!/usr/bin/perl -w
use strict;
use Oraperl;
my $sql = q/SELECT 'Happy Perl''ng' FROM dual/; my $lda = ora_login('','scott','tiger') or die $ora_errstr; my $csr = ora_open($lda, $sql) or die $ora_errstr;my @row = ora_fetch($csr) or die $ora_errstr; print "@row";