declare
cursor del_cur_800w is select * from t for update where rownum<=1000;
begin
for i in 1..8000 loop
open del_cur_800w
loop
delete from t where current of del_cur_800w;
exit when del_cur_800w%NOTFOUND OR del_cur_800w%NOTFOUND IS NULL;
END LOOP;
COMMIT;
CLOSE del_cur_800w;
END LOOP;
END;
cursor del_cur_800w is select * from t for update where rownum<=1000;
begin
for i in 1..8000 loop
open del_cur_800w
loop
delete from t where current of del_cur_800w;
exit when del_cur_800w%NOTFOUND OR del_cur_800w%NOTFOUND IS NULL;
END LOOP;
COMMIT;
CLOSE del_cur_800w;
END LOOP;
END;