Error found!
Posted in 2000
There seems to be a memory-leak in the
nvl-function!
Running this script resulted in an enormous
increase in shared memory usage (virtual segments).
Dropping off the nvl solved the problem.
create table t1 (s1 integer );
insert into t1 values(3);
drop procedure test;
create procedure test()
define p_s1 integer;
define i integer;
for i = 1 to 1000000
let p_s1 = ( select nvl(sum(s1),0) <<<-------
from t1
where s1 > 100);
end for;
end procedure;
execute procedure test();
--
======================================================================
Lauri Pietarinen tel +358-9-2534 4632
AtBusiness Communications Oy fax +358-9-2534 4601
Itälahdenkatu 19 mob +358-50-594 2011
00210 HELSINKI mailto:lauri.pietarinen@atbusiness.com
Finland http://www.atbusiness.com
======================================================================