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 > Online BKP\restore : Replication

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-01-07, 14:05
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Online BKP\restore : Replication

db2 8.2.0
windows

how can i acheive restoring and bringing the target DB to be in sync with Sorce DB after having restored the TGT DB with a image of SRC db.
i Dont want my Production DB to Go down
also complete refresh of Tables takes long time as they are quite big tables

Presently we are doing offline backups > restore > manual refresh,
But now we are thinking of changing it to Online to prevent downtime for Production Server
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer

Last edited by rahul_s80; 07-01-07 at 14:08.
Reply With Quote
  #2 (permalink)  
Old 07-02-07, 04:39
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
as you say :
take online backup - move backup image and log files to target system
restore db - rollforward db - start capture - manual refresh (without export import) and start apply again
this should do
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 07-02-07, 07:04
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
i m a bit doubtful regarding manual refresh .
even if i have transfered logs to taget db and roll fwd it to end of logs.
but in the mean time wont the live production DB will get ahead to Target DB.
How to bring in sync among them?

manual refresh will just take the current timestamp and go forward from there..(would it solve the diff in rows between source and target)

i solution i can think of is that while starting 1st time , i have a cold start
but while testing it took very long time
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #4 (permalink)  
Old 07-03-07, 03:09
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
to be 100% in synch you do :
- cold start and refresh all
- manual refresh and do export/load yourself
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #5 (permalink)  
Old 07-03-07, 16:44
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
thanks Guy Przytula

it would be very helpfull for me if u can elaborate further on
- manual refresh and do export/load yourself
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #6 (permalink)  
Old 07-04-07, 07:13
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
automatic refresh = refresh done by apply process
you don't have any control and need much log space
with manual refresh : initiated from replication center - right click on subscription - refresh - manual
this will tell you the names of the tables to be exported from source db
load these files to target db with load and nonrecoverable
continue the refresh process, that will reset the pruncntl/subset table
capture will start to capture from this timestamp
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #7 (permalink)  
Old 07-09-07, 08:15
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
i have used asnload for exporting/loading.
quite fast than earlier tests, But still took approx. 3 hrs to cover up.
Do you have any idea how to improve its performance.
Also many of tables went into integrity pending because of Load.
ne idea to prevent it.

regards,
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #8 (permalink)  
Old 07-09-07, 09:43
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
if foreign keys are available - tables are in check pending : this can not be avoided with load
to fasten the load : utilheap - sortheap - SHEAPTHRES - MAX_QUERYDEGREE are important parameters
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #9 (permalink)  
Old 07-09-07, 13:02
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
actually , i have dropped all the references on target DB before starting replication...
what else could be reason for tables to get into check pending
there was no interruption while asnload was running..

thanks ,
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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