I have a bunch of sql scripts that create / drop sequences, users and other objects. I\'m running these scripts through liquibase, but they fail because oracle complains whe
Write a function do_ddl similar to this and catch all exceptions you want to catch:
DECLARE allready_null EXCEPTION; PRAGMA EXCEPTION_INIT(allready_null, -1451); BEGIN execute immediate 'ALTER TABLE TAB MODIFY(COL NULL)'; EXCEPTION WHEN allready_null THEN null; -- handle the error END; /