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

Posted on 2011-02-24
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now


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 500 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

705 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