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.
I want to update a large number of rows in a table and I keep filling up the logs. Rather than increase the log size (space unavailable), I have decided that I want to turn logging off on the table(s) that I am running the updates in while the table is being updated.
I understand that when logging is turned off that there will be no way to get back the data if needed unless the table is backed up prior. That will be covered either with a table export or full db backup.
Is this the correct syntax to turn logging off temporarily while updates are performed? Can this be done when you are not creating the table initially?
"Alter table lawson.actrans activate not logged initially;"
"Update lawson.actrans set xxxxx = xxxx where ......"
commit;
What is the syntax to turn logging back on for the table afterwards?
You will want to use a commit after you update statement. You will also need to turn off auto-commit in your CLI interface by using the -c option (-c -tvf ...)
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390