Implementation of DB2 partitioned Database Backup

Source: Internet
Author: User

The backup method of the DB2 partitioned database is different from that of the general backup method. The following describes how to implement the backup method of the DB2 partitioned database.

Backup operations on the DB2 partitioned database:

The backup operation only applies to the current partition of the partitioned database. Therefore, you must use the "db2_all" command to back up all partitions. Here, the online backup mode is used. That is:

Db2_all "db2 backup db sample online"

However, the preceding commands are used in serial mode for backup of each partition. To improve the performance of backup operations, there is also a method that enables Parallel intervals. That is to say, add the following option before the DB2 command of the preceding command to achieve parallel command:

<+ Partition Number <: indicates that subsequent commands act on the partition.
<-Partition Number <: indicates that subsequent commands act on partitions other than this partition.
| <-Partition Number <or <-Partition Number;: indicates that subsequent commands are used to recover data from other partitions except the partition, and are performed in parallel.

However, backup and recovery operations require exclusive partitioning. Therefore, before performing parallel backup operations on other partitions, you must complete backup operations on the partition. The method is as follows:

Db2_all "<+ 0 <db2 backup db sample online" -- backup of cataloguing partitions
Db2_all "| <-0 <db2 backup db sample online" -- Parallel backup of hard disk data recovery in other partitions
Or db2_all "<-0 <; db2 backup db sample online"

Note: After the backup of the partitioned database is complete, a backup image file is generated for each partition.

Three types of DB2 database backup solutions

Online Implementation of changing the DB2 page size

Create a DB2 tablespace in windows

Take you to the DB2 Character Set and MySql Character Set

Use of the DB2 auto-incrementing field IDENTITY

   

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.