`
mathfox
  • 浏览: 36547 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Debugging Events

阅读更多

DEBUGGING EVENT

A debugging event, which is identified by a numeric value, is the means used to set a type of flag in a running database engine process. The aim is to change its behavior, for example, by enabling or disabling a feature, by testing or simulating a corruption or crash, or by collecting trace or debug information. Some debugging events are not simple flags and can be enabled at several levels. Each level has its own behavior. In some situations, the level is an address of a block or memory structure.
You should use a debugging event with care and set it only when directed to do so by Oracle Support or if you know and understand what the debugging event is going to change. Debugging events enable specific code paths. Therefore, if a problem occurs when a debugging event is set, it is worth checking whether the same problem can be reproduced without the debugging event set.
Few debugging events are documented by Oracle. If documentation exists, it is usually provided through MetaLink notes. In other words, debugging events are generally not described in the official Oracle documentation about the database engine. You can find a complete list of the available debugging events in the file $ORACLE_HOME/rdbms/mesg/oraus.msg. Note that this file is not distributed on all platforms. The range from 10000 to 10999 is reserved for debugging events.

 

Levels of the Debugging Event 10046

SQL trace is based on debugging event 10046.

 

Level Description
0 The debugging event is disabled.
1 The debugging event is enabled. For each processed database call, the following
information is given: SQL statement, response time, service time, number of
processed rows, number of logical reads, number of physical reads and writes,
execution plan, and little additional information.
4 As in level 1, with additional information about bind variables. Mainly, the data
type, its precision, and the value used for each execution.
8 As in level 1, plus detailed information about wait time. For each wait experienced
during the processing, the following information is given: the name of the wait
event, the duration, and a few additional parameters identifying the resource that
has been waited for.
12 Simultaneously level 4 and level 8.

 

ALTER SESSION SET events '10046 trace name context forever, level 12'

ALTER SESSION SET events '10046 trace name context off'

 

 

dbms_monitor.session_trace_enable(session_id => 127,
                                  serial_num => 29,
                                  waits      => TRUE,
                                  binds      => FALSE)

 

dbms_monitor.session_trace_disable(session_id => 127,
                                   serial_num => 29)

 

Timing Information in Trace Files

ALTER SESSION SET timed_statistics = TRUE

 

ALTER SESSION SET max_dump_file_size = unlimited

 

 

  • 大小: 52.5 KB
分享到:
评论

相关推荐

    vc官方实例原代码全部例子

    官方vc全部的实例代码 ATL Attributes CLR Compiler ComTypeLibfor7 crt Debugging Events extensibility fusion international language mfc os unix

    Springer.The.Developer’s.Guide.to.Debugging.2008.pdf

    7.5 Asynchronous Events and Interrupt Handlers . . . . . . . 98 8 Finding Environment and Compiler Problems . . . . . . 101 8.1 Environment Changes – Where Problems Begin . . . . . 101 8.1.1 ...

    Rasa对话机器人连载十九 第126课:Rasa对话机器人Debugging项目实战之教育领域项目调试 解密(二).pdf

    在本节Rasa对话机器人的课程中,我们将深入探讨如何调试教育领域的项目,特别是通过Rasa框架进行对话机器人开发中的Debugging实战。首先,我们关注的是"loaded module"这一概念,这在Python编程中指的是导入并加载的...

    #GDC18 - DevTools Sponsored Session.pdf

    We’ll demonstrate features like Pixel History, Events Viewer and Resource Viewer, as well as advanced profiling functionality like the Range Profiler. In addition, we’ll have some exciting new ...

    华为路由器协议故障处理大全

    3.3.18 debugging bgp events 3-28 3.3.19 debugging bgp keepalive 3-29 3.3.20 debugging bgp open 3-30 3.3.21 debugging bgp packets 3-31 3.3.22 debugging bgp updates 3-32 3.4 典型案例分析 3-33 3.4.1 配置...

    EventRecorderDebug.zip

    µVision User's Guide_ Debug Commands _component_viewer_events Using Event Recorder Redirecting ITM Output to third-party Applications Debugging EventRecorder

    Intro to ABAP-----一套挺有意思的abap教材

    08. Online Debugging 09. Modularization Techniques 10. Select Statements 11. ABAP Open SQL Extensions 12. Authorizations, Passing Between Programs, Catching Runtime Errors 13. Events 14. Select...

    html-css-js-experiments:一个安全的实验和玩js的地方

    events =试用js事件监听器 javascript-debugging = CMT120 Web开发讲座笔记的第8周 javascript-debugging_ex1 = CMT120第8周实验解决方案问题1 javascript-debugging_ex1.5 = CMT120第8周实验解决方案问题1.5 ...

    Secrets.of.the.JavaScript.Ninja(2012.12)].John.Resig.文字版

    Arming with testing and debugging PART 2 APPRENTICE TRAINING Functions are fundamental Wielding functions Closing in on closures Object-orientation with prototypes Wrangling regular expressions Taming...

    C++代码全集:适合比较全面学习的同学

    1. ATL 2.Attributes 3.CLR 4.Compiler 5.ComTypeLibFor7 6.crt 7.Debugging 8.Events 9.Extensibility 10.International 11.Language 12.MFC 13.OS 14.Unix

    CoClassSyms(TLBDBG)

    An ActiveX control container for testing and debugging ActiveX controls. For details, see Testing Properties and Events with Test Container and ActiveX Control Test Container (tstcon32.exe). ...\...

    JavaScript.Novice.to.Ninja.2nd.Edition

    Chapter 10: Testing and Debugging Chapter 11: Further Functions Chapter 12: Object-Oriented Programming in JavaScript Chapter 13: Ajax Chapter 14: HTML5 APIs Chapter 15: Modern JavaScript Development ...

    Playmaker v1.9.0.p20.zip

    :: Enjoy powerful runtime debugging: :: Watch States, Variables, and Events. :: Pause and Rewind time with Debug Flow. :: Download Action Packs for popular plugins: :: NGUI, 2DToolkit, Photon, ...

    Writing Windows WDM design drivers

    The book provides a debug driver (which allows you to log messages from other drivers), plus a number of useful tips on installing, testing, and debugging drivers, including logging events with ...

    Playmaker 1.9.0.p4.unitypackage 下载 不用代码制作游戏,支持unity3d 2018

    :: Enjoy powerful runtime debugging: :: Watch States, Variables, and Events. :: Pause and Rewind time with Debug Flow. :: Download Action Packs for popular plugins: :: NGUI, 2DToolkit, Photon, ...

    ARXDBG2016

    of events are happening in the system. There is an extensive Word document that describes this application's capabilities in great detail. Please read the 'ArxDbg.doc' for more details.

    Playmaker 官方最新1.9.0 p4

    :: Enjoy powerful runtime debugging: :: Watch States, Variables, and Events. :: Pause and Rewind time with Debug Flow. :: Download Action Packs for popular plugins: :: NGUI, 2DToolkit, Photon, iTween...

    JavaScript for Google Calendar

    var events = cal.getEventsForDay(startDate); for (var i = 0; i < events.length; i++) { var event = events[i]; if (event.getTitle() === '会议') { event.setTitle('团队会议'); event.setDescription...

Global site tag (gtag.js) - Google Analytics