编目分区:
Catalog database partition number = 0
这个就是编目分区。
//断掉所有的连接。
db2 force applications all
db2_all "<<+0<db2 backup database sample to d:\data compress"
db2_all "<<-0<db2 backup database sample to d:\data compress"
db2_all "<<+0< db2 restore db sample from d:\data taken at 20090212141538 replace existing "
db2_all "<<-0< db2 restore db sample from d:\data taken at 20090212141630 replace existing"
-----replace existing
If a database with the same alias as the target database alias already exists, this parameter specifies that the restore utility is to replace the existing database with the restored database. This is useful for scripts that invoke the restore utility, because the command line processor will not prompt the user to verify deletion of an existing database. If the WITHOUT PROMPTING parameter is specified, it is not necessary to specify REPLACE EXISTING, but in this case, the operation will fail if events occur that normally require user intervention.
db2 force applications all
db2_all "<<+0<db2 connect to churndb;db2 backup database churndb to /db2log/db2buckup compress;db2 terminate"
db2_all "<<-0<db2 connect to churndb;db2 backup database churndb to /db2log/db2buckup compress;db2 terminate"