Quickly delete db2 data without writing logs

Source: Internet
Author: User

Quick deletion of db2 data without writing logs IBM official documentation: Use the not logged initially parameter to reduce logging if an application creates and fills a worksheet Based on the master table, in addition, you do NOT worry about the recoverability of these worksheets (because you can easily re-CREATE them based on the master TABLE), you can specify the not logged initially parameter on the create table statement when creating a worksheet. This reduces log records and improves performance. The advantage of using the not logged initially parameter at www.2cto.com is that it does NOT record any changes (including insert, delete, update, or index creation) made to the table in the same work unit that creates the table ). This not only reduces the log record workload, but also improves application performance. You can also use the alter table statement with the not logged initially parameter for an existing TABLE to obtain the same result. 1. update command options using c off -- disable automatic submission 2. alter table tabname activate not logged initially -- set do NOT log or add attribute not logged initially 3 when creating a TABLE. delete from tabname -- delete data 4. commit -- manually submit 5. update command options using c on -- enable automatic submission

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.