Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How can I know the possible error numbers in the view deferror?
In article <385FC6FA.B3DA932D_at_nortel.com>,
Steve Lu <stevelu_at_nortel.com> wrote:
> Hello!
>
> I am working on a replication monitor which needs to check the error
> number in the DEFERROR view. Since the monitor will only be interested
> in certain errors, I have to know the corresponding error number for
> those concerned errors.
> The oerr can map the error id to the error message which is helpful in
> my case.
> Is there any place I can find a (system) table for the system errors
> (error_id & error description)?
>
> Thanks in advance!
>
> Steve Lu
> Nortel Networks Inc.
> stevelu_at_nortelnetworks.com
>
I do not know of any table you can read by you could place the
following pl/sql block in a loop of 1..N and generate such an animal by
replacing the dbms_output with an insert:
set echo off
rem
rem Pl/sql script to create procedure to report Oracle error messages
rem in sqlplus
rem
rem Note - you can in sqlplus issue:
rem set serveroutput on rem execute dbms_output.put_line(sqlerrm(-01017))rem
rem ----------------------------------------------------------------------
v_rc number ; v_msg varchar2(100) ;
v_rc := v_err_no ; end if ; v_msg := sqlerrm(v_rc) ; dbms_output.put_line(v_msg) ; end ora_error ;
--
Mark D. Powell -- The only advice that counts is the advice that
you follow so follow your own advice --
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Dec 22 1999 - 09:27:55 CST
![]() |
![]() |