Category Archives: Computers and Internet

Oracle中如何查找游标泄露

主要从Oracle视图$open_cursor中来查找,结合视图v$sql最后统计出哪些SQL占用的游标比较多,如下面的SQL语句。 select b.sql_text,count(*) from v$open_cursor a,v$sql b where a.sql_id=b.sql_id group by b.SQL_TEXT 从而判断得出来是哪个地方有游标泄露!

Posted in Computers and Internet | Leave a comment