Endlich – überschüssige PBG Cluster wieder loswerden
Wer sich schon geärgert – na, sagen wir besser mal – gewundert hat, warum DB2 for z/OS bislang überschüssige Partition-by-Growth (PBG) Tabespace Cluster nicht wieder gelöscht hat, der kann sich nun freuen:
DB2 11 for z/OS bietet nun endlich die Möglichkeit, nicht verwendete VSAM Cluster automatisch wieder löschen zu lassen. Bislang verblieben überschüssige VSAM Cluster als ungenutzte Dataset-„Leichen“, z.B. nach umfangreichen Löschungen. Wenn physische Partitions nicht mehr benötigt wurden, hat DB2 zwar deren allokierten Space reduziert, den Cluster aber nicht gänzlich abgebaut.
Mit DB2 11 for z/OS gibt es nun also einen DSNZPARM, der die automatisierte vollständige Löschung nicht mehr benötigter VSAM Cluster auslöst.
Aus dem IBM DB2 11 for z/OS Installation Guide …
REORG_DROP_PBG_PARTS
The REORG_DROP_PBG_PARTS subsystem parameter specifies whether the REORG utility removes trailing empty partitions when operating on an entire partition-by-growth table space. An empty trailing partition occurs when the REORG utility moves all data records from a partition into lower numbered partitions.
Acceptable values are DISABLE and ENABLE, with a default setting of DISABLE. This parameter is meaningful only when the REORG utility is run against an entire PBG table space. It is ignored for a REORG of a non-partition-by-growth table space, for a partition-level REORG of partition-by-growth table spaces, and for a REORG of a hash partition-by-growth table space.
ENABLE Specifies that any trailing empty partitions that are present at the successful completion of the REORG are always removed. LOB table spaces and auxiliary indexes that are associated with these empty partition-by-growth partitions are also removed.
DISABLE Specifies that the number of partition-by-growth partitions at the successful completion of the REORG are always equal or greater than the number of partitions before the REORG utility was run. Even if the REORG is able to relocate all data records into the lowest numbered partitions, trailing empty partition-by-growth partitions are retained.
Kein Point-in-Time-Recovery
Hat DB2 erstmal überschüssige, weil leere Partitions entfernt, ist ein Point-in-Time Recovery nicht mehr möglich. Alle Image Copies, die vor dem REORG-Utility, das die Löschung ausgelöst hat, erstellt wurden, werden mit STYPE=X markiert.
Eine RECOVER TABLESPACE Versuch wird mit folgender Fehlermeldung enden:
DSNU556I csect-name RECOVER CANNOT PROCEED FOR object-type object-qualifier.object-name BECAUSE A SYSCOPY RECORD HAS BEEN ENCOUNTERED WHICH HAS DBNAME= dbname TSNAME= tsname DSNUM= dsnum ICTYPE= ictype STYPE= stype STARTRBA=X'rba' LOWDSNUM= low-dsnum HIGHDSNUM=high-dsnum.
STYPE=X – A REORG dropped one or more empty partitions from the related table space. A partition cannot be recovered to a point before it was dropped by the REORG utility.End of change
Comments
Comments are closed.