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

刚startup后负载很高这种问题怎么解决呀

[复制链接]
论坛徽章:
1
2011新春纪念徽章
日期:2011-01-04 10:35:48
11#
 楼主| 发表于 2009-10-14 09:52 | 只看该作者
你们的意思简单说是不是充许程序连接前先把常所有的查询先查一遍,让他在内存当中可以找到,对吗?delete和UPDATE呢?

使用道具 举报

回复
论坛徽章:
1
2011新春纪念徽章
日期:2011-01-04 10:35:48
12#
 楼主| 发表于 2009-10-14 11:57 | 只看该作者
太多sql语句了,不可能全部执行一次吧,有没有其它更好办法呢》?

使用道具 举报

回复
论坛徽章:
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
13#
发表于 2009-10-15 00:26 | 只看该作者
feijizjh, I said queries only. If you have deletes and updates, just run queries against the tables the deletes and updates reference. If you really want, you can also run the deletes and updates and immediately rollback. You didn't seem to get the point. The point is to bring the blocks into buffer cache. We don't care what the actual SQLs are like. If you have too many SQLs, just pick a few tables that are referenced often in those SQLs.

viadeazhu, I agree it's a good idea to let the app warm up the buffer cache. The great philosopher Zhuang Zi said "Do nothing and nothing is left undone!" But it's possible that the users expect to come to office in the morning and start to work expecting immediate response even at the beginning. If so, DBAs can do something to make them happier. Otherwise, hire a low-wage secretary to go through some typical screens of the app very early in the morning, before the VIP users come in. Otherwise, just configure keep cache and throw frequently used tables into it.

Before we make such suggestions, can we make sure the frequently run SQLs are all tuned?

Yong Huang

使用道具 举报

回复
论坛徽章:
75
生肖徽章:猪
日期:2014-09-05 10:25:05指数菠菜纪念章
日期:2016-10-17 16:12:49生肖徽章:兔
日期:2015-02-05 16:49:02生肖徽章:鼠
日期:2015-02-05 16:49:02生肖徽章:鼠
日期:2015-02-05 16:49:02生肖徽章:马
日期:2015-02-05 16:49:02生肖徽章:羊
日期:2015-02-06 08:40:35生肖徽章:羊
日期:2015-02-06 08:40:34股神
日期:2015-01-05 08:27:16菲尼克斯太阳
日期:2014-12-29 13:11:51
14#
发表于 2009-10-15 09:50 | 只看该作者
Why the oracle  so frequently bounce?
I means if the db is only shutdown and open once in half a year, this question maybe is not real problem.

使用道具 举报

回复
论坛徽章:
1
2011新春纪念徽章
日期:2011-01-04 10:35:48
15#
 楼主| 发表于 2009-10-15 11:45 | 只看该作者
也不是这样的,我们公司是互连网公司,经常因为机房当网或其它原困要切换DATAGUARD,所以不是开起半年一年才STARTUP,谢谢大家的指教!

使用道具 举报

回复

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

本版积分规则 发表回复

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