12
返回列表 发新帖
楼主: tiantianchifan

statspack引起latch free,时间服务器~

[复制链接]
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
11#
发表于 2009-11-26 04:03 | 只看该作者
If I were you, I would just patch it to 9.2.0.8. I always try to patch the database to the highest patch level within the major release number, 9.2.0.8 for 9i, 10.2.0.4 for 10g, etc.

V$sql is based on x$kglcursor. But that fixed view is further based on x$kglob, according to x$kqfdt. I never had problems querying v$sql. But if you do, you may be hitting the bug you mentioned. How large is your shared pool and how many cursors do you have now?

V$sql_plan in 9i has lots of performance or hang problems. But most can be avoided if you do not select filter_predicates and access_predicates. Here's my own note:

"Don't select * from v$sql_plan in 9i. Selecting certain columns may cause ORA-600 [504] [row cache objects].
Filter_predicates column should be avoided (see Bug:3545517). That column could also cause ORA-7445 (Doc:376923.995)
and ORA-3113 (Bug:4035880). Access_predicates column may also be bad (inferred from Note:340090.1)"

When you have your problem, you can do two things. See if there's a trace file in udump (sometimes in bdump). It may contain a call stack. If not, run pstack command or AIX equivalent against the server process to get the call stack. Search on Metalink for the function near the top of the stack excluding error dumping functions (those kge* ones). If you don't know which one to focus on, post the call stack and I'll tell you.

Yong Huang

使用道具 举报

回复
论坛徽章:
138
19周年集字徽章-19
日期:2020-06-08 08:30:56马上加薪
日期: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:14马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02路虎
日期:2013-11-22 12:26:18问答徽章
日期:2014-05-08 12:15:31
12#
发表于 2009-11-26 08:46 | 只看该作者
有一个可能是对v$视图的访问执行计划较差,导致扫描了大部分的library cache,而导致library cache latch持有的时间太长,可以看看执行计划

使用道具 举报

回复
论坛徽章:
41
马上加薪
日期:2014-02-19 11:55:14铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:50:44ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15ITPUB年度最佳BLOG写作奖
日期:2012-03-13 17:09:53
13#
发表于 2009-11-26 16:18 | 只看该作者
将运行正常的服务器与这台服务器上的v$sql视图中的数据量比较一下,进而比较一下具体SQL的执行计划,看看会不会有新的收获。

使用道具 举报

回复
论坛徽章:
1
优秀写手
日期:2013-12-21 06:00:14
14#
 楼主| 发表于 2009-11-27 12:01 | 只看该作者
谢谢各位~ 我回头试一下

使用道具 举报

回复
论坛徽章:
63
19周年集字徽章-19
日期:2020-09-23 02:43:002012新春纪念徽章
日期:2012-02-13 15:12:092012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:20:28现任管理团队成员
日期:2011-05-07 01:45:082011新春纪念徽章
日期:2011-02-18 11:42:472011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:41:50
15#
发表于 2009-11-28 13:55 | 只看该作者
这个bug我也遇到过,整得连节点都给hang住了。

recraete sp也可以解决。 可以看一下是否有synonmy是invalid的。

使用道具 举报

回复

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

本版积分规则 发表回复

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