Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

11

积分

0

好友

0

主题
1#
发表于 2012-8-15 15:21:01 | 查看: 3093| 回复: 1
问题:
1、过程中显式打开的游标,如果没有显式关闭,那么过程结束后游标会自动关闭吗?
2、如果过程返回的是游标,那么如何关闭游标,或者说系统会自动关闭游标?
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

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 02:53 , Processed in 0.052605 second(s), 22 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569