Click to See Complete Forum and Search --> : Nested SQLPlus


RLiss
03-07-2007, 02:04 PM
I have a SQLPlus work script that spools a file. I call this in one of two ways, from a web based interface, or from another SQLPlus prompt routine. If I call from the web based, I need this work routine to exit when complete. If called from from SQLPlus routine, I need it to return to that same routine when complete. If I use EXIT/QUIT, it exits SQLPlus completely without returning, If I don't, it leaves SQLPlus open. Any ideas or is this a catch22??

Thanks,

RLiss

tamilselvan
03-07-2007, 02:21 PM
Why don't you use a simple procedure?

RLiss
03-07-2007, 02:23 PM
Explain?

LKBrwn_DBA
03-07-2007, 03:09 PM
For web-based, create another sql script to execute the first one, kind like this:
-- MyScript_Web.sql
@MyScript
exit
:D