﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>老熊的三分地-Oracle、UNIX、数据恢复 的评论</title>
	<atom:link href="http://www.laoxiong.net/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.laoxiong.net</link>
	<description>老熊的生活、Oracle及UNIX技术、Oracle数据恢复工具、观点</description>
	<pubDate>Sat, 04 Feb 2012 23:09:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>warmbreeze 对于 防火墙、DCD与TCP Keep alive 的评论</title>
		<link>http://www.laoxiong.net/firewall-dcd-and-tcp-keep-alive.html/comment-page-1#comment-1338</link>
		<dc:creator>warmbreeze</dc:creator>
		<pubDate>Wed, 18 Jan 2012 01:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=900#comment-1338</guid>
		<description>写的太好了</description>
		<content:encoded><![CDATA[<p>写的太好了</p>
]]></content:encoded>
	</item>
	<item>
		<title>roger 对于 防火墙、DCD与TCP Keep alive 的评论</title>
		<link>http://www.laoxiong.net/firewall-dcd-and-tcp-keep-alive.html/comment-page-1#comment-1337</link>
		<dc:creator>roger</dc:creator>
		<pubDate>Tue, 17 Jan 2012 11:12:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=900#comment-1337</guid>
		<description>顶你！</description>
		<content:encoded><![CDATA[<p>顶你！</p>
]]></content:encoded>
	</item>
	<item>
		<title>老熊 对于 防火墙、DCD与TCP Keep alive 的评论</title>
		<link>http://www.laoxiong.net/firewall-dcd-and-tcp-keep-alive.html/comment-page-1#comment-1336</link>
		<dc:creator>老熊</dc:creator>
		<pubDate>Tue, 17 Jan 2012 02:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=900#comment-1336</guid>
		<description>@ochef, 谢谢您的肯定。</description>
		<content:encoded><![CDATA[<p>@ochef, 谢谢您的肯定。</p>
]]></content:encoded>
	</item>
	<item>
		<title>ochef 对于 防火墙、DCD与TCP Keep alive 的评论</title>
		<link>http://www.laoxiong.net/firewall-dcd-and-tcp-keep-alive.html/comment-page-1#comment-1335</link>
		<dc:creator>ochef</dc:creator>
		<pubDate>Tue, 17 Jan 2012 02:16:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=900#comment-1335</guid>
		<description>写得太好了，特别是最后总结的两点，曾经遇到过类似案例，是一套AIX5.3 + 9.2.0.1的RAC。</description>
		<content:encoded><![CDATA[<p>写得太好了，特别是最后总结的两点，曾经遇到过类似案例，是一套AIX5.3 + 9.2.0.1的RAC。</p>
]]></content:encoded>
	</item>
	<item>
		<title>老熊的三分地-Oracle、UNIX、数据恢复 &#187; Blog Archive &#187; 防火墙、DCD与TCP Keep alive 对于 Oracle与防火墙 的评论</title>
		<link>http://www.laoxiong.net/oracle_and_firewall.html/comment-page-1#comment-1334</link>
		<dc:creator>老熊的三分地-Oracle、UNIX、数据恢复 &#187; Blog Archive &#187; 防火墙、DCD与TCP Keep alive</dc:creator>
		<pubDate>Mon, 16 Jan 2012 16:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=90#comment-1334</guid>
		<description>[...] 在以前我写的一篇文章《Oracle与防火墙》中提到，网络防火墙会切断长时间空闲的TCP连接，这个空闲时间具体多长可以在防火墙内部进行设置。防火墙切断连接之后，会有下面的可能： [...]</description>
		<content:encoded><![CDATA[<p>[...] 在以前我写的一篇文章《Oracle与防火墙》中提到，网络防火墙会切断长时间空闲的TCP连接，这个空闲时间具体多长可以在防火墙内部进行设置。防火墙切断连接之后，会有下面的可能： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>myownstars 对于 修改隐含参数_library_cache_advice解决性能问题一例 的评论</title>
		<link>http://www.laoxiong.net/resolve-performance-problem-using-library-cache-advice-parameter.html/comment-page-1#comment-1331</link>
		<dc:creator>myownstars</dc:creator>
		<pubDate>Thu, 12 Jan 2012 08:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=857#comment-1331</guid>
		<description>老熊， 请问为何这两个等待会比其他latch竞争更加消耗资源：
从等待来看，latch: cache buffers chains和cursor: pin S都会引起CPU的急剧增加，而其他的latch竞争同样也会引起CPU的上升，虽然上升没有前者大

谢谢</description>
		<content:encoded><![CDATA[<p>老熊， 请问为何这两个等待会比其他latch竞争更加消耗资源：<br />
从等待来看，latch: cache buffers chains和cursor: pin S都会引起CPU的急剧增加，而其他的latch竞争同样也会引起CPU的上升，虽然上升没有前者大</p>
<p>谢谢</p>
]]></content:encoded>
	</item>
	<item>
		<title>老熊 对于 Hint的常见错误使用方式 的评论</title>
		<link>http://www.laoxiong.net/common-incorrect-using-hints.html/comment-page-1#comment-1330</link>
		<dc:creator>老熊</dc:creator>
		<pubDate>Tue, 10 Jan 2012 14:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=819#comment-1330</guid>
		<description>的确是个很奇怪的现象。下面是我测试的结果，第1次带有nologging，redosize为0，但是第2次insert仍然带有nologging，redosize就变成了1100，第3次insert不带有nologging，redosize仍然是1100。

SQL&gt; set autot on
SQL&gt; insert into t2 select * from t1 nologging;

已创建10行。


执行计划
----------------------------------------------------------
Plan hash value: 3617692013

--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; T1   &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


统计信息
----------------------------------------------------------
        266  recursive calls
          8  db block gets
         40  consistent gets
          0  physical reads
          0  redo size
       1767  bytes sent via SQL*Net to client
       1149  bytes received via SQL*Net from client
          6  SQL*Net roundtrips to/from client
          2  sorts (memory)
          0  sorts (disk)
         10  rows processed

SQL&gt; insert into t2 select * from t1 nologging;

已创建10行。


执行计划
----------------------------------------------------------
Plan hash value: 3617692013
--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; T1   &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


统计信息
----------------------------------------------------------
          0  recursive calls
          1  db block gets
          7  consistent gets
          0  physical reads
       1100  redo size
        908  bytes sent via SQL*Net to client
        950  bytes received via SQL*Net from client
          4  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
         10  rows processed

SQL&gt; insert into t2 select * from t1 ;

已创建10行。


执行计划
----------------------------------------------------------
Plan hash value: 3617692013

--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; T1   &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------



统计信息
----------------------------------------------------------
          1  recursive calls
          1  db block gets
          7  consistent gets
          0  physical reads
       1100  redo size
        908  bytes sent via SQL*Net to client
        941  bytes received via SQL*Net from client
          4  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
         10  rows processed
         

我们再做另一个测试，第1次插入不带nologging，而第2次插入带nologging，这一次测试不带nologging的redosize反而是0了。

SQL&gt; truncate table t2;

表被截断。

SQL&gt; set autot on
SQL&gt; insert into t2 select * from     t1;

已创建10行。


执行计划
----------------------------------------------------------
Plan hash value: 3617692013

--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; T1   &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


统计信息
----------------------------------------------------------
          1  recursive calls
          8  db block gets
         13  consistent gets
          0  physical reads
          0  redo size
       1769  bytes sent via SQL*Net to client
       1143  bytes received via SQL*Net from client
          6  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
         10  rows processed

SQL&gt; insert into t2 select * from     t1 nologging;

已创建10行。


执行计划
----------------------------------------------------------
Plan hash value: 3617692013

--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; T1   &#124; 11402 &#124;   946K&#124;    40   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


统计信息
----------------------------------------------------------
          1  recursive calls
          1  db block gets
          7  consistent gets
          0  physical reads
       1100  redo size
        909  bytes sent via SQL*Net to client
        954  bytes received via SQL*Net from client
          4  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
         10  rows processed
看起来这应该是autotrace的问题，准确的结果应该是看v$sesstat里面的redosize统计值。</description>
		<content:encoded><![CDATA[<p>的确是个很奇怪的现象。下面是我测试的结果，第1次带有nologging，redosize为0，但是第2次insert仍然带有nologging，redosize就变成了1100，第3次insert不带有nologging，redosize仍然是1100。</p>
<p>SQL> set autot on<br />
SQL> insert into t2 select * from t1 nologging;</p>
<p>已创建10行。</p>
<p>执行计划<br />
----------------------------------------------------------<br />
Plan hash value: 3617692013</p>
<p>--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      | 11402 |   946K|    40   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| T1   | 11402 |   946K|    40   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>统计信息<br />
----------------------------------------------------------<br />
        266  recursive calls<br />
          8  db block gets<br />
         40  consistent gets<br />
          0  physical reads<br />
          0  redo size<br />
       1767  bytes sent via SQL*Net to client<br />
       1149  bytes received via SQL*Net from client<br />
          6  SQL*Net roundtrips to/from client<br />
          2  sorts (memory)<br />
          0  sorts (disk)<br />
         10  rows processed</p>
<p>SQL> insert into t2 select * from t1 nologging;</p>
<p>已创建10行。</p>
<p>执行计划<br />
----------------------------------------------------------<br />
Plan hash value: 3617692013<br />
--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      | 11402 |   946K|    40   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| T1   | 11402 |   946K|    40   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>统计信息<br />
----------------------------------------------------------<br />
          0  recursive calls<br />
          1  db block gets<br />
          7  consistent gets<br />
          0  physical reads<br />
       1100  redo size<br />
        908  bytes sent via SQL*Net to client<br />
        950  bytes received via SQL*Net from client<br />
          4  SQL*Net roundtrips to/from client<br />
          1  sorts (memory)<br />
          0  sorts (disk)<br />
         10  rows processed</p>
<p>SQL> insert into t2 select * from t1 ;</p>
<p>已创建10行。</p>
<p>执行计划<br />
----------------------------------------------------------<br />
Plan hash value: 3617692013</p>
<p>--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      | 11402 |   946K|    40   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| T1   | 11402 |   946K|    40   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>统计信息<br />
----------------------------------------------------------<br />
          1  recursive calls<br />
          1  db block gets<br />
          7  consistent gets<br />
          0  physical reads<br />
       1100  redo size<br />
        908  bytes sent via SQL*Net to client<br />
        941  bytes received via SQL*Net from client<br />
          4  SQL*Net roundtrips to/from client<br />
          1  sorts (memory)<br />
          0  sorts (disk)<br />
         10  rows processed</p>
<p>我们再做另一个测试，第1次插入不带nologging，而第2次插入带nologging，这一次测试不带nologging的redosize反而是0了。</p>
<p>SQL> truncate table t2;</p>
<p>表被截断。</p>
<p>SQL> set autot on<br />
SQL> insert into t2 select * from     t1;</p>
<p>已创建10行。</p>
<p>执行计划<br />
----------------------------------------------------------<br />
Plan hash value: 3617692013</p>
<p>--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      | 11402 |   946K|    40   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| T1   | 11402 |   946K|    40   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>统计信息<br />
----------------------------------------------------------<br />
          1  recursive calls<br />
          8  db block gets<br />
         13  consistent gets<br />
          0  physical reads<br />
          0  redo size<br />
       1769  bytes sent via SQL*Net to client<br />
       1143  bytes received via SQL*Net from client<br />
          6  SQL*Net roundtrips to/from client<br />
          1  sorts (memory)<br />
          0  sorts (disk)<br />
         10  rows processed</p>
<p>SQL> insert into t2 select * from     t1 nologging;</p>
<p>已创建10行。</p>
<p>执行计划<br />
----------------------------------------------------------<br />
Plan hash value: 3617692013</p>
<p>--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      | 11402 |   946K|    40   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| T1   | 11402 |   946K|    40   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>统计信息<br />
----------------------------------------------------------<br />
          1  recursive calls<br />
          1  db block gets<br />
          7  consistent gets<br />
          0  physical reads<br />
       1100  redo size<br />
        909  bytes sent via SQL*Net to client<br />
        954  bytes received via SQL*Net from client<br />
          4  SQL*Net roundtrips to/from client<br />
          1  sorts (memory)<br />
          0  sorts (disk)<br />
         10  rows processed<br />
看起来这应该是autotrace的问题，准确的结果应该是看v$sesstat里面的redosize统计值。</p>
]]></content:encoded>
	</item>
	<item>
		<title>bamboo 对于 Hint的常见错误使用方式 的评论</title>
		<link>http://www.laoxiong.net/common-incorrect-using-hints.html/comment-page-1#comment-1329</link>
		<dc:creator>bamboo</dc:creator>
		<pubDate>Tue, 10 Jan 2012 13:00:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=819#comment-1329</guid>
		<description>INSERT INTO T1 SELECT * FROM T2 NOLOGGING;
这个sql语句是不会产生redo日志，以下是我做的实验
（1）这个sql是用nologging，在执行计划中，redosize是0
SQL&gt; set autotrace on;
SQL&gt; insert into emp01 select * from emp nologging;

14 rows created.


Execution Plan
----------------------------------------------------------
Plan hash value: 3956160932

--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124;    14 &#124;   518 &#124;     3   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; EMP  &#124;    14 &#124;   518 &#124;     3   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


Statistics
----------------------------------------------------------
        461  recursive calls
          5  db block gets
        123  consistent gets
         16  physical reads
          0  redo size
        671  bytes sent via SQL*Net to client
        581  bytes received via SQL*Net from client
          4  SQL*Net roundtrips to/from client
          8  sorts (memory)
          0  sorts (disk)
         14  rows processed
（2）下面sql不添加nologging，redo size是不为0的
SQL&gt; insert into emp01 select * from emp;

14 rows created.


Execution Plan
----------------------------------------------------------
Plan hash value: 3956160932

--------------------------------------------------------------------------
&#124; Id  &#124; Operation         &#124; Name &#124; Rows  &#124; Bytes &#124; Cost (%CPU)&#124; Time     &#124;
--------------------------------------------------------------------------
&#124;   0 &#124; INSERT STATEMENT  &#124;      &#124;    14 &#124;   518 &#124;     3   (0)&#124; 00:00:01 &#124;
&#124;   1 &#124;  TABLE ACCESS FULL&#124; EMP  &#124;    14 &#124;   518 &#124;     3   (0)&#124; 00:00:01 &#124;
--------------------------------------------------------------------------


Statistics
----------------------------------------------------------
          1  recursive calls
          3  db block gets
          8  consistent gets
          0  physical reads
        940  redo size
        675  bytes sent via SQL*Net to client
        571  bytes received via SQL*Net from client
          4  SQL*Net roundtrips to/from client
          1  sorts (memory)
          0  sorts (disk)
         14  rows processed</description>
		<content:encoded><![CDATA[<p>INSERT INTO T1 SELECT * FROM T2 NOLOGGING;<br />
这个sql语句是不会产生redo日志，以下是我做的实验<br />
（1）这个sql是用nologging，在执行计划中，redosize是0<br />
SQL&gt; set autotrace on;<br />
SQL&gt; insert into emp01 select * from emp nologging;</p>
<p>14 rows created.</p>
<p>Execution Plan<br />
----------------------------------------------------------<br />
Plan hash value: 3956160932</p>
<p>--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      |    14 |   518 |     3   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| EMP  |    14 |   518 |     3   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>Statistics<br />
----------------------------------------------------------<br />
        461  recursive calls<br />
          5  db block gets<br />
        123  consistent gets<br />
         16  physical reads<br />
          0  redo size<br />
        671  bytes sent via SQL*Net to client<br />
        581  bytes received via SQL*Net from client<br />
          4  SQL*Net roundtrips to/from client<br />
          8  sorts (memory)<br />
          0  sorts (disk)<br />
         14  rows processed<br />
（2）下面sql不添加nologging，redo size是不为0的<br />
SQL&gt; insert into emp01 select * from emp;</p>
<p>14 rows created.</p>
<p>Execution Plan<br />
----------------------------------------------------------<br />
Plan hash value: 3956160932</p>
<p>--------------------------------------------------------------------------<br />
| Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |<br />
--------------------------------------------------------------------------<br />
|   0 | INSERT STATEMENT  |      |    14 |   518 |     3   (0)| 00:00:01 |<br />
|   1 |  TABLE ACCESS FULL| EMP  |    14 |   518 |     3   (0)| 00:00:01 |<br />
--------------------------------------------------------------------------</p>
<p>Statistics<br />
----------------------------------------------------------<br />
          1  recursive calls<br />
          3  db block gets<br />
          8  consistent gets<br />
          0  physical reads<br />
        940  redo size<br />
        675  bytes sent via SQL*Net to client<br />
        571  bytes received via SQL*Net from client<br />
          4  SQL*Net roundtrips to/from client<br />
          1  sorts (memory)<br />
          0  sorts (disk)<br />
         14  rows processed</p>
]]></content:encoded>
	</item>
	<item>
		<title>Sidney 对于 修改隐含参数_library_cache_advice解决性能问题一例 的评论</title>
		<link>http://www.laoxiong.net/resolve-performance-problem-using-library-cache-advice-parameter.html/comment-page-1#comment-1323</link>
		<dc:creator>Sidney</dc:creator>
		<pubDate>Mon, 02 Jan 2012 13:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=857#comment-1323</guid>
		<description>老熊，
想再问一个问题，recreatable内存块unpin的时候需要链接到shared pool，所以需要获取shared pool latch。这个地方有什么oracle 文档说明吗，或者是否有实验可以证明？
虽然这样的解释很自然，但是这样意味着sql开始执行，需要把cursor pin住，所以要获取一次shared pool latch, 执行结束的时候，unpin cursor，又需要再获取一次shared pool latch。代价可能太大了。

我们做一个oradebug dump heapdump 2的时候，打印出来的LRU List都是unpinned的recreatable的内存快，我很好奇，被pinned住的内存块是不是真的不在LRU list上面，还是实事上一直在LRU list上面，仅仅是dump的时候被跳过而已。另外的一种可能性是，share pool里的LRU List采取了类似buffer poo里面LRU+TCH的算法，share pool latch只是去更新TCH，当然，这只是猜测而已。Jonathan Lewis在他的新书“Oracle Core”提到这个问题

如果我在一个pl/sql做一个循环，把一条使用绑定变量的sql执行1000次，shared pool latch获取的次数只有72次。

最后，下面的creatable应该是recreatable :-)

---quote---
在oracle中kghupr1这个函数是干什么的呢，简单来说就是un-pin recreatable内存块，其主要目的是要将creatable的内存块链接到shared pool的LRU链表中，在这个过程中要持有shared pool latch。</description>
		<content:encoded><![CDATA[<p>老熊，<br />
想再问一个问题，recreatable内存块unpin的时候需要链接到shared pool，所以需要获取shared pool latch。这个地方有什么oracle 文档说明吗，或者是否有实验可以证明？<br />
虽然这样的解释很自然，但是这样意味着sql开始执行，需要把cursor pin住，所以要获取一次shared pool latch, 执行结束的时候，unpin cursor，又需要再获取一次shared pool latch。代价可能太大了。</p>
<p>我们做一个oradebug dump heapdump 2的时候，打印出来的LRU List都是unpinned的recreatable的内存快，我很好奇，被pinned住的内存块是不是真的不在LRU list上面，还是实事上一直在LRU list上面，仅仅是dump的时候被跳过而已。另外的一种可能性是，share pool里的LRU List采取了类似buffer poo里面LRU+TCH的算法，share pool latch只是去更新TCH，当然，这只是猜测而已。Jonathan Lewis在他的新书“Oracle Core”提到这个问题</p>
<p>如果我在一个pl/sql做一个循环，把一条使用绑定变量的sql执行1000次，shared pool latch获取的次数只有72次。</p>
<p>最后，下面的creatable应该是recreatable :-)</p>
<p>---quote---<br />
在oracle中kghupr1这个函数是干什么的呢，简单来说就是un-pin recreatable内存块，其主要目的是要将creatable的内存块链接到shared pool的LRU链表中，在这个过程中要持有shared pool latch。</p>
]]></content:encoded>
	</item>
	<item>
		<title>Sidney 对于 修改隐含参数_library_cache_advice解决性能问题一例 的评论</title>
		<link>http://www.laoxiong.net/resolve-performance-problem-using-library-cache-advice-parameter.html/comment-page-1#comment-1322</link>
		<dc:creator>Sidney</dc:creator>
		<pubDate>Mon, 02 Jan 2012 13:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.laoxiong.net/?p=857#comment-1322</guid>
		<description>老熊，
这句话怎么理解，是因为这两个latch获取的次数多？ latch: cache buffers chains是不是应该是 latch:cache buffers lru chain?

从等待来看，latch: cache buffers chains和cursor: pin S都会引起CPU的急剧增加，而其他的latch竞争同样也会引起CPU的上升，虽然上升没有前者大</description>
		<content:encoded><![CDATA[<p>老熊，<br />
这句话怎么理解，是因为这两个latch获取的次数多？ latch: cache buffers chains是不是应该是 latch:cache buffers lru chain?</p>
<p>从等待来看，latch: cache buffers chains和cursor: pin S都会引起CPU的急剧增加，而其他的latch竞争同样也会引起CPU的上升，虽然上升没有前者大</p>
]]></content:encoded>
	</item>
</channel>
</rss>

