Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: PL/SQL code and Perl

by mwp (Hermit)
on Jan 22, 2001 at 13:47 UTC ( [id://53459]=note: print w/replies, xml ) Need Help??


in reply to PL/SQL code and Perl

By "PL/SQL" I'm assuming you're using Oracle. AFAIK, there's no (existing) way to implement Oracle's SQL extensions through DBI, although you have a couple options:

  1. Write a stored procedure that does what you need and returns some status data in Oracle, then call that stored procedure from Perl DBI.
  2. Attempt to access the unique Oracle commands through DBI and DBI::func() (which can be used to call driver-specific functions). However, the functionality you need will have to be built into DBD::Oracle. Check the manpage.
  3. Track down OraPerl and see if you can use that, although from what I've heard no one uses that now. Read this, maybe.

If nothing else, hit Google and start searching like mad. =)

Disclaimer: I've only worked Oracle as a programmer, not a DBA, and we weren't doing anything outside of your usual SELECT, INSERT, etc. So it's possible that I am missing the whole point, here.

Update: After perusing around for a bit, it appears that you can indeed use PL/SQL with DBI. You just prepare a query with the proprietary commands and send that through DBI to Oracle. Works the same as a standard query. I'm impressed. {g}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-03-29 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found