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

为什么数据库变慢???

[复制链接]
论坛徽章:
1
2011新春纪念徽章
日期:2011-02-18 11:43:34
11#
发表于 2001-12-2 16:52 | 只看该作者
重启动后正常
应该怀疑ORACLE或OS的PATCH有没有打全!
系统资源不释放

使用道具 举报

回复
论坛徽章:
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
12#
发表于 2001-12-3 05:24 | 只看该作者

Re: 为什么数据库变慢???

The key here is "如果重新启动速度就回恢复正常". (I assume you mean restarting the database, not rebooting the box). I can think of two factors that are relevant and they were both mentioned by others already: memory and locks. It's likely that your SQLs are not shared well and they consume shared pool too quickly. The ultimate solution is writing the SQLs using bind variables. But you can try increasing shared_pool_size or flushing shared pool periodically. These are ugly workarounds and shouldn't be relied upon. Please tell us what your 4th row of v$sgastat (shared pool free memory) changes.

Locks could be another reason, although less likely.  Familiarize yourself with v$lock (except MR, RT locks) and v$locked_object, v$transaction. Tell us what's in v$lock.

In any case, whenever you have performance problems, tell us what you see in v$session_wait (except for idle waits such as %timer%, %message%). Never waste money on monitoring tools such as spotlight, unless you already know these v$ views very well.

Yong Huang

最初由 oases 发布
[B]我有一个数据库,其中大部分表的记录数都有几百万,这样的表大概有十几个,平时常做的操作是SELECT ,INSERT,偶尔有做UPDATE和TRUNCATE PARTITION的操作。现在经常发现数据库写入数据的速度变慢,如果重新启动速度就回恢复正常,请问各位高手,这是为什么呢? [/B]

使用道具 举报

回复

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

本版积分规则 发表回复

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