当前位置: 代码迷 >> Oracle开发 >> PLSQL Developer有关问题
  详细解决方案

PLSQL Developer有关问题

热度:90   发布时间:2016-04-24 07:55:15.0
PLSQL Developer问题
为何我在PLSQL   Developer中新建了一个子test   windows编辑以下代码:
declare
v_aa   varchar2(1000);
v_temp   CCC.aa%type;
cursor   c1   is
    select   bb   from   CCC   where   aa=222;
begin
open   c1;
loop   fetch   c1   into   v_temp;
exit   when   c1%notfound;
v_aa:=v_aa||v_temp;
dbms_output.put_line(v_aa);  

end   loop;
end;

反复执行几次start   debuggerg再运行,会出现死机情况,发现PLSQL   Developer进程占用99%,为什么


------解决方案--------------------
没有关闭cursor

加上:
close c1;

cursor极占资源
  相关解决方案