DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: How does oracle write to the alert log?

  1. #1
    Join Date
    Jul 2002
    Posts
    335

    Angry

    How does oracle write to the alert log? I belive its one of the standard pl/sql routines, but which one is it, and how do you run it independantly?

    Bazza

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    You've posted exactly the same question a week ago and you've got your answer then. Don't you read replies of your own threads?

    So here we go once again. Oracle does not use any PL/SQL staf for writing into alert log. The facility for writing trace file is built directly into the kernel.

    As you might have noticed, Oracle is writing into the alert log even before the database is opened - so if the database is not yet open, how could it use any routine that is stored inside the database?
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  3. #3
    Join Date
    Jul 2002
    Posts
    335
    Apologies, that's me getting my forums mixed. I take your point about when the alertt log is written to.

    Please delete this thread, and sorry for any inconveniance caused.

    Bazza

  4. #4
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    The DBMS_SYSTEM package contains a routine that writes to the alert log. The kernal does not have to call this routine since the kernel can access the file directly, but if you feel the need to do this from PL/SQL you can:

    EXEC DBMS_System.ksdwrt(2, 'My Test Alertlog Message');

    See:

    http://www.oracle-base.com/Articles/8i/DBMS_System.asp

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

  5. #5
    Join Date
    Jul 2002
    Posts
    335
    Thank you kindly, that was exactly what I was after.

    Much appreciated,

    Barry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width