楼主: anchen211

这是我的一个statspack的REPORT,怎高手帮忙分析一下问题

[复制链接]
论坛徽章:
131
2006年度最佳技术回答
日期:2007-01-24 12:58:48福特
日期:2013-10-24 13:57:422014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:142013年新春福章
日期:2013-02-25 14:51:24
41#
发表于 2005-3-18 16:15 | 只看该作者

Re: 没用户名?

最初由 anchen211 发布
[B]

另外能解释一下为什么添加日志组没有用处呢? [/B]


增加日志组是为了防止log switch时等待archiving
你没有使用archive log,所以没用。

使用道具 举报

回复
论坛徽章:
4
ITPUB元老
日期:2005-04-05 09:18:50授权会员
日期:2005-12-08 16:03:33会员2006贡献徽章
日期:2006-04-17 13:46:34会员2007贡献徽章
日期:2007-09-26 18:42:10
42#
 楼主| 发表于 2005-3-18 16:39 | 只看该作者

如何定位相应的SQL?

最初由 bulkaunt 发布
[B]1 再增大点 db_block_buffers 和shared_pool_size

2  Soft Parse %:   13.64  软分析太低了,注意绑定变量

3  可以的话,生成statspack快照时间长点,看看效果如何。你上面最长时间才不到一个小时。 [/B]


软分析太低?那怎么定位相应的SQL?
db_block_buffers 和shared_pool_size还要增呀?数据库上还有其它的应用呀.
另外,STATSPACK的取样强调的是是多次取样,每次时间为15-30分钟,间隔半个小时左右,并在数据库WARMED UP以后,我那个长时间的取样是我有其他事情才导致的,我还觉得有点长了呢.

使用道具 举报

回复
论坛徽章:
168
马上加薪
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-01-04 11:49:54蜘蛛蛋
日期:2011-12-05 16:08:56ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41设计板块每日发贴之星
日期:2011-07-22 01:01:02ITPUB官方微博粉丝徽章
日期:2011-06-30 12:30:16管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:33
43#
发表于 2005-3-18 17:18 | 只看该作者
参考跟log file有关的几个等待事件:

You might want to reduce "log file parallel write" wait times in order to reduce user waits which depend on LGWR.
• Ensure tablespaces are NOT left in HOT BACKUP mode longer than needed.
Tablespaces in HOT BACKUP mode cause more redo to be generated for each change which can vastly increase the rate of redo generarion.
• Redo log members should ideally be on high speed disks
eg: RAID5 is not a good candidate for redo log members.
• Redo log members should be on disks with little/no IO activity from other sources.
(including low activity from other sources against the same disk controller)
• RAW devices can be faster file system files.
• NOLOGGING / UNRECOVERABLE operations may be possible for certain operations to reduce the overall rate of redo generation


There are 3 main things you can do to help reduce waits on "log file sync":
•        Tune LGWR to get good throughput to disk . eg: Do not put redo logs on RAID 5.
•        If there are lots of short duration transactions see if it is possible to BATCH transactions together so there are fewer distinct COMMIT operations. Each commit has to have it confirmed that the relevant REDO is on disk. Although commits can be "piggybacked" by Oracle reducing the overall number of commits by batching transactions can have a very beneficial effect.
•        See if any activity can safely be done with NOLOGGING / UNRECOVERABLE options.

使用道具 举报

回复
论坛徽章:
168
马上加薪
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-01-04 11:49:54蜘蛛蛋
日期:2011-12-05 16:08:56ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41设计板块每日发贴之星
日期:2011-07-22 01:01:02ITPUB官方微博粉丝徽章
日期:2011-06-30 12:30:16管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:33
44#
发表于 2005-3-18 17:22 | 只看该作者
根据
Top 5 Wait Events
~~~~~~~~~~~~~~~~~ Wait % Total
Event Waits Time (cs) Wt Time
-------------------------------------------- ------------ ------------ -------
log file parallel write 17,802 4,197 69.27
log file sync 400 696 11.49
db file scattered read 77,132 333 5.50
db file sequential read 8,577 276 4.56
latch free 140 224 3.70

其实等待事件并不明显,
等待次数,等待时间都不大.如果执行时间可以接受的话,其实是不需要做调整的

使用道具 举报

回复
论坛徽章:
4
ITPUB元老
日期:2005-04-05 09:18:50授权会员
日期:2005-12-08 16:03:33会员2006贡献徽章
日期:2006-04-17 13:46:34会员2007贡献徽章
日期:2007-09-26 18:42:10
45#
 楼主| 发表于 2005-3-18 17:26 | 只看该作者

太好了,请问出自何处?

最初由 husthxd 发布
[B]参考跟log file有关的几个等待事件:

You might want to reduce "log file parallel write" wait times in order to reduce user waits which depend on LGWR.
• Ensure tablespaces are NOT left in HOT BACKUP mode longer than needed.
Tablespaces in HOT BACKUP mode cause more redo to be generated for each change which can vastly increase the rate of redo generarion.
• Redo log members should ideally be on high speed disks
eg: RAID5 is not a good candidate for redo log members.
• Redo log members should be on disks with little/no IO activity from other sources.
(including low activity from other sources against the same disk controller)
• RAW devices can be faster file system files.
• NOLOGGING / UNRECOVERABLE operations may be possible for certain operations to reduce the overall rate of redo generation


There are 3 main things you can do to help reduce waits on "log file sync":
•        Tune LGWR to get good throughput to disk . eg: Do not put redo logs on RAID 5.
•        If there are lots of short duration transactions see if it is possible to BATCH transactions together so there are fewer distinct COMMIT operations. Each commit has to have it confirmed that the relevant REDO is on disk. Although commits can be "piggybacked" by Oracle reducing the overall number of commits by batching transactions can have a very beneficial effect.
•        See if any activity can safely be done with NOLOGGING / UNRECOVERABLE options. [/B]

使用道具 举报

回复
论坛徽章:
168
马上加薪
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:10:582012新春纪念徽章
日期:2012-01-04 11:49:54蜘蛛蛋
日期:2011-12-05 16:08:56ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41设计板块每日发贴之星
日期:2011-07-22 01:01:02ITPUB官方微博粉丝徽章
日期:2011-06-30 12:30:16管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:33
46#
发表于 2005-3-18 18:45 | 只看该作者
google && metalink.
just search it.

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表