使用时要注意utlestat要用svrmgrl来执行,这样最后的report.txt格式才正常。在运行utlbstat之前要设置数据库参数
timed_statistics=true
统计时间建议是30分钟到1个小时,在系统出现性能问题的时间段运行。
svrmgrl
SVRMGR>connect internal
SVRMGR>alter system set timed_statistics = true
SVRMGR>@?/rdbms/admin/utlbstat.sql
30分钟后(可以退出svrmgrl)
SVRMGR>@?/rdbms/admin/utlestat.sql
SVRMGR>alter system set timed_statistics = false
会在当前目录下生成report.txt,这就是DBA用来分析数据库性能的报告了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/266281/viewspace-495485/,如需转载,请注明出处,否则将追究法律责任。