1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| declare
v_cur pls_integer;
v_sqltab dbms_sql.varchar2a;
v_dummy number;
begin
v_sqltab (1) := 'create or replace procedure proc_enorme is';
v_sqltab (v_sqltab.count + 1) := 'begin';
-- 50K .. 1000*50
for v in 1 .. 1000 loop
v_sqltab (v_sqltab.count + 1) := ' null; -- 1234567890123456789012345678901234567890';
end loop;
v_sqltab (v_sqltab.count + 1) := 'end;';
v_cur := dbms_sql.open_cursor;
dbms_sql.parse (v_cur, v_sqltab, 1, v_sqltab.count, true, dbms_sql.native);
v_dummy := dbms_sql.execute (v_cur);
dbms_sql.close_cursor(v_cur);
end;
/
exec proc_enorme |
Partager