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 > Activate not logged initially issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-08, 18:41
db2rocks db2rocks is offline
Registered User
 
Join Date: Jan 2008
Posts: 45
Activate not logged initially issue

Hi friends,

I have a table which is undergoing mass deletes,inserts,updates.How can we turn the logging off with out changing the application code.The application people does not want to change their code as it is too late before the deployment

I can try alter table activate not logged initially ..But that should come from application side i think.What about autocommit and its impact on the alter table activate not logged initially .


Thanks a lot
Reply With Quote
  #2 (permalink)  
Old 03-12-08, 03:24
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
NOT LOGGED INITIALLY must be used in the same transaction as the operations that should not be logged. NLI is deactivated on the first COMMIT/ROLLBACK operation for the transaction that set NLI. Because your application initiates the transaction, it is the application that MUST use the ALTER TABLE statement to turn logging temporarily off.

If you think about it, there is no other sensible way. For example, if you have an application that relies on its data being safe and recoverable, it would go directly against this application if you could turn logging of for the application's data.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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