您的位置:首页 > 其它

cursor_space_for_time 表示de意思

2010-11-30 19:15 519 查看
根据Oracle Metalink文档 Note:565424.1,CURSOR_SPACE_FOR_TIME 参数已经被Oracle放弃。

最先放弃的版本是:10.2.0.5 and 11.1.0.7
在早期的版本中,用户可以通过设置这个参数为True,使得Oracle使用更多的Shared SQL Area去保存SQL,从而提高反复执行SQL解析的速度。
然而随着Oracle Mutexes Pin机制的引入,用户已经几乎不再会从这个参数中受益,加上在某些特定的环境下,这个参数可能会导致严重Bug,随意最终,这个参数被废弃。

在文档中,这个参数的说明大致如下:

CURSOR_SPACE_FOR_TIME lets you use more space for cursors in order to save time. It affects both the shared SQL area and the client's private SQL area.
Values True means take the benifits of this parameter,With True setting Shared SQL areas are kept pinned in the shared pool. As a result, shared SQL areas are not aged out of the pool as long as an open cursor references them. Because each active cursor's SQL area is present in memory, execution is faster. However, the shared SQL areas never leave memory while they are in use. Therefore, you should set this parameter to TRUE only when the shared pool is large enough to hold all open cursors simultaneously.

In addition, a setting of TRUE retains the private SQL area allocated for each cursor between executions instead of discarding it after cursor execution, saving cursor allocation and initialization time
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: