sample pl/sql program to call a c dll and e-mail program on a windows platform

Posted on 2011-02-24
Medium Priority
Last Modified: 2012-05-11
Looking for a sample pl/sql program to call a c dll and e-mail program on a windows platform

I've never done anything like this before
Question by:KathysFriend
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 74

Expert Comment

ID: 34973290
Steven Feurstein has an excellent example of invoking an external DLL here

LVL 74

Expert Comment

ID: 34973302
the specifics of how to declare and invoke an email routine from your DLL will depend on the specification of that routine.  If you can post the api I can help with the pl/sql syntax declarations
LVL 74

Expert Comment

ID: 34973312
Note, you don't need external routines to send email from oracle, beginning with 8i you could use UTL_SMTP.  Starting with 10g you can use UTL_MAIL which offers limited functionality for email but in a more convenient syntax than utl_smtp
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 34978794
Actually I do use UTL_MAIL without issue.

What I have is Oracle 11g on a Unix server with the application on a Windows server.  There is a C dll on the application server - can I call that from pl/sql?
LVL 74

Accepted Solution

sdstuber earned 2000 total points
ID: 34979079
No, you can only call dll's that exist on the database server itself.

If you have a Samba or other network mount  point from the unix server to the windows server it might be possible since the dll would "appear" to be local to the db server.

Author Closing Comment

ID: 34979214
Thank you

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question