欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Oracle數(shù)據(jù)庫游標(biāo)連接超出解決方案

 更新時(shí)間:2020年07月21日 10:08:12   作者:章冒冒2020  
這篇文章主要介紹了Oracle數(shù)據(jù)庫游標(biāo)連接超出解決方案,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下

oracle數(shù)據(jù)庫忽然連不上了,一查是游標(biāo)數(shù)量超了。

1.查看游標(biāo)數(shù)

show parameter open_cursors

2.修改游標(biāo)數(shù)

alter system set open_cursors = 10000;


3.獲取打開的游標(biāo)數(shù)

select o.sid, osuser, machine, count(*) num_curs
 from v$open_cursor o, v$session s
 where user_name = 'AF651_U8'
  and o.sid = s.sid
 group by o.sid, osuser, machine
 order by num_curs desc;
SID OSUSER MACHINE NUM_CURS

4.查詢某游標(biāo)執(zhí)行的sql

select q.sql_text
 from v$open_cursor o, v$sql q
 where q.hash_value = o.hash_value
  and o.sid = 396;

5.解決問題的辦法:

  --1.查找代碼不合理的地方,修改代碼。

  --2.重啟oracle數(shù)據(jù)庫

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論