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 > v8 not logged initially

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-28-10, 08:57
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
v8 not logged initially

If a table is created with not logged initially, when you do an online backup, does that table get backed up ok (ie you go to restore, is that table available and you don't do a rollforward to end of logs and complete)?
Reply With Quote
  #2 (permalink)  
Old 05-28-10, 09:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
It depends. If the unit of work that created the table was committed and any operations on the table while it is in the "NOT LOGGED INITIALLY" state is committed, the table will be there. This is true whether the commits are done during normal operation or through rollforward. If any unit of work is not completed properly, the table will be marked as inaccessible and it can only be dropped at that point.

Andy
Reply With Quote
  #3 (permalink)  
Old 05-28-10, 11:22
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
I sure hope that an offline full backup can get the table ok?
Reply With Quote
  #4 (permalink)  
Old 05-28-10, 13:42
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Sure, if all previous operations did not leave it as inaccessible.

Andy
Reply With Quote
  #5 (permalink)  
Old 05-28-10, 14:34
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Rollforward through a "create table ... not logged initially" will mark the table inaccessible. The table will accessible if you restore from an offline backup without rolling forward or if restore from an offline/online backup but rollforward doesn't process a log record for "create table ... not logged initially" or "alter table ... activate not logged initially".
Reply With Quote
  #6 (permalink)  
Old 05-28-10, 14:42
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
From DB2 Universal Database :

You cannot recover these tables when rolling forward. If the rollforward operation encounters a table that was created or altered with the NOT LOGGED INITIALLY option, the table is marked as unavailable. After the database is recovered, any attempt to access the table returns SQL1477N.
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