dbms_system.ksdwrt(2,'Строка')
Первый параметр:
1 - Писать в лог сессии
2 - Писать в alert.log
3 - Писать в оба места
Подсмотрено у Льюиса
dbms_system.ksdwrt(2,'Строка')
column sid new_value a
select sid from sysp where rownum = 1;
alter session set events '10132 trace name context forever, level 1';
select * from sysp where sid = &a;
alter session set events '10132 trace name context forever, level 0';
select * from sysp where sid = 116250109
sql_text_length=43
sql=
select * from sysp where sid = 116250109
----- Explain Plan Dump -----
----- Plan Table -----
============
Plan Table
============
-------------------------------------+-----------------------------------+
| Id | Operation | Name | Rows | Bytes | Cost | Time |
-------------------------------------+-----------------------------------+
| 0 | SELECT STATEMENT | | | | 3 | |
| 1 | INDEX UNIQUE SCAN | PK_SYSP | 1 | 25 | 2 | 00:00:01 |
-------------------------------------+-----------------------------------+
Predicate Information:
----------------------
1 - access("SID"=116250109)
Content of other_xml column