How to find Open Cursors [message #190801] |
Fri, 01 September 2006 05:40 |
be2sp1
Messages: 52 Registered: September 2005 Location: India
|
Member |
|
|
Hi,
I would like to know if we can get the list of open cursors that are unncessarily residing in memory because they were not closed in the code. What data dictionary of ORACLE actually holds this information.
Thanks
|
|
|
|
Re: How to find Open Cursors [message #190899 is a reply to message #190832] |
Sat, 02 September 2006 01:22 |
be2sp1
Messages: 52 Registered: September 2005 Location: India
|
Member |
|
|
Hmm.......would like to clarify my point.
Web applications frequently connect to Databases for fetching information and this process is generally achieved by opening some cursors say by running a stored procedure and returning a ref cursor or a normal cursor. I want to during this process, if some of the cursors are left open.
Thanks
|
|
|
|
|
Re: How to find Open Cursors [message #190941 is a reply to message #190925] |
Sat, 02 September 2006 21:50 |
be2sp1
Messages: 52 Registered: September 2005 Location: India
|
Member |
|
|
Hi,
w.r.t your reply, i would like to associate object with the row present in V$OPEN_CURSOR. What i mean is, can we locate the DB object (query etc)that actually opened this cursor through object_id or something. This will help me in finding as to which part of the source code (front end or any of the procedures) opened this cursor and whether it is supposed to be open or not.
thanks
|
|
|
|
Re: How to find Open Cursors [message #190943 is a reply to message #190942] |
Sun, 03 September 2006 00:01 |
be2sp1
Messages: 52 Registered: September 2005 Location: India
|
Member |
|
|
i am actually handling the back end part of a web application project and wanted to see for my curiosity, if developers by mistake forgot to close the connections/cursors/sqlstatements in their java code.
Anyways thanks for your response.
|
|
|