Ravi Gupta
Ravi Gupta

Reputation: 4574

How to execute windows batch command from sql?

HI
I have written a windows batch command that operates on video files which are stored on a oracle database. What is best way to execute this batch command on those video files ?
One way I can think of is to pull the video files to temporary folder using a sql script and write another program, maybe in java, to execute the batch command on those files and store the result in separate folder or commit in database.

Appreciate your suggestions.

Upvotes: 2

Views: 520

Answers (1)

Gary Myers
Gary Myers

Reputation: 35401

You can use DBMS_SCHEDULER to run external (executable) jobs. An example here

Not sure how your batch file 'gets' the video files from Oracle. I'd look as BFILEs as one option.

Upvotes: 3

Related Questions