+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 32

Using "whenever oserror" on Windows

  1. 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

    ---------------------------------------
    whenever sqlerror exit failure rollback
    whenever oserror exit failure rollback

    connect user/pass



    exit
    -----------------------------------------
    and then check for return code from SQL*Plus.

    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:
    ---------------------------------------
    whenever sqlerror exit failure rollback
    whenever oserror exit failure rollback

    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


  2. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  3. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  4. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  5. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  6. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  7. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  8. Re: Using "whenever oserror" on Windows

    I tried on another box - Windows 2000, Oracle 9.2.0.6.0, got the same
    result...


  9. Re: Using "whenever oserror" on Windows


    "Vsevolod Afanassiev" wrote in message
    news:1112446661.517897.234940@f14g2000cwb.googlegroups.com...
    > When writing SQL scripts for batch execution on UNIX I normally put
    > "whenever sqlerror", "whenever oserror" at the top, for example
    >
    > ---------------------------------------
    > whenever sqlerror exit failure rollback
    > whenever oserror exit failure rollback
    >
    > connect user/pass
    >
    >
    >
    > exit
    > -----------------------------------------
    > and then check for return code from SQL*Plus.
    >
    > 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:
    > ---------------------------------------
    > whenever sqlerror exit failure rollback
    > whenever oserror exit failure rollback
    >
    > 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
    >


    Did you add something UNIX-specific to your glogin.sql file ?

    Matthias



  10. Re: Using "whenever oserror" on Windows


    "Vsevolod Afanassiev" wrote in message
    news:1112446661.517897.234940@f14g2000cwb.googlegroups.com...
    > When writing SQL scripts for batch execution on UNIX I normally put
    > "whenever sqlerror", "whenever oserror" at the top, for example
    >
    > ---------------------------------------
    > whenever sqlerror exit failure rollback
    > whenever oserror exit failure rollback
    >
    > connect user/pass
    >
    >
    >
    > exit
    > -----------------------------------------
    > and then check for return code from SQL*Plus.
    >
    > 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:
    > ---------------------------------------
    > whenever sqlerror exit failure rollback
    > whenever oserror exit failure rollback
    >
    > 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
    >


    Did you add something UNIX-specific to your glogin.sql file ?

    Matthias



+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast