Update sequences
Ade2Jan 30 2009 — edited Jan 30 2009Hi 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