1. set up the base error log table:
BEGIN
DBMS_ERRLOG.create_error_log (dml_table_name => 'XXXXX');
END;
XXX is your table name that you are going to insert to
This will create a table err$_XXX which will store all error data/log
2. Add log errors at the end of your insert statement
insert into ....
LOG ERRORS INTO err$_XXX ('INSERT') REJECT LIMIT UNLIMITED;
No comments:
Post a Comment