Diagnostic and Tuning Tools(1)

Chapter02 Diagnostic and Tuning Tools
诊断与调优工具


Objectives:
1.Identify key tuning components of the alert log file.理解alert log file中关于调优的重要信息。
2.Identify key tuning components of background trace files.理解后台trace文件关于调优的信息。
3.Identify key tuning components of user trace files.了解用户trace文件关于调优的信息。
4.Collect statistics with Oracle Enterprise Manager.看OEM中收集的统计数据。
5.Describe how Statspack collects statistics.重点介绍statspack这个工具如何收集数据。
6.掌握Statspack的初步用法。
7.Identify dynamic performance views useful in tuning.认识一些性能调优的视图。
8.掌握以下其他的工具。


Maintenance of Alert Log
任何一个设计良好的服务器软件肯定有Alert Log。
Alert log 按时间顺序记录了软件消息与错误。
show parameter dump
找到bdump,这个路径就是alert_SID.log的路径。
打开alert_SID.log.查找/ORA-,找到错误。
定期进行清空或归档。
mv alert_SID.log alert_SID.log.20090113  进行归档
cat /dev/null > alert_SID.log  可以清空掉日志文件,如果删除掉则ORACLE会自动创建新的。


Tuning Compoents.
The alert log file包含以下信息帮助调优。
1.Checkpoint start and end times
2.Incomplete checkpoints
3.Time to perform archiving.
4.Instance recovery start and complete times.
5.Deadlock and timeout errors.


show parameter log_ch找到log_checkpoints_to_alert将其设为TRUE,才能使checkpoint信息写到alert.log中。
alter system checkpoint;再查看alert.log就能看到checkpoint信息确实写到里面。


BP Trace Files
ORACLE比较大,LOG文件有多种。ALERT.log与数据库相关的,每次启动就顺序记录。TRACE文件与进程相关,进程生命周期可能很短。
1.The Oracle server dumps information about errors detected by any background process into trace files.把后台进程的错误信息写进trace文件。
2.Oracle Support uses these trace files to diagnose and troubleshott.
3.These files do not usually contain tuning information.
一般用户是不用看的,一般是ORACLE支持人员看,也不包含调优信息。这些信息也是在alert.log的文件夹中。


USER Trace Files
1.Server process tracing can be enabled or disabled at the session or instance level.
2.A user trace file contains statistics for traced SQL statements in that session.
3.User trace files are created on a per server process basis.
4.User trace files can also be created by:backup control file to trace,database set events;
意识是,每一个服务器进程(与客户端相连接的服务器进程)一个trace文件,可以获得用户的行为,用户哪个SQL语句出问题,对调优有帮助。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用提到,在Visual Studio 2015调试UWP程序时,可以使用Diagnostic Tools。这是一个自动打开的窗口,可以通过Debug->Show Diagnostic Tools找到它。Diagnostic Tools提供了一些功能,如性能分析、内存使用情况等,可以帮助开发人员诊断和解决问题。它可以在调试期间监视和记录应用程序的性能数据,并提供实时的分析结果。可以使用Diagnostic Tools来分析并解决内存泄漏问题。通过设置选项和首选项,还可以记录调用堆栈,以帮助定位问题的根本原因。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [使用Debug Diagnostic Tool排除内存泄漏故障](https://blog.csdn.net/weixin_34248487/article/details/85081313)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [UWP开发入门(十三)——用Diagnostic Tool检查内存泄漏](https://blog.csdn.net/weixin_30460489/article/details/97229348)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值