新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
查詢Oracle數(shù)據(jù)庫中的游標數(shù)
除了查詢Oracle數(shù)據(jù)庫的數(shù)據(jù)之外,我們還可以查詢Oracle數(shù)據(jù)庫的游標數(shù),下面就為您詳細介紹該方法,希望對您學習查詢Oracle數(shù)據(jù)庫方面能有所幫助。

select o.sid,osuser,machine,count(*) num_curs from v$open_cursor o,v$session s where user_name='cportal' and o.sid=s.sid group by o.sid,osuser,machine order by num_curs desc;
查詢cportal用戶的游標數(shù)。去掉user_name為所以用戶的游標數(shù)。
show parameter open_cursors;
獲得配置文件(init.ora)中為oracle配置的***游標數(shù)。
select q.sql_text from v$open_cursor o,v$sql q where q.hash_value=o.hash_value and o.sid=217;
獲取為游標執(zhí)行的 SQL。
select count(*) from v$open_cursor;
查詢Oracle數(shù)據(jù)庫當前游標總數(shù)。
網(wǎng)頁題目:查詢Oracle數(shù)據(jù)庫中的游標數(shù)
文章轉(zhuǎn)載:http://www.dlmjj.cn/article/dpsgheg.html


咨詢
建站咨詢
