Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    3

    Unanswered: All sequence's reset after DB2 Load

    We are running ver 7.2 fx pak 12 on w2k. We had a system table corrupt on us and IBM has told us the only way to fix is to create a new database from our schema and do a db2load. Everything seems to work fine, however all of our sequences get reset in the new database. We have about 100 sequences, is there anyway to move the current values of the sequences from our current database to the new one? I could probaly make a script which gets the current values from our current database and then creates them in the new database as minvalues. Any other ideas would be appreciated.

    Thank You

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Code:
    ALTER SEQUENCE  ... RESTART WITH ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •