Disable Triggers
BEGIN
FOR i IN (SELECT trigger_name
FROM user_triggers) LOOP
EXECUTE IMMEDIATE 'ALTER TRIGGER ' || i.trigger_name || ' DISABLE';
END LOOP;
END;
/
Enable Triggers
BEGIN
FOR i IN (SELECT trigger_name
FROM user_triggers) LOOP
EXECUTE IMMEDIATE 'ALTER TRIGGER ' || i.trigger_name || ' ENABLE';
END LOOP;
END;
/
FOR i IN (SELECT trigger_name
FROM user_triggers) LOOP
END;
/
FOR i IN (SELECT trigger_name
FROM user_triggers) LOOP
END;
/
No comments:
Post a Comment