Last active
April 21, 2021 20:44
-
-
Save aleguerra05/5aa139745f981166126435ce0f1c7d53 to your computer and use it in GitHub Desktop.
Set value of all sequences of oracle schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN | |
FOR x in (select * from user_sequences) | |
LOOP | |
EXECUTE IMMEDIATE 'drop sequence '||x.sequence_name ; | |
EXECUTE IMMEDIATE 'create sequence '||x.sequence_name||' start with 10000'; | |
END LOOP; | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment