|
-
You've almost got it right yourself:
EXECUTE IMMEDIATE 'ALTER TRIGGER TRIG_NAME DISABLE';
Just remember that EXECUTE IMMEDIATE requires the command to be a string.
This can be put into a stored procedure like:
CREATE OR REPLACE PROCEDURE ddl_command (p_cmd IN VARCHAR2) IS
BEGIN
EXECUTE IMMEDIATE p_cmd;
END;
/
The procedure owners priviledges will dictate which commands it can perform.
Cheers
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|