Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Oraperl emulation for windows

by millan123 (Initiate)
on Aug 11, 2014 at 13:06 UTC ( [id://1096981]=perlquestion: print w/replies, xml ) Need Help??

millan123 has asked for the wisdom of the Perl Monks concerning the following question:

We have old perl code 5.001 which is using oraperl. Now we are migrating it to 5.16.So i am thinking to use Oraperl emulation as suggested in some site.Can someone please tell me can we use oraperl emulation for windows NT as well?

Replies are listed 'Best First'.
Re: Oraperl emulation for windows
by McA (Priest) on Aug 11, 2014 at 14:35 UTC

    Hi,

    this is not a direct answer to your question, but just a comment based on what you asked for.

    You want to migrate an old Perl codebase to the version 5.16 of Perl. That means that you have to test the whole codebase whether it behaves like before. I don't know how you do it. Probably you have good unit tests or you have to do it with integration tests. It seems that all functions of Oraperl begin with 'ora_' so that you can grep all occurences easily. It would be intersting to see if it's not feasible to migrate Oraperl to DBI and DBD::Oracle too.

    You have to test all anyways. What do you think?

    Regards
    McA

Re: Oraperl emulation for windows
by jfroebe (Parson) on Aug 11, 2014 at 14:37 UTC

    Unless you are being ordered to use oraperl with no hope of appeal, use DBI / DBD::Oracle. Oraperl, like sybperl and many other customized perls add a level of complexity to any troubleshooting/debugging efforts.

    Jason L. Froebe

    Blog, Tech Blog

Re: Oraperl emulation for windows
by afoken (Chancellor) on Aug 12, 2014 at 20:16 UTC

    DBD::Oracle once included a compatibility module named Oraperl that allowed using ancient oraperl scripts with the newer DBI+DBD::Oracle. According to the Changelog, Oraperl was removed from DBD::Oracle with Version 1.51_00 a.k.a. 1.52 in 2012. The good news is that there should be a separate distribution for Oraperl:

    RT78987 - removed Oraperl.pm and oraperl.ph; these files will be available in a separate distribution named "Oraperl" (David Perry)

    And lo and behold, CPAN knows about a distribution named Oraperl.

    So your chances look pretty good to be able to use DBI, DBD::Oracle, and Oraperl to run your old code unmodified except for adding a use Oraperl; line. You just have to install Oraperl as usual (cpan Oraperl on Strawberry, some ppm voodoo on ActivePerl.) Oraperl depends on DBI and DBD::Oracle, so both the cpan tool and ppm should install them automatically (unless they are already installed).

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1096981]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found