zircon06
Technical User
- Jan 8, 2007
- 81
Hello everyone
I'm looking code samples for doing error handling in below script
spool ORA_Test_Upgrade_$ORACLE_SID.log
ORACLE_HOME=/u05/app/oracle/product/9.2.0; export ORACLE_HOME
PATH= $PATH:$ORACLE_HOME/bin:/usr/lbin; export PATH
ORACLE_SID=TestDB; export ORACLE_SID
ORACLE_OWNER=system; export ORACLE_OWNER
sqlplus << END
sys/sys
@table.sql
@view.sql
@procedure.sql
@Trigger.sql
quit
End
spool off
exit;
What I'm looking solution for if @table.sql run successfully print to my log file @table.sql completed without errors otherwise failed to run @table.sql file next @trigger.sql file print errors to spool log file.
Thanks in advance
I'm looking code samples for doing error handling in below script
spool ORA_Test_Upgrade_$ORACLE_SID.log
ORACLE_HOME=/u05/app/oracle/product/9.2.0; export ORACLE_HOME
PATH= $PATH:$ORACLE_HOME/bin:/usr/lbin; export PATH
ORACLE_SID=TestDB; export ORACLE_SID
ORACLE_OWNER=system; export ORACLE_OWNER
sqlplus << END
sys/sys
@table.sql
@view.sql
@procedure.sql
@Trigger.sql
quit
End
spool off
exit;
What I'm looking solution for if @table.sql run successfully print to my log file @table.sql completed without errors otherwise failed to run @table.sql file next @trigger.sql file print errors to spool log file.
Thanks in advance