Buffer gets increase on the same SQL

同样一条SQL ,有的时候 buffer get 会暴增?! Oracle-L 中有人提了一个这样的问题

I have a batch process that executes individual transactions, normally
a transaccion e.g. a simple select would take 8-10 buffer gets but in
the batch processing it takes 45 buffer gets.

Zhu Chao (Chao_ping,这家伙现在一篇文章都不写,只能从邮件列表里看到他的踪迹) 给了一个解释

the job is processing some very hot blocks. So it always need to reverse back and find the CR block from buffer, so it will generate some more buffer gets for that execution.

如果是因为Hot Block 的原因,那么主要的症状应该是 Wait. 如果这个 SQL 在运行的时候数据已经发生了变化,那么为了维持一致性不可避免的会生成回滚,所以这个解释更为准确一些:

If a query does a consistent get on a block that has been changed since that query began or that had uncommitted changes at the time that that query began, then it is necessary to rollback those changes for read consistency. The consistent changes statistics counts the number changes rolled back. However, most consistent gets do not require any such rollback, and so it is normal for the number of consistent gets to be much greater than the number of consistent changes. This is reflected in the no work – consistent read gets statistic

我们不妨来做个例子.假定我们现在有两个Session,首先在第一个窗口做如下操作

继续阅读

Alibaba acquire Yahoo! China ?

Yahoo! 投资阿里巴巴? 阿里巴巴收购 Yahoo! 中国业务? 看看一个新闻可以有多少版本?

国外的新闻站点,都是从 Yahoo! 出发.恰恰和国内相反.国外的新闻给阿里巴巴的称谓有两个:一个是中国版本的 eBay ; 另一个是中国的 B2B 公司.都没有抛开”中国”这个限定词. 由此可能也可以看出来阿里巴巴的国际影响力.

福布斯英文站点头条:Inside Yahoo’s China Deal。给阿里巴巴的定语是:China’s biggest homegrown e-commerce company

继续阅读

阿里巴巴和 Yahoo! 联姻?!

今天居然同时看到两则和阿里巴巴有关的传言.第一个是据传 Yahoo! 准备以10亿美金收购阿里巴巴 35% 的股份;第二个是据传Amazon要和阿里巴巴合作,一亿美金打造B2C市场。都是百度上市惹的祸,现在估计有一大部分人都在寻找下一个能书写传奇的公司。阿里巴巴肯定是必选之一。因为据说目前只有两个公司拒绝过上市,一个是风头无两的Google,另一个就是阿里巴巴了。

有一点无疑的是,阿里巴巴是一块肥肉。阿里巴巴有业绩,有市场,手中握着大把的资源,不缺钱,可以全力打造淘宝网,也可以全力打造支付宝。B2B、C2C、电子支付领域都独领风骚。即使是全球 C2C 领头羊 eBay 也不敢对阿里巴巴掉以轻心。如果Yahoo!真的能以 1 Billion 收购阿里巴巴 35% 的股份,那么 Yahoo! 未免太划算了一些吧!

继续阅读

数据库安全与花喇子模信使问题

最近关于数据库安全有个有趣的问题。Oracle 公司的CSO(chief security officer)写了一篇文章,When security researchers become the problem,首先这位 Davidson 不认为安全研究人员 “push vendors to work faster” 是个好事情; 更为可笑的是 Davidson 觉得这个安全研究人员其实都是为了谋利益而来的:

Many researchers think that the more vulnerabilities they disclose publicly, the more vendors will hire them as consultants.

这多少有点小人之心度君子之腹了.这篇文章一经发出,在安全届引起了不小的讨论.

继续阅读