If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > All sequence's reset after DB2 Load

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-05, 11:36
treyou treyou is offline
Registered User
 
Join Date: Oct 2004
Posts: 3
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
Reply With Quote
  #2 (permalink)  
Old 01-07-05, 09:36
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
ALTER SEQUENCE  ... RESTART WITH ...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On