shorti
2010-01-14 22:38:33 UTC
Hello, I have some machines at V8.2 (on AIX) that are showing large
amounts of "Pending Delete" extents. I have used "list tablespaces
show detail" to free these up on a couple of machine. However, I have
some questions about how we can avoid getting into this situation and
whether it is safe to free these up in this manner.
Questions:
1) The write up I found regarding where these Pending Delete extents
come from says: "When a table is dropped, or any transaction that
returns used extents back to the tablespace...This is done to protect
the scenario when some of these transactions need to be rolled back,"
The tables in these tablespaces are not normally dropped so are they
talking about transactions that are not being committed? I would
assume no since we show none of the normal signs of holding a
transaction open (like active logs not closing, etc). So, what sort
of transactions would these be that are completed but may need to be
rolled back?
2) Is it safe to free these using "list tablespaces show detail" ? On
another very old post on an off subject this person writes:
"Note that this is not necessarily cheap. To provide accurate
information
to the user, issuing the "list tablespaces show detail" command
will cause us to free any pending delete extents. This will result
in page fixing (possibly I/O into the bufferpool of space map pages),
log records being written and so on. "
I do not understand what that means but it doesnt sound good =).
Also, if there are pending transactions that may require a rollback,
freeing them sounds dangerous?! Keep in mind we will be doing this on
a running customer machine.
3) are there any commands or tools that might gather more information
about these extents...when they went into "pending delete" or what
transactions they are linked to? Maybe something is tied into the
history file or ?? Maybe they came about from some one-time operation
that we did a long time ago and just need to be cleaned up...I just
need to find more info on it in order to figure out how we can prevent
it. Knowing when and how often they are accumulating might give us
some clue.
Thanks in advance.
amounts of "Pending Delete" extents. I have used "list tablespaces
show detail" to free these up on a couple of machine. However, I have
some questions about how we can avoid getting into this situation and
whether it is safe to free these up in this manner.
Questions:
1) The write up I found regarding where these Pending Delete extents
come from says: "When a table is dropped, or any transaction that
returns used extents back to the tablespace...This is done to protect
the scenario when some of these transactions need to be rolled back,"
The tables in these tablespaces are not normally dropped so are they
talking about transactions that are not being committed? I would
assume no since we show none of the normal signs of holding a
transaction open (like active logs not closing, etc). So, what sort
of transactions would these be that are completed but may need to be
rolled back?
2) Is it safe to free these using "list tablespaces show detail" ? On
another very old post on an off subject this person writes:
"Note that this is not necessarily cheap. To provide accurate
information
to the user, issuing the "list tablespaces show detail" command
will cause us to free any pending delete extents. This will result
in page fixing (possibly I/O into the bufferpool of space map pages),
log records being written and so on. "
I do not understand what that means but it doesnt sound good =).
Also, if there are pending transactions that may require a rollback,
freeing them sounds dangerous?! Keep in mind we will be doing this on
a running customer machine.
3) are there any commands or tools that might gather more information
about these extents...when they went into "pending delete" or what
transactions they are linked to? Maybe something is tied into the
history file or ?? Maybe they came about from some one-time operation
that we did a long time ago and just need to be cleaned up...I just
need to find more info on it in order to figure out how we can prevent
it. Knowing when and how often they are accumulating might give us
some clue.
Thanks in advance.