- 最后登录
- 2014-3-28
- 在线时间
- 118 小时
- 威望
- 5
- 金钱
- 394
- 注册时间
- 2011-10-12
- 阅读权限
- 100
- 帖子
- 110
- 精华
- 0
- 积分
- 5
- UID
- 10
|
2#
发表于 2012-8-15 15:40:45
1.Closing a Cursor
Closing a cursor makes its information inaccessible and deallocates the memory that it
uses. After a cursor opens, it does not close until the user program terminates its
connection to the server.
An OCI program or precompiler application that follows good programming practice
explicitly closes open cursors during program execution. If the program terminates
without closing an open cursor, then that cursor closes implicitly.
Canceling a Cursor
Canceling a cursor frees resources from the current fetch.The information in the
associated private area is lost but the cursor remains open, parsed, and associated with
its bind variables.
In general, applications should close all open cursors that will not be used again to free
the persistent area and to minimize the memory required for application users.
note: information above derived from Oracle11gr2 Concepts & Oracle11gr2 Advanced Application Developer's Guide and only for reference |
|