Sie sind auf Seite 1von 1

1> CREATE ERROR LOG TABLE :

======================

BEGIN
DBMS_ERRLOG.create_error_log('TABLE_NAME','ERROR_LOG_TABLE_NAME');
END;

2> CHECK ERROR LOG TABLE :


=====================

DESC ERROR_LOG_TABLE_NAME;

3> DECLARE
------
------
BEGIN

INSERT INTO TARGET VALUES(-----,-----,------,-------)


LOG ERRORS INTO ERROR_LOG_TABLE_NAME('TYPE OF DML OPERATION') REJECT LIMIT
UNLIMITED/ ANY_NO ;

4> How to check ERROR LOG TABLE ?

COLUMN ora_err_mesg$ FORMAT A70


SELECT ora_err_number$, ora_err_mesg$
FROM err$_dest
WHERE ora_err_tag$ = 'INSERT';

ORA_ERR_NUMBER$ ORA_ERR_MESG$
--------------- ---------------------------------------------------------
1400 ORA-01400: cannot insert NULL into ("TEST"."DEST"."CODE")
1400 ORA-01400: cannot insert NULL into ("TEST"."DEST"."CODE")

2 rows selected.

Das könnte Ihnen auch gefallen