How write to alert.log

connect / as sysdba

begin

sys.dbms_system.ksdwrt(2, to_char(sysdate)||' --- some message writes to alert.log --- ');

end;

/