如何在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 好听的元旦简短祝福语