如何在Oracle中显示打开的游标?
问题:
您要在Oracle中显示打开的游标。
解
我们可以查询数据字典以确定每个会话打开的游标数。与“V$OPEN_CURSOR”相比,“V$SESSION”提供的当前打开的游标数更准确。
示例
select a.value ,c.username ,c.machine ,c.sid ,c.serial# from v$sesstat a ,v$statname b ,v$session c where a.statistic# = b.statistic# and c.sid = a.sid and b.name = 'opened cursors current' and a.value != 0 and c.username IS NOT NULL order by 1,2;
OPEN_CURSORS初始化参数确定会话可以打开的最大游标数。
热门推荐
10 小学毕业父母简短祝福语
11 幼儿生日祝福语模板简短
12 新娘妈妈的祝福语简短
13 邻居聚会祝福语大全简短
14 十条祝福语简短
15 给同学祝福语的简短
16 过年祝福语简短祝妈妈
17 祝女儿简短祝福语大全
18 恩师诗词祝福语简短大全