create or replace procedure GG_TEST as l_cnt number; begin for i in 1 .. 10000 loop execute immediate 'select count(*) from t where x = ' || i into l_cnt; end loop;
end;
2.在用戶TEST下在14:33下刪除存儲過程
復制代碼 代碼如下:
drop procedure GG_TEST;
3.登錄到sys賬戶下
復制代碼 代碼如下:
create table p_temp as select * from dba_source as of timestamp TO_TIMESTAMP('2014-05-04 14:33:00', 'YYYY-MM-DD HH24:MI:SS') where TYPE = 'PROCEDURE' And owner = 'TEST' And Name = 'GG_TEST';
select text from p_temp where name like upper('%GG_TEST%') and owner = 'TEST'
order by line;
TEXT --------------------------------------------------------------------------- procedure GG_TEST as l_cnt number; begin for i in 1 .. 10000 loop execute immediate 'select count(*) from t where x = ' || i into l_cnt; end loop; end;