Wednesday, June 16, 2004
UTILS 16-JUN-2004 08:49@oranet>insert into monitored_errors values(1017);
1 row created.
UTILS 16-JUN-2004 08:49@oranet>commit;
Commit complete.
UTILS 16-JUN-2004 08:49@oranet>conn niall/peter
ERROR:
ORA-03113: end-of-file on communication channel
Warning: You are no longer connected to ORACLE.
This is bug 3124081 which is fixed in 10g. The fix doesn't obviate the need for error handling if you want to trap all errors - but it does give you that possibility. For completeness on 10g you get the following with the trigger as is.
UTILS 16-JUN-2004 09:53@nl1010>conn peter/rabbit
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 19
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE.
16-JUN-2004 09:53@>