I have a few ideas for this (all untested):
1) Oracle usually supports something like CREATE OR REPLACE
2) Use one of the system views from the SYS user to check with SELECT if a sequence exists.
3) Use execute_immediate with a BEGIN .. EXCEPTION ... END block to delete an object. If it does not exist, an error should occur that you can ignore.
ZeissS
source share