Link to home
Start Free TrialLog in
Avatar of diteps06
diteps06Flag for United States of America

asked on

Execute nested scripts in sqlplus

I have created an oracle script (execute_ky.sql)  that can execute other scripts in the current directory as follows:
@AAA.sql
@BBB.sql
@CCC.sql

It executes just the first script and returns from sqlplus to the operative system command line.
I think the behaviour is right as each internal script has the last statement
 exit;
How can I avoid this behavoiu and enable it to continue executing all the scripts in the list
despite the fact they have the last statement as exit.

OS: Windows 7
DB: Oracle 10
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of diteps06

ASKER

For business reasons I cann't remove the exit statement
Thanks alot the second functions