Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Using "whenever oserror" on Windows
When writing SQL scripts for batch execution on UNIX I normally put
"whenever sqlerror", "whenever oserror" at the top, for example
connect user/pass
<do something>
exit
For some reason it does not work on Windows - the "whenever oserror"
bit leads to message
O/S Message: No such file or directory
For example:
connect / as sysdba
select * from dual;
exit
This is for Oracle 9.2.0.4.0 on Windows 2003.
File "glogin.sql" is where it should be, i.e. in ORACLE_HOME\sqlplus\admin.
It is not that I particularly need this "oserror" thing to work, but it would be nice to know what is wrong with it.
Thanks Received on Sat Apr 02 2005 - 06:57:41 CST