Techniques for improving data backup and recovery efficiency in the DB2 database (1)

Source: Internet
Author: User

This article describes some common techniques to improve data backup and recovery efficiency. If you are confused about the backup and recovery of the DB2 database, you can take a look at it and it will be helpful.

If it takes several hours to back up or restore a DB2 database, the backup and recovery solution will be safe in a timely manner. Or an inappropriate solution. Therefore, while considering the security of the backup and recovery solution itself, the efficiency of backup and recovery must also be taken into account.

1. Understand the logical storage structure of data.

If you have an Oracle database administrator, it is easier to understand the logical storage structure of DB2 database backup and recovery, because the two are similar in this regard. For DB2 database backup and recovery, its logical storage structure is divided into three levels: data table, tablespace, and database. The data table is included in the tablespace, And the tablespace is included in the database. In other words, a DB2 database contains multiple tablespaces, and each tablespace contains multiple data tables. One data entry indicates that it cannot be stored in multiple tablespaces. Similarly, a tablespace cannot be stored in multiple databases. This is similar to the implementation of primary school and class grouping. A class (equivalent to a database) is divided into four groups (each group is equivalent to a tablespace), and each group is composed of students (each student is equivalent to a data table ). What are the benefits of this organizational structure? At this time, the school principal (equivalent to a database administrator) can manage the data according to the class and group, or conduct one-to-one interviews with students to improve the flexibility of database management.

With such a logical structure, the database administrator can back up and restore the entire database (manage the entire class ); you can also back up and restore all data tables in the table space in units of table space (managed in groups ); you can even back up and restore individual data tables (manage individual students ). That is, backup and recovery can be performed at the data table, tablespace, and database levels. This hierarchical management not only enhances the flexibility of operations, but also improves the efficiency of backup and operations. If you need to update a table or adjust the price in the price list. In this case, the database administrator only needs to update the price list without backing up the entire database. Obviously, this can reduce the backup time. If a problem occurs, you only need to restore the content in this table. This can also greatly reduce the recovery time. It takes much less time to restore a table than to restore the entire database.


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.