Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > how to call C/C++ DLL in Oracle Procedure?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-03-02, 07:19
sbasak sbasak is offline
Registered User
 
Join Date: Feb 2002
Posts: 31
Unhappy how to call C/C++ DLL in Oracle Procedure?

How do I call a C/++ DLL in Oracle stored procedure?

The C function has following prototype.

double function_name(char* x,int i)

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-08-02, 21:20
cpaulsen cpaulsen is offline
Registered User
 
Join Date: Sep 2001
Posts: 2
In order to call a C external function (you cannot call a C++ function without declaring a C interface) you must create a PL/SQL gateway function, procedure, or package which references the library.

The syntax for the declaring the library and defining the gateway PL/SQL is too complicated to go over here. For Oracle 9i check out the Application Developers Guide - Fundamentals Chap. 10. I believe this information was in the PL/SQL Developers Guide for previous releases.


Good luck!
C. Paulsen
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On