I'm currently testing the new incremental backup feature of DB2 V7.2
on AIX.
My scenario:
db2 update db cfg for mydb using TRACKMOD ON
db2 backup db MYDB to /db2/backup -> OK
made some modifications (INSERT/UPDATE ...)in a sample table then
db2 backup db MYDB incremental delta to /db2/backup -> OK
created a new DMS tablespace then
db2 backup db MYDB incremental delta to /db2/backup -> Error SQL2426:
SQL2426N Incremental backup is not enabled for this database.
Ensure that modification tracking is activated, and
perform a full backup of this database.
Only a full database backup was possible after creating a new
tablespace. After that further incremental backups were possible. Am I
doing something wrong or is this works as designed ?. Haven't found
any restricions in the Release Notes for V7.2
TIA
Joachim
The message is somewhat misleading. It's only the new tablespace that
can't be backed up incrementally. The rule is that you have to take
a non-incremental backup of each tablespace before you can take an
incremental backup of that tablespace. So you should have been able to
modify your scenario to
db2 update db cfg for mydb using TRACKMOD ON
db2 backup db MYDB to /db2/backup -> OK
made some modifications (INSERT/UPDATE ...)in a sample table then
db2 backup db MYDB incremental delta to /db2/backup -> OK
created a new DMS tablespace then
-- New
db2 backup db MYDB tablespace(newDMS) to /db2/backup
-- end new
db2 backup db MYDB incremental delta to /db2/backup
Taking full backups of each tablespace will make your recovery scenario a
bit more complicated than taking a full database backup, but it can
simplify the backup part of the process somewhat.
dave
one more thing: Do I need to reserve any extra space for the
modification tracking ? Any formulas to calculate this ?
Joachim
David Mooney <d...@vnet.ibm.com> wrote in message news:<9k9coq$r18$1...@tornews.torolab.ibm.com>...
No more space is required. All new data structures for modification
tracking use previously unused bits that are already in the tablespace
control structures.
dave