Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Number of Open Cursors
You can issue the following query for a particular session, given the
sid of the session:
select sum(decode(sn.name,'opened cursors current',se.value)) "Current Cursors"
from v$sesstat se, v$statname sn
where se.statistic# = sn.statistic#
and se.sid = :sid
In article <373C5122.D8D053EE_at_bentley.com>,
Tom Best <tom.best_at_bentley.com> wrote:
>Is there a way to determine the number of open cursors in a particular
>DB connection? I'm using OCI.
>
>Thanks.
>Tom Best
Received on Tue May 18 1999 - 11:09:24 CDT
![]() |
![]() |