- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2012-1-31 22:07:06
ODM Data:
SESSION_CACHED_CURSORS will cause closed cursors to be cached within the session so that a subsequent call to parse the statement will bypass the parse phase. This is similar to HOLD_CURSORS in the precompilers. One point to be careful about is that if this parameter is set to a high value, the amount of fragmentation in the shared pool may be increased. Another thing to note is that if the value of this parameter is less than the cursors that are closed before the first one is reopened, you will never see the benefit of the cache since the first cursor would have been aged out already.
As maclean said:
A cursor should be either an open cursor or session cached cursor , not both
After you have closed the cursor , it may become session cached cursor , If it satisfied the requirement . |
|