- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can I use Oracle trigger to execute other program?
Operating System - HP-UX
1753329
Members
5228
Online
108792
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 01:41 AM
тАО03-27-2002 01:41 AM
Hi: all, Can I execute other program(Tuxedo or java ) in Oracle trigger ? Thanks !!!
xysco
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 01:56 AM
тАО03-27-2002 01:56 AM
Re: can I use Oracle trigger to execute other program?
As of Oracle 8i its possible to write stored procedures (including triggers) in java. The following is the java stored procedure development guide:
http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a81358/toc.htm
Regards,
Steve
http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a81358/toc.htm
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 02:16 AM
тАО03-27-2002 02:16 AM
Solution
Hi,
Yes you can ...
Take a look at the following thread (where I answered a similar question :-) :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcac1a2db8513d6118ff40090279cd0f9,00.html
Regards,
Tom Geudens
Yes you can ...
Take a look at the following thread (where I answered a similar question :-) :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcac1a2db8513d6118ff40090279cd0f9,00.html
Regards,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-27-2002 05:32 AM
тАО03-27-2002 05:32 AM
Re: can I use Oracle trigger to execute other program?
Tom's answer is correct, but the way we did it before external proc calls was to write our own "listener" in an external process that connects to the database and listens on a DBMS_PIPE.
Other stored procedures or triggers can then send to the DBMS_PIPE.
There is an example of the listener in C in the Supplied PL/SQL Packages Reference under DBMS_PIPE examples.
If you're concerned about the security problems that Tom mentioned (I've never looked...) then consider the DBMS_PIPE solution.
Also, if you want to do something simple like send a mail or a simple TCP call, there are the supplied PL/SQL packages UTL_SMTP and UTL_TCP that work if you have the JServer component installed.
Good luck.
Ryan
Other stored procedures or triggers can then send to the DBMS_PIPE.
There is an example of the listener in C in the Supplied PL/SQL Packages Reference under DBMS_PIPE examples.
If you're concerned about the security problems that Tom mentioned (I've never looked...) then consider the DBMS_PIPE solution.
Also, if you want to do something simple like send a mail or a simple TCP call, there are the supplied PL/SQL packages UTL_SMTP and UTL_TCP that work if you have the JServer component installed.
Good luck.
Ryan
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP