Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: External SQL functions exported by DLLs

Re: External SQL functions exported by DLLs

From: GreyBeard <Fuzzy.GreyBeard_at_gmail.com>
Date: Fri, 11 Mar 2005 15:54:40 GMT
Message-Id: <pan.2005.03.11.16.55.41.116623@gmail.com>


On Fri, 11 Mar 2005 14:49:32 +0100, Peter Sullvan wrote:

Thanks for jumping across to this forum.

You are attempting to run what Oracle refers to as an External Procedure. First time around is not for the faint of heart, but it works well once you catch on.

Conceptually, your DLL is in an available secure directory, and is called by SQLNet (aka Net8 & Oracle Networking). The call is made from the database by storing a PL/SQL wrapper that points to the DLL. That wrapper can then be usually be called in any SQL clause or in PL/SQL.

There are conditions where the call may not be valid, enforced to preserve Oracle's integrity or locking mechanisms.

There are a few things to think about:

Oracle provides an online samples of both parts under Oracle8i section at http://www.oracle.com/technology/sample_code/tech/pl_sql/index.html

In addition, a chapter of the "Oracle Application Developer's Guide - Fundementals" (chapter 10 for Oracle9iR2) is devoted to this topic.

HTH/FGB Received on Fri Mar 11 2005 - 09:54:40 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US