Results 1 to 8 of 8

Thread: Oracle Question

  1. #1

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Oracle Question

    Is it possible to invoke an external process eg. java app or shell script from a stored procedure?



    Thanks
    Mark
    -------------------

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: Oracle Question

    Originally posted by Mark Sreeves
    Is it possible to invoke an external process eg. java app or shell script from a stored procedure?



    Thanks
    Well who executes the app ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Re: Re: Oracle Question

    Originally posted by plenderj


    Well who executes the app ?
    A trigger
    Mark
    -------------------

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: Re: Re: Oracle Question

    Originally posted by Mark Sreeves


    A trigger
    No I mean when this process is being invoked, what system is it going to be running on ?
    The server itself, or a workstation or ...?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Er... um...

    The shell script will run on the same server as the Oracle database sits and I need it to be kicked off by a trigger.

    Is this possible?
    Mark
    -------------------

  6. #6
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    well, you can definatly call Java Classes from PLSQL (stored procedures), but as is typical of Oracel and its documentation, details are not easy to get hols of. try:

    http://download-west.oracle.com/otnd...call.htm#11760

    It seems you need to publish the class and its methods as a procedure...

    Don't know about shell scripts - I'm sure there is some DBMS_ package that will do it

    Let me know if you need any help on the PLSQL side though

  7. #7
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    Oh and Mark/???? ( ), check what version of Oracle you are using - Anything less than 8i tends to require workarounds...

  8. #8

    Thread Starter
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Thanks Gaffer
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width