transactions - DB2 Suspend Logging -


running db2 9.7.5 luw on windows 2008. i'm transfering data hourly ms sql 2008 server on wan. read data ms sql, parse data , batch insert work table in db2, in db2 merge data work table master table. once merge done, clear work table prepare next load. i've noticed log files big. since db session open , closed during data exchange, temporary tables not suitable, hence use of work tables. data transfered java app made.

i don't need have work table transactions logged. i've read article ibm , found logging doesn't happen in same work unit when table created.

using create table...not logged initially , alter table...not logged initially work? understand once have created table logging begins after first commit?

do need create table everytime not logged , clear alter table not logged? there better way?

you don't need create table every time. issue alter table...not logged initially before inserting data table in same unit of work (transaction).

you don't indicate how clear work table; hope using truncate table statement, more efficient dropping table records , minimizes logging.


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -