在做db2 online备份之前需要
DB2版本:V9.7.0.4
OS版本:RHEL6.3
1.db2开启归档模式
[db2inst1@db2 mbdb]$ db2 "update db cfg for mbdb using LOGRETAIN RECOVERY"
DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully.
2.离线备份一次
[db2inst1@db2 mbdb]$ db2 "BACKUP DB mbdb TO /db2data/backupdb/mbdb"
Backup successful. The timestamp for this backup image is : 20140106141634
3.在线备份
[db2inst1@db2 mbdb]$ db2 "BACKUP DB mbdb online TO /db2data/backupdb/mbdb"
Backup successful. The timestamp for this backup image is : 20140106141643
阅读(795) | 评论(0) | 转发(0) |