I have a database which sometimes crashes. I want to create a batch program that does this:
- Runs SQL*Plus.
- Makes SQL*Plus run a script from a plain text file.
- Gets the results back to the main batch program.
- Uses it to check if database is running or not.
I am having trouble in getting SQL*Plus to run something directly through the batch and getting the data back. Hopefully it’s a simple process I don’t know about.