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 > Update with not logged initially and HADR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-10, 06:56
tsluijter tsluijter is offline
Registered User
 
Join Date: Nov 2010
Location: The Netherlands
Posts: 12
Question Update with not logged initially and HADR

Hello,

We want to update a very large table in steps.
While updating we want to use the not logged initially, as following

ALTER TABLE log ACTIVATE NOT LOGGED INITIALLY;
update log set message = 'XXX' where timestamp >='2010-08-25 00:00:00.000000' and timestamp <'2010-08-26 00:00:00.000000' ;
COMMIT;

We know that in this case the HADR database won't get updated.
But will the HADR database still work and can we use the table if we need to set the HADR database as primary?

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 12-09-10, 08:19
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
The standby database will work, but I believe the table will be unusable after the take-over.
Reply With Quote
  #3 (permalink)  
Old 12-09-10, 08:33
dav1mo dav1mo is offline
Registered User
 
Join Date: Dec 2007
Location: Richmond, VA
Posts: 782
Nick's statement is correct. HADR standby needs everything to be logged otherwise there is no way to implement the change(s).
Dave
Reply With Quote
  #4 (permalink)  
Old 12-10-10, 03:26
tsluijter tsluijter is offline
Registered User
 
Join Date: Nov 2010
Location: The Netherlands
Posts: 12
Thumbs up

Thanks, we have decided not to use the 'not logged initialy' statement.
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