{"id":346,"date":"2020-03-06T07:47:28","date_gmt":"2020-03-06T07:47:28","guid":{"rendered":"http:\/\/tomas.papp.me.uk\/?p=346"},"modified":"2021-11-11T08:49:44","modified_gmt":"2021-11-11T08:49:44","slug":"oracle-events","status":"publish","type":"post","link":"https:\/\/tomas.papp.me.uk\/?p=346","title":{"rendered":"Oracle events"},"content":{"rendered":"\n<p>                                         Oracle SQL Trace and TKPROF   \n\n\n\n <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"\"><tbody><tr><td>Event # Level Description <br>8186 &#8211; ALTER SESSION SET EVENTS &#8216;8186 trace name context OFF&#8217; &#8211; VERSIONS BETWEEN query <br> 10005 &#8211; Trace latch operations for debugging <br> 10013 1 Monitor Transaction Recovery <br> 10015 1 Dump Undo Segment Headers <br> 10015 3 Identify corrupt undo segments <br> 10021 &#8211; KST event to trace control file header writes and reads <br> 10022 &#8211; Trace ktsgsp <br> 10027 &#8211; Specify Deadlock Trace Information to be Dumped <br> 10028 &#8211; Dump trace information during lock \/ resource latch cleanup <br> 10032 4  Dump Sort Statistics <br> 10031 &#8211; Sort Debug Events <br> 10032 10 Dump Sort Statistics <br> 10033 4  Dump Sort Large Run Statistics (blocks dumped to disk and read back) &#8211; poss. no levels. <br> 10033 10 Dump Sort Intermediate Run Statistics <br> 10038 &#8211; Dump row source tree (QBADRV) <br> 10041 &#8211; Dump undo records skipped <br> 10045 1 Trace Free List Management Operations <br> 10046 0 No statistics generated <br> 10046 1 Standard trace output including parsing, executes and fetches plus more <br> 10046 2 Same as Level 1 <br> 10046 4 Level 1 + Bind Variables <br> 10046 8 Level 1 + Waits <br> 10046 12 Level 1 + Bind Variables &amp; Waits <br> 10047 &#8211; Trace Session Switching <br> 10050 &#8211; Sniper Trace <br> 10053 1 CBO ENABLE Optimizer Trace: Dump Optimizer Statistics and Computations <br> 10053 2 CBO ENABLE Optimizer Trace: Dump Optimizer Computations only <br> 10054 &#8211; CBO Enable optimizer trace for recursive statement (RPI) <br> 10056 &#8211; Dump analyze stats (kdg) <br> 10060 1 Traces a SQL statement ensuring rows column will be populated. See Metalink Note 246821.1 <br> 10065 1 Restrict Library Cache Output for State Object Dumps &#8211; Library Objects Only <br> 10065 2 Restrict Library Cache Output for State Object Dumps + library object lock details <br> 10065 3 Restrict Library Cache Output for State Object Dumps + library object handle and library object <br> 10072 &#8211; Local tempspace tracing &#8211; recovery layer <br> 10073 &#8211; Latch Cleanup Tracing <br> 10074 &#8211; Default trace function mask for kst <br> 10079 2 Trace data sent\/received via SQL<em>Net: Dump SQL<\/em>Net Statistics <br> 10080 &#8211; Dump a block on a segment list which cannot be exchanged <br> 10081 1 Dump High Water Mark Changes <br> 10083 &#8211; Trace IMCDT in LIMITED mode <br> 10095 &#8211; Dump debugger commands to the trace file <br> 10104 10 Dump Hash Join Statistics to the trace file <br> 10128 1 Dump Partition Pruning Information <br> 10128 2 Dump partition iterators <br> 10128 4 Dump optimizer decisions about partition-wise joins <br> 10128 8 Dump ROWID range scan pruning information <br> 10132 12 Dumps SQL statements along with the actual, after compilation, execution plan <br> 10134 &#8211; Trace SQL Memory Management for session <br> 10146 &#8211; Enable Oracle TRACE collection <br> 10148 &#8211; Quarantine trace event <br> 10166 &#8211; Trace long operation statistics updates <br> 10200 1 Dump Consistent Read Buffer Status <br> 10201 1 Dump Consistent Read Undo Application <br> 10210 10 Table Integrity Check <br> 10211 10 Index Integrity Check <br> 10216 &#8211; Dump the control file header <br> 10218 &#8211; Dump the UBA of applied undo <br> 10220 1 Dump Changes to Undo Header <br> 10221 7 Dump Undo Changes <br> 10224 1 Dump Index Block Splits \/ Deletes Trace <br> 10225 1 Dump Changes to Dictionary Managed Extents <br> 10226 &#8211; Trace CR applications of undo for data operations <br> 10228 &#8211; Trace application of redo by kcocbk <br> 10231 10 Causes full table scans to skip corrupt blocks, rather than fail with an ORA-01578 error <br> zzyzx ALTER SESSION SET EVENTS=&#8217;10231 trace name context forever&#8217;; <br> 10232 10 Dump corrupted blocks symbolically when kcbgotten to the process trace file <br> 10233 10 Traces memory usage statistics <br> 10235 1 Check memory manager internal structures (use with ORA-600\/ORA-7445 errors) <br> 10236 &#8211; Dump redo on object no. or block type mismatch errors 1410\/8103 <br> 10241 1 Dump Remote SQL Execution Tracing\/Validation <br> 10246 1 Trace PMON Process actions to the trace file <br> 10247 &#8211; Turn on scgcmn tracing (VMS ONLY) <br> 10248 10 Trace Dispatcher Processes <br> 10249 10 Trace Shared Server (MTS) Processes (multi-stated servers) <br> 10250 &#8211; Trace all allocate and free calls to the topmost SGA heap <br> 10254 &#8211; Trace cross-instance calls <br> 10257 &#8211; Trace shared server load balancing <br> 10266 &#8211; Trace OSD stack usage <br> 10270 10 Debug Shared Cursors <br> 10289 1 Dump a database block in hexadecimal rather than formatted <br> 10290 &#8211; Internal sequence tracing event <br> 10292 &#8211; Hang analysis trace event <br> 10293 &#8211; Trace log switch media recovery checkpoints <br> 10294 &#8211; Trace ksrpc <br> 10297 &#8211; Trace shared I\/O pool <br> 10298 &#8211; Trace ksfd I\/O <br> 10299 1 Trace prefetch tracking decisions made by CKPT <br> 10300 &#8211; Distributed transaction tracing <br> 10302 &#8211; Trace create or drop internal trigger <br> 10303 &#8211; Trace loading of library cache for internal triggers <br> 10304 &#8211; Trace replication trigger <br> 10305 &#8211; Trace updatable materialized view trigger <br> 10306 &#8211; Trace materialized view log trigger <br> 10307 &#8211; Trace RepCat execution <br> 10310 &#8211; Trace synchronous change table trigger <br> 10318 &#8211; Trace extensible transaction header movements <br> 10319 &#8211; Trace PGA statistics maintenance <br> 10320 &#8211; Enable data layer (kdtgrs) tracing of space management calls <br> 10325 &#8211; Trace control file record section expand and shrink operations <br> 10333 &#8211; Dump MTTR statistics each time it is updated <br> 10335 &#8211; Trace database open status <br> 10347 &#8211; Dump active checkpoint entries and checkpoint buffers <br> 10357 1 Debug Direct Path <br> 10366 &#8211; kgnfs tracing <br> 10367 &#8211; kgodm tracing <br> 10384 &#8211; parallel dataflow scheduler tracing <br> 10390 0x0001 Dump Parallel Execution Slave Statistics &#8211;  Slave-side execution messages <br> 10390 0x0002 Dump Parallel Execution Slave Statistics &#8211;  Coordinator-side execution messages <br> 10390 0x0004 Dump Parallel Execution Slave Statistics &#8211;  Slave context state changes <br> 10390 0x0008 Dump Parallel Execution Slave Statistics &#8211;  Slave ROWID range bind variables and xty <br> 10390 0x0010 Dump Parallel Execution Slave Statistics &#8211;  Slave fetched rows as enqueued to TQ <br> 10390 0x0020 Dump Parallel Execution Slave Statistics &#8211;  Coordinator wait reply handling <br> 10390 0x0040 Dump Parallel Execution Slave Statistics &#8211;  Coordinator wait message buffering <br> 10390 0x0080 Dump Parallel Execution Slave Statistics &#8211;  Slave dump timing <br> 10390 0x0100 Dump Parallel Execution Slave Statistics &#8211;  Coordinator dump timing <br> 10390 0x0200 Dump Parallel Execution Slave Statistics &#8211;  Slave dump allocation file number <br> 10390 0x0400 Dump Parallel Execution Slave Statistics &#8211;  Terse format for debug dumps <br> 10390 0x0800 Dump Parallel Execution Slave Statistics &#8211;  Trace CRI random sampling <br> 10390 0x01000 Dump Parallel Execution Slave Statistics &#8211;  Trace signals <br> 10390 0x02000 Dump Parallel Execution Slave Statistics &#8211;  Trace parallel execution granule operations <br> 10390 0x04000 Dump Parallel Execution Slave Statistics &#8211;  Force compilation by slave 0 <br> 10391 0x0001 Dump Parallel Execution Granule Allocation &#8211; Summary of each object scanned in parallel <br> 10391 0x0002 Dump Parallel Execution Granule Allocation &#8211; Full dump of each object except extent map <br> 10391 0x0004 Dump Parallel Execution Granule Allocation &#8211; Full dump of each object including extent map <br> 10391 0x0010 Dump Parallel Execution Granule Allocation &#8211; Summary of each granule generators <br> 10391 0x0020 Dump Parallel Execution Granule Allocation &#8211; Granule generators except granule instances <br> 10391 0x0040 Dump Parallel Execution Granule Allocation &#8211; Granule generators including granule instances <br> 10391 0x0080 Dump Parallel Execution Granule Allocation &#8211; System information <br> 10391 0x0100 Dump Parallel Execution Granule Allocation &#8211; Reference object for the query <br> 10391 0x0200 Dump Parallel Execution Granule Allocation &#8211; kxfralo timing <br> 10391 0x0400 Dump Parallel Execution Granule Allocation &#8211; Affinity module <br> 10391 0x0800 Dump Parallel Execution Granule Allocation &#8211; Granule allocation during query execution <br> 10391 0x1000 Dump Parallel Execution Granule Allocation &#8211; Object flush <br> 10393 1 Dump Parallel Execution Statistics <br> 10399 &#8211; Trace buffer allocation <br> 10401 1 KSXP tracing: for RAC kernel <br> 10402 1 SKGXP tracing: for RAC kernel minimal tracing <br> 10402 127 SKGXP tracing: for RAC kernel maximum tracing <br> 10412 &#8211; Dump the call stack if an error is signaled <br> 10420 &#8211; Trace KSO OS-process operations <br> 10421 &#8211; Enable dump from ksbwco if there is no reply <br> 10423 &#8211; dump the call stack if the specified error is cleared <br> 10425 &#8211; Enable global enqueue operations event trace <br> 10426 &#8211; Enable ges\/gcs reconfiguration event trace <br> 10427 &#8211; Enable global enqueue service traffic controller event trace <br> 10428 &#8211; Enable tracing of global enqueue service cached resource <br> 10429 &#8211; Enable tracing of global enqueue service IPC calls <br> 10430 &#8211; Enable ges\/gcs dynamic remastering event trace <br> 10432 &#8211; Enable tracing of global cache service fusion calls <br> 10434 &#8211; Enable tracing of global enqueue service multiple LMS <br> 10435 &#8211; Enable tracing of global enqueue service deadlock detetction <br> 10437 &#8211; Enable trace of global enqueue service S optimized resources <br> 10439 &#8211; Enable tracing of global cache service fusion calls &#8211; part 2 <br> 10440 &#8211; Enable global enqueue service inquire resource modes trace <br> 10441 &#8211; Enable diagnosibility daemon (DIAG) trace <br> 10442 &#8211; Enable trace of kst for ORA-01555 diagnostics <br> 10445 &#8211; Enable tracing of LMS priority management <br> 10448 &#8211; Dump trace for OLTP partial compression features diagnostics <br> 10449 &#8211; Enable trace of kst for undo manageability features diagnostics <br> 10453 &#8211; Dump compression statistics to trace file <br> 10472 &#8211; Dump reading log buffer hit ratio histogram to LGWR trace file <br> 10473 &#8211; Enable BRR tracing <br> 10474 &#8211; Controlfile time tracing <br> 10478 &#8211; DBW0 file identification trace event <br> 10484 &#8211; Enable tracing for online data file move operation <br> 10487 &#8211; Dump redo memory protection information <br> 10488 &#8211; Dump block headers read for media recovery <br> 10490 &#8211; Trace OSM misc. events <br> 10491 &#8211; Trace OSM messaging (KFN) events <br> 10492 &#8211; Trace OSM metadata events <br> 10494 &#8211; Trace OSM metadata events <br> 10495 &#8211; Trace OSM metadata events <br> 10497 &#8211; Trace OSM metadata events <br> 10499 &#8211; Trace OSM metadata events <br> 10500 1 Trace SMON Process <br> 10505 &#8211; CBO enable dynamic sampling dump to table <br> 10507 &#8211; Trace bind equivalence logic <br> 10254 &#8211; CMON connection pool trace event <br> 10526 &#8211; Enable lightweight thread tracing <br> 10527 &#8211; Enable SGA allocation tracing <br> 10528 &#8211; Enable ksmg tracing <br> 10529 &#8211; Enables SGA range protection tracing <br> 10542 &#8211; Enable tracing for block compare <br> 10556 &#8211; Enable tracing for multi instance Redo Apply <br> 10569 &#8211; Trace datafile header writes <br> 10601 32 Forces the database to consider SQL*Plus a foreign SQL application <br> 10604 &#8211; Trace parallel create index <br> 10606 &#8211; Trace parallel create index <br> 10607 &#8211; Trace index rowid partition scan <br> 10608 10 Trace Bitmap Index Creation <br> 10609 &#8211; Trace for array index insertion <br> 10610 &#8211; Trace create index pseudo optimizer <br> 10622 &#8211; Test or trace online index build or rebuild <br> 10625 &#8211; Turn off redo log dump for the index when OERI 12700 <br> 10627 &#8211; Dump the content of the index leaf block <br> 10639 &#8211; Dump library cache during reparse loops <br> 10690 &#8211; Set shadow process core file dump type (Unix only) <br> 10692 &#8211; Trace preserving buffer across standby role transition <br> 10701 &#8211; Dump direct loader index keys <br> 10704 1 Trace Enqueues <br> 10706 1 Trace Global Enqueue Manipulation <br> 10708 10 Print out trace information from the RAC buffer cache <br> 10710 1 Trace Bitmap Index Access <br> 10711 1 Trace Bitmap Index Merge Operation <br> 10712 1 Trace Bitmap Index OR Operation <br> 10713 1  Trace Bitmap Index AND Operation <br> 10714 1  Trace Bitmap Index MINUS Operation <br> 10715 1  Trace Bitmap Index Conversion to ROWIDs <br> 10716 1  Trace Bitmap Index Compress \/ Decompress <br> 10717 1  Trace Bitmap Index Compaction for Index Creation <br> 10719 1 Trace Bitmap Index DML <br> 10720 &#8211; Trace database scheduling <br> 10722 &#8211; Trace server level database scheduling <br> 10724 &#8211; Trace cross-instance broadcast <br> 10730 1 Trace Fine Grained Access Policy Predicates <br> 10731 1 Dump SQL for CURSOR expressions <br> 10731 2 Dump SQL for CURSOR expressions <br> 10741 &#8211; Trace missing BRR generation <br> 10742 &#8211; Dump process state on flush buffer_cache <br> 10743 &#8211; Define the misbehaved vt dump thresholds <br> 10744 &#8211; Disable LMD stale cvak traces and dumps <br> 10756 &#8211; Event to enable svpt\/autotxn tracing <br> 10757 &#8211; Event to control tracing row source: rows to dump per rowset <br> 10758 &#8211; Event to control tracing row source: start row number <br> 10759 &#8211; Event to control tracing row source: end row number <br> 10760 &#8211; Event to control tracing row source: maximum encoded operands to check <br> 10761 &#8211; Event to control tracing row source: size of dictionary <br> 10780 &#8211; LogMiner API trace event <br> 10781 &#8211; LogMiner reader trace event <br> 10782 &#8211; LogMiner preparer trace event <br> 10783 &#8211; LogMiner builder trace event <br> 10784 &#8211; LogMiner dictionary trace event <br> 10785 &#8211; LogMiner trace event <br> 10787 &#8211; Trace intra-instance broadcast <br> 10788 &#8211; Trace call stacks <br> 10790 &#8211; LogMiner trace event <br> 10791 &#8211; Logical Standby swithover\/failover trace event <br> 10792 &#8211; Logical Standby XDAT trace event <br> 10793 &#8211; Logical Standby trace event <br> 10794 &#8211; Logical Standby trace event <br> 10795 &#8211; Time Drift (VKTM) Detection Process Trace Event <br> 10796 &#8211; Elevate Scheduler Priority trace event <br> 10800 &#8211; Disable Smart Disk Scans <br> 10801 &#8211; Enable Smart Disk Trace <br> 10805 &#8211; Trace state object operations <br> 10809 &#8211; Trace state object allocate \/ free history <br> 10810 &#8211; Trace snapshot too old <br> 10811 &#8211; Trace block cleanouts <br> 10812 &#8211; Trace Consistent Reads <br> 10826 &#8211; Enable upgrade\/downgrade error message trace <br> 10830 &#8211; Trace group by sort row source <br> 10831 &#8211; Trace group by rollup row source <br> 10832 &#8211; Trace approximate NDV row source <br> 10839 &#8211; Trace \/ debug caching module (qesca.c) <br> 10840 &#8211; Trace \/ debug pl\/sql caching module (kkxmInitCache) <br> 10842 &#8211; Event for OCI Tracing and Statistics Info <br> 10843 &#8211; Event for client result cache tracing <br> 10845 &#8211; Enable Director tracing <br> 10847 &#8211; OCI dump action is being invoked for internal error ORA- <br> 10850 &#8211; Enable time manager tracing <br> 10852 &#8211; Enable dumping of the AQ statistics hash table, Enable tracing for Enqueue Dequeue Operations <br> 10853 &#8211; Enable tracing for Replicating AQ Operations <br> 10865 &#8211; Control tracing of notification operations <br> 10871 &#8211; Dump file open\/close timestamp during media recovery <br> 10880 &#8211; Trace Java VM execution <br> 10883 &#8211; Event for Fast Application Notification tracing <br> 10893 &#8211; TTC trace event <br> 10907 &#8211; Trace extent management events <br> 10908 &#8211; Trace temp tablespace events <br> 10909 &#8211; Trace free list events <br> 10924 &#8211; Import Storage Parse Error Ignore Event <br> 10925 &#8211; Trace PL\/SQL Execution <br> 10926 &#8211; Trace name context forever <br> 10927 &#8211; Trace name context forever <br> 10928 1 Trace PL\/SQL Execution <br> 10929 &#8211; Trace name context forever <br> 10930 &#8211; Trace name context forever <br> 10931 &#8211; Trace name context forever <br> 10932 &#8211; Trace name context forever <br> 10933 &#8211; Trace name context forever <br> 10934 &#8211; Trace name context forever <br> 10936 &#8211; Trace name context forever <br> 10937 &#8211; Trace name context forever <br> 10938 1  Trace PL\/SQL Execution Statistics <br> 10939 &#8211; Trace name context forever <br> 10940 &#8211; Trace name context forever <br> 10941 &#8211; Trace name context forever <br> 10943 &#8211; Trace name context forever <br> 10944 &#8211; Trace name context forever <br> 10945 &#8211; Trace name context forever <br> 10946 &#8211; Trace name context forever <br> 10947 &#8211; Trace name context forever <br> 10948 &#8211; Trace name context forever <br> 10960 &#8211; AQ tracing event <br> 10961 &#8211; Enable tracing for Scheduler subscriber cleanup <br> 10975 &#8211; Trace execution of parallel propagation <br> 10976 &#8211; Internal package related tracing <br> 10977 &#8211; Trace event for RepAPI <br> 10979 &#8211; Trace flags for join index implementation <br> 10990 &#8211;  Dump spreadsheet info <br> 12500 10 The SMON time mapping is mainly for flashback type queries to map a time to an SCN so it is probably simplest to copy the content to a holding table then delete ALL rows, then recycle the instance.SMON should start to populate the table with new time \/ SCN pairs from the time that the instance is started. Setting the 12500 event at system level should stop SMON from updating the SMON_SCN_TIME table. <br> 12760 &#8211;  ACMS tracing event <br> 16300 &#8211; LSBY architected tracing event <br> 16499 &#8211;  Dump redo transport information <br> 16605 &#8211;  Event to control fast-start failover diagnostic tracing <br> 16634 &#8211;  Event for Data Guard NetSlave tracing <br> 16752 &#8211;  Dump System State <br> 16756 &#8211;  Dump Hang Analysis <br> 22829 &#8211; Enables lateral queries using the undocumented LATERAL() operator <br> ALTER SESSION SET EVENTS &#8216;22829 TRACE NAME CONTEXT FOREVER&#8217;; <br> 28400   Enable TDE Tracing <br> 28401 1 Disables the sleep time for logon failures caused by row cache locks leaving the system more vulnerable to brute force password attack <br> 28402   Disable TDE Tracing <br> 44410 0 xmlagg() with a GROUP BY can fail with ORA-22813 if the result is too large. No statistics <br> 44410 1 Basic statistics CURSOR, PARSE, EXEC, FETCH ERROR, SORT UMAP, ERROR, UMAP, STATS and XCTEND. <br> 44410 2 Same as level 1 <br> 44410 4 Level 1 plus binds <br> 44410 8 Level 1 plus wait events <br> 44410 12 Combine levels 4 and 8 <\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Oracle SQL Trace and TKPROF Event # Level Description 8186 &#8211; ALTER SESSION SET EVENTS &#8216;8186 trace name context OFF&#8217; &#8211; VERSIONS BETWEEN query 10005 &#8211; Trace latch operations for debugging 10013 1 Monitor Transaction Recovery 10015 1 Dump Undo Segment Headers 10015 3 Identify corrupt undo segments 10021 &#8211; KST event to trace control [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-346","post","type-post","status-publish","format-standard","hentry","category-oracle"],"_links":{"self":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=346"}],"version-history":[{"count":1,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=\/wp\/v2\/posts\/346\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomas.papp.me.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}