Skip to content

Instantly share code, notes, and snippets.

@pvilas
Created June 25, 2014 17:36
Show Gist options
  • Save pvilas/a9a5ffb36ae74d1f7285 to your computer and use it in GitHub Desktop.
Save pvilas/a9a5ffb36ae74d1f7285 to your computer and use it in GitHub Desktop.
change oracle sequence value without dropping and recreating it
select last_number from user_sequences where sequence_name='INCIDENCIASEG3370_SQ'
alter sequence INCIDENCIASEG3370_SQ increment by 1000;
select cNCIDENCIASEG3370_SQ.NEXTVAL from dual;
commit;
alter sequence INCIDENCIASEG3370_SQ increment by 1;
commit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment