132 DB2 Recovery Expert for Multiplatforms
db2la -d SAMPLE -D -q u -f undo_org.sql > detail_org.out
db2la -d SAMPLE -b "2002/10/9 12:33:53" -e "2002/10/9 12:34:24"
-n STAFF > general_staff.out
db2la -d SAMPLE -D -q u -f undo_staff.sql > detail_staff.out
This produces:
A general report for each table (general_org.out and general_staff.out)
A detailed report for each table (detail_org.out and detail_staff.out)
An Undo SQL for each table (undo_org.sql and undo_staff.sql)
We can then run the SQL using the commands:
db2 -tvf undo_org.sql
db2 -tvf undo_staff.sql
Note that we run the Undo SQL for ORG (the parent table) first.
Disable integrity checking and run Undo SQL for both tables
For this strategy, we use the following commands to obtain the Undo ...