DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Calling An External Executables in a PLSQL Block

  1. #1
    Join Date
    Jan 2002
    Posts
    78
    Hi,

    Is it Possible to Call an External Executables in a PLSQL Block.

    I know to call the Executables from a SQL PROMPT Using

    HOST Command.


  2. #2
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    You can do this using EXTPROC. This process allows you to run external procedures from PL/SQL.

    On NT/2000 it is simplified even further by the COM cartridge. You'll need to write a DLL in VB or C to shell out to the OS. Once the DLL is registered you can access it using the COM cartridge. See:

    http://www.oracle-base.com/Articles/...tomation8i.asp

    The same thing is possible on UNIX using EXPROC directly with shared libraries.

    Depending on what you need to do it may be better to write the process in Java and call this from your PL/SQL.

    PS. Try to avoid doing any GUI stuff as this will cause EXTPROC to freak.

    [Edited by TimHall on 02-27-2002 at 04:05 AM]
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

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