Declare
Cursor cTriggers is Select table_name from user_tables;
type t is table of cTriggers%rowtype index by binary_integer;
all_triggers t;
nLimit int := 100;
begin
Open cTriggers;
loop
Fetch cTriggers Bulk Collect into all_triggers limit nLimit;
for i in 1..all_triggers.count loop
Execute Immediate ' Alter table '||all_triggers(i).table_name||' enable all triggers';
end loop;
Exit when all_triggers.count < nLimit;
end loop;
Close cTriggers;
end;
/
No comments:
Post a Comment