如何从PL / SQL过程中运行批处理文件 [英] How to run batch file from within PL/SQL procedure

查看:196
本文介绍了如何从PL / SQL过程中运行批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个批处理文件将执行一些.EXE其中做一些操作(如连接到数据库,提取数据,插入数据等)结果
所有的东西都在批处理文件中配置,当我运行它,它的作品不错。

I have a batch file which will execute some .exe which do some operations (like connecting to DB, fetching data, insert data etc...)
All the things are configured in the batch file and when I run it, it works good.

不过,我想从 PL / SQL程序调用这个批处理文件。结果
这个程序应该先调用这个批处理文件,批处理文件执行后,就会有它自己的SQL操作。

But, I want to invoke this batch file from a PL/SQL procedure.
this procedure should invoke this batch file first, and after the execution of the batch file, it will have it's own SQL operations.

我如何可以继续这样做呢?

How can I proceed to do this?

推荐答案

设置了DBMS_SCHEDULER工作。本主题讨论在这里(德国):
http://db-memory.blogspot.ch/2012 /12/dbmsscheduler-mit-executable-unter.html
截图可能会有所帮助。

Set up a job with dbms_scheduler. This topic is discussed here (German): http://db-memory.blogspot.ch/2012/12/dbmsscheduler-mit-executable-unter.html The screenshots may be helpful.

请记住启用DBMS_SCHEDULER工作,否则将无法运行。

Please remember to enable the dbms_scheduler job, else it won't run.

这篇关于如何从PL / SQL过程中运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆