12
返回列表 发新帖
楼主: 降龙十八掌

有个关于cache的问题,请指教

[复制链接]
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
11#
发表于 2001-12-9 14:03 | 只看该作者
If it's say "For example" every 3 Sec. maybe o.k. Otherwise totally misleading!
Why you need all that parameters ? What all control variables for?
Do you take that as true?
Sorry, I don't know where can sent the 悄悄话. how about just post your problems here if not the 悄悄话?

使用道具 举报

回复
论坛徽章:
126
咸鸭蛋
日期:2011-08-22 23:47:37优秀写手
日期:2013-12-18 09:29:152014年新春福章
日期: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:142015年新春福章
日期:2015-03-04 14:19:11
12#
发表于 2001-12-10 09:43 | 只看该作者
I do like to post my questions and all my experience here.  I just wish I can have some good resourses when I really need help sometime. Maybe  I asked too much.

Here is some information about LGWR for your refenerce:

From Oracle training Book, enterprise DBA Part 1B: backup and Recovery Workshop, Page 2-15:

Function of the LGWR Background Process
The log writer(LAWR) writes redo entries to the redo log files that have been copied into redo log buffer since the last time it wrote to the redo log files:

1. when the redo log buffer is one-third full
2. when a timeout occures (every three seconds)
3. before DBWn writes modified blocks in the database buffer cache to the data files
4. When a transaction commits
5. As long as the database, if obliged to archive the redo log files, did archive the redo log to be overwritten again

And about DBW0, on the training book:
DBW0 write when:
1.The number of dirty buffers reaches a threshold value (snowhite:  on DIRTY LIST)
2. a sprocess scans a specified number of blocks when scanning for free buffers and cannot find any (snonwhite:  on LRU)
3. A timeout occurs (every three sconds)
4. a checkpoint occurs

I also remember on another Oracle training class - Oracle internal, Oracle explains the parameters controling the values of DIRTY LIST and LRU.  I am sorry I don't have that material now.

使用道具 举报

回复
论坛徽章:
3
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33会员2006贡献徽章
日期:2006-04-17 13:46:34
13#
发表于 2001-12-10 13:47 | 只看该作者
what snowhite post is  clear enough .

我讨厌  这样的词 “请指教(低手不宜) ”

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:182012新春纪念徽章
日期:2012-02-13 15:11:18马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:18
14#
 楼主| 发表于 2001-12-10 20:27 | 只看该作者
闻过即改

其实我也是不得已才出此下策,否则这个问题也不会有人回答,不过,这个问题确实有质量。希望有更多人深入探讨一下Oracle的内部机制,这样更有利于理解Oracle的运作。

使用道具 举报

回复
招聘 : Hadoop大数据库开发
论坛徽章:
39
生肖徽章2007版:猴
日期:2008-01-02 17:35:532010年世界杯参赛球队:阿根廷
日期:2010-07-02 16:05:252010年世界杯参赛球队:加纳
日期:2010-04-26 12:31:372010新春纪念徽章
日期:2010-03-01 11:06:23祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:22生肖徽章2007版:猴
日期:2009-03-10 21:29:55生肖徽章2007版:猴
日期:2009-03-10 21:23:27IT宝贝
日期:2009-02-18 13:00:30生肖徽章2007版:猴
日期:2008-12-25 14:22:01
15#
发表于 2001-12-10 21:21 | 只看该作者

Re: 在上海办的Oracle新技术发布会

[1、如果Dirty list超过1/3满了,DBWR自动写dirty buffer到文件也会出发LGWR吗?
2、如果Buffer Cache在3秒后自动进行一次DBWR,那也会触发LGWR吗?
[/B][/QUOTE]
lgwr进程在启动事例时自动启动。
lgwr进行写操作的情况在:
1、用户进程提交一个事物(commit);
2、日志缓冲区达到1/3范围,DBWR对一个检查点需要清除缓冲快;
3、出现超时(3秒钟未活动,则进行一次写操作);

使用道具 举报

回复
论坛徽章:
2
ITPUB元老
日期:2005-02-28 12:57:00授权会员
日期:2005-10-30 17:05:33
16#
发表于 2001-12-11 09:45 | 只看该作者
我上星期在metalink上无意中找到这个文件,觉得对你有帮助.
它详细的解释了dbwr和cache manager的概念问题.

我在这里顺便问一个问题,我们如何在metalink上找到类似的文档?
比如说lgwr,checkpoint的更深入讨论.我知道很多人都不是很清楚,
我就是其中一个.
假如有100个这样的文档.我们便好使了.

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
17#
发表于 2001-12-12 06:21 | 只看该作者
machao:  Thank you for the paper attaching, which help many of us to clear out the misleading stuff  from Oracle Education.
How to use Metalink, you can find out from on line help or just use KEY Words search, i.e. LGRW,
CHECKPOINT....  Most of those papers from Oracle Developer team and Oracle Support team, with much precise technical description compare to the lousy Oracle Education materials, and the best quality of papers are from Oracle COE team,  unfortunately, those papers for Oracle internal only.

使用道具 举报

回复

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

本版积分规则 发表回复

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