How to optimize the backup performance of DB2 databases?

Source: Internet
Author: User

This article mainly introduces how to optimize the backup performance of DB2 databases. We all know that when performing backup operations, the DB2 database automatically selects the best value for the number of buffers, buffer size, and parallelism settings. These values depend on the number of available utility heap memory, number of available processors, and database configuration.

Therefore, based on the available storage capacity on the system, you should consider allocating more memory by increasing the UTIL_HEAP_SZ configuration parameter. The goal is to minimize the time required to complete the backup operation

. Unless you explicitly enter the values of the following backup database command parameters, DB2 selects a value for them:

 
 
  1. WITH num-buffers BUFFERS  
  2. PARALLELISM n  
  3. BUFFER buffer-size 

If you do not specify the number of buffers and the size of the buffer cause DB2 to set these values, the impact on large databases should be the lowest. However, for small databases, the backup image will increase significantly. Even if the last data buffer to be written to the disk contains only a small amount of data, the entire buffer is written to the image. In a small database, this indicates that a considerable number of images may be empty.

You can also perform any of the following operations to shorten the time required to complete a backup operation:

Specify tablespace backup.

You can use the backup database command with the TABLESPACE option specified to back up and recover some databases. This facilitates the management of table data, indexes, long fields in individual tablespaces, or large object LOB) data.

Increase the value of the PARALLELISM parameter on the backup database command to reflect the number of tablespaces being backed up.

The PARALLELISM parameter defines the number of processes or threads started when data is read from the database and compressed during the compression backup operation. Assign each process or thread to a specific tablespace. Therefore, it is no benefit to specify a value greater than the number of tablespaces to be backed up for the PARALLELISM parameter. After the tablespace is backed up, it requests another tablespace. However, note that each process or thread requires memory and CPU overhead.

Increase the backup buffer size.

The ideal backup buffer size is a multiple of the extended data block size of the tablespace plus one page. If there are multiple tablespaces with different sizes of extended data blocks, specify the value as a public multiple of the extended data block size and add one page.

Increase the number of buffers.

The buffer used must be at least twice that of the backup target or session to ensure that the backup target device does not have to wait for data.

Use multiple target devices. The above content is an introduction to optimizing the backup performance of the DB2 database. I hope you will have some gains.

The above content is an introduction to optimizing the backup performance of the DB2 database. I hope you will have some gains.

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.