Hi,
I can think of one following way which can be used:
You can call a java stored procedure and in the java method you can execute os commands using exec method of runtime
Hi,
If you don't want to use java(if you have any constraints), then you can go for external procedures. For this you have to
setup listener
setup tnsnames
start the listener explicitly
write a 'C' program to execute the command and compile it as a shared library
create a library in oracle
create a wrapper procedure which calls this library
This is assuming that DOS is the underlying OS where your oracle is installed.
As far as I know executing OS commands is possible only through java stored procedures or external procedures. Java stored procedures are simpler. But again it depends on your requirement as to what you should go for..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.