Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Update sequences

Ade2Jan 30 2009 — edited Jan 30 2009
Hi everyone, an iintergrated environment at was recently refreshed with production and all the sequences is not alligned with the table in this environment. My task is to write a script that will update all sequences in this enviroment to the maximum of all objects:-

Example
Some_table Id in integration is 229241 because it was recently refreshed with production data, but the max sequence number is 216951, hence, we are getting a uniques constraint violation. I want to write a script to update sequences to the max id of all tables in this environment.

Thank you
This post has been answered by JustinCave on Jan 30 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2009
Added on Jan 30 2009
6 comments
1,351 views