Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: write to alert log (small fix)
based on JLewis example,
A small fix, it is not dbms_system.ksddt - writes a date-time stamp it is dbms_system.ksdDdt - writes a date-time stamp 3 d
Executing as SYS
SQL> begin
2 dbms_system.ksdwrt(3,'________________'); 3 dbms_system.ksdwrt(1,'Writing Alert.Log file') ; 4 dbms_system.ksdwrt(2,'Writing Trace File'); 5 dbms_system.ksdwrt(3,'Writing Both Alert and trace file') ; 6 dbms_system.ksdddt; -- writes a date-time stamp 7 dbms_system.ksdind(11); -- indents text using ":' characters8 dbms_system.ksdfls; -- flushes the write to file 9 dbms_system.ksdwrt(1,'Writing Alert.Log file') ; 10 dbms_system.ksdwrt(2,'Writing Trace File'); 11 dbms_system.ksdwrt(3,'Writing Both Alert and trace file') ; 12 end;
In Alertlog file OUTPUT
Mon Nov 01 13:16:46 2004
Juan Carlos Reyes Pacheco
OCP
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Nov 01 2004 - 11:14:16 CST
![]() |
![]() |