Hello,
Jeremy Rickard wrote:
You might review settings like NUM_LOG_SPAN to reduce the chance of such problems repeating.
Yes, thanks. We have lowered NUM_LOG_SPAN significantly.
As for the old log files sticking around for a further 7 hours, was
there any other long running transaction holding a log?
Sorry, I didn't have a chance to investigate that during the 7 hours.
Does this database have an HADR standby?
Nope.
After the rollback finished, there was something very strange about the
table being INSERTed into. The table was expected to be empty (because
the inserting transaction rolled back), confirmed by a statement like
this which returned no rows:
SELECT * FROM sname.tabname FETCH FIRST 1 ROWS ONLY WITH UR
But such a select would run for 11 minutes, before returning the empty
result set!
Meanwhile, the following resulted in 1272188937:
SELECT card
FROM syscat.tables
WHERE tabschema='SNAME'
and tabname='TABNAME'
IBM Support instructed us in running
TRUNCATE TABLE sname.tabname IMMEDIATE
followed by a reorg + runstats of the table. After that, SELECTs in the
empty table started to return in a split second, as expected.
Our DB2 version is the very latest, so I suspect we ran into a bug.
--
Regards,
Troels Arvin
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)