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

Thread: Calling Batch file from PL/Sql or Trigger

  1. #1
    Join Date
    Oct 2005
    Location
    Dhaka
    Posts
    2

    Calling Batch file from PL/Sql or Trigger

    hi all,

    i am using oracle 9.2. I want execute a batch file from pl/sql or trigger. is it possible. if possible then what will be the code.

    regards

    sakil

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    nope, not from plsql you cant

  3. #3
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    You can build your own interface...

    http://orafaq.com/scripts/plsql/oscmd.txt
    http://timarcher.com/?q=node/9
    http://oracle.ittoolbox.com/groups/t...ocedure-203333

    ...or, you can also investigate External Routine and DBMS_PIPE.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  4. #4
    Join Date
    Jun 2007
    Location
    İstanbul/Turkey
    Posts
    25
    you can execute a batch file with a java procedure EXECOSCMD or EXECUTEOSCMD .
    You need to set the utl_file_dir database parameter to where your batch is located in the server,so you ll let oracle to access the path that you mention.
    Then you can use execoscmd to run a bash script or any program on the server.

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