I am trying to use sql * plus to manage a small windows script command.
Basically, I want to execute some PL / SQL (maybe choose from a view or a table or execute a function) that shows me the state of some rows in the database, and then, depending on the state of the rows, it executes some Windows Commands.
My problem is how to return the results to a script command.
sqlplus user/password@server @script.sql IF <CONDITIONAL HERE BASED on script.sql results> GOTO :runprocess REM log and email that process had to be skipped EXIT :runprocess REM run various Windows service commands
windows oracle oracle10g batch-file sqlplus
Cade roue
source share