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 > restore n DB CFG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-07, 06:50
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
restore n DB CFG

i recently restored a offline image on a DB.
what i was expecting was that the new DB after the restore would have lost its DB CFG and would be having the new DB setting as are in the OFFline image. But i was surprised to see that it was still having the old DB cfg however all its data was replaced by the new data.
ideally the db cfg file should have been overwritten after restore. why this didn't happened... is there any setting for that ??....
i used following restore command

db2 restore db DEV23100 From C:\DBbackups\ into Dev23100 with 4 buffers buffer 1024 replace existing without rolling forward

and this thing happened on 2 servers...
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #2 (permalink)  
Old 07-23-07, 01:47
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
if you restore to existing database DB CFG preserves from existing database, so new DB CFG are not excepted. If you would like to have a new DB CFG settings (from backup image) then you need to drop database first and then restore to new database from backup.
Hope this helps,
Grofaty
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