Sincere apologies for the confusions, am relatively new to this forum and unix
Proc_*.sql will have pl/sql statements in it. I can able to handle the exception there.
I am doing in all these operations in a single .sh file
Running sqlplus for proc_1 -
then,
sqlplus for proc_2 -
then,
sqlplus for proc_3
Now, the scenario is i need to run the scripts only if the previous procedure ran successfully.
so, if proc_2 is got exception while executing its pl/sql statements then i need to skip the execution of proc_3.
For that i took the value of $? post execution of sqlplus command. But it alwyz returns zero to me irrespective of the exception thrown after the pl/sql execution
Thanks a ton for your patience.