Hi Tim
I have a trigger, below is the code:
create or replace trigger blah
declare
med varchar(30)
begin
dud...
.......
EXCEPTION
WHEN others THEN
dbms_output.enable(100000);
dbms_output.put_line(SQLERRM) ;
error_log;
END;
/
Basically, I want to write the error into the txt file, so I create another procedure called error_log, so everytime if there is an error, it will write to the log file for me. what I want is to captured the data and time of the error b/c right now I can only see the error without knowing when it happened.
Thoughts?
Thanks Tim