diteps06
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
@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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks alot the second functions