I forgot to mention.  Oraperl.pm is fine to let old code keep running, but
new scripts should absolutely, positively use DBI and DBD::Oracle for
database access.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Michael A. Chase" <[EMAIL PROTECTED]>
To: "Anshu Anshu" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 06:49
Subject: Re: Oraperl -> DBI


> The script already has a 'use Oraperl;' line which is all that should be
> needed to use the Oraperl emulation that comes as part of DBD::Oracle.
The
> Oraperl emulation is provided specifically to allow old scripts that use
> oraperl calls to continue to work with minimal changes.
>
> A much much bigger problem I see with the script is all the hard-coded
> directories in it.  You should really run it from an environment that has
> all those environment variables already set and includes all those @INC
> directories in $PERL5LIB.
>
> A read through of the DBI, DBD::Oracle, and Oraperl manuals ('perldoc
DBI',
> 'perldoc DBD::Oracle', and 'perldoc Oraperl' respectively) would greatly
> benefit you.  Look especially for mention of login methods and
placeholders.
> --
> Mac :})
> ** I normally forward private questions to the appropriate mail list. **
> Give a hobbit a fish and he eats fish for a day.
> Give a hobbit a ring and he eats fish for an age.
> ----- Original Message -----
> From: "Anshu Anshu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 21, 2001 13:35
> Subject: Oraperl -> DBI
>
>
> > We are using a script which uses Oraperl.  This script (attached) needs
to
> > be install on another machine which is Solaris 8 on sparc.  That machine
> got
> > Perl 5.005 and perl 5.6.1 version installed. And I learnt that Oraperl
> > supports only Perl 4 and I need to convert this script to DBI form. I am
> > trying to do so, but getting lots of errors. And since this script is
very
> > critical, I am looking for help if you can. I need to find all that
needs
> to
> > be change or any other tips.
>
>

Reply via email to