Page 1 of 1

Reorg SYSIBM tables to reduce extents (XT) - change priqty &

PostPosted: Thu Feb 17, 2022 7:46 pm
by TechnoCaveman
Have a new DB2 V12 database on z/OS 2.4 z13. With hundreds of programs to rebind, sysibm.syspackage, sys.columns, sys.tables, etc will grow. Hence the need to reorganize the tablespace for performance. Maintenance window is one hour, so just one tables space is being done. Small space less than 700 tracks.

Goal: after updating PriQty and SecQty, reorg sysibm.sysplan in DSNDB01.SPT01 and index space DSNPPH01 to reduce extents (XT) and improve performance.

Q: Is reorg run on system tables the same as for user tables? Is there special IBEGENR (sp?) VSAM redefine needed for system tables?
In general, what is the best way to update the system tables and show them some love.

Sample JCL: //REORGS1 EXEC PGM=DSNUTILB,PARM='MT03,REORG1DB' //STEPLIB DD DSN=DSNC10.SDSNLOAD,DISP=SHR //SYSREC DD DSN=&&SYSREC,DISP=(NEW,DELETE,DELETE),
// SPACE=(TRK,(9000,5000),,,ROUND),UNIT=SYSDA LISTDEF TBLSLIST
INCLUDE TABLESPACES DATABASE TR032
REORG
TABLESPACE LIST TBLSLIST COPYDDN(CDD1) LOG NO
SHRLEVEL REFERENCE
SORTKEYS SORTDATA SORTDEVT SYSDA
STATISTICS TABLE(ALL) INDEX(ALL)

Re: Reorg SYSIBM tables to reduce extents (XT) - change priq

PostPosted: Thu Sep 22, 2022 1:51 pm
by engh
hello

everything is explained here :

https://www.ibm.com/docs/en/db2-for-zos/12?topic=tablespace-reorganizing-catalog-directory

Note that a full image copy is required before

Re: Reorg SYSIBM tables to reduce extents (XT) - change priq

PostPosted: Thu Sep 22, 2022 4:49 pm
by sergeyken
It MUST be posted like this:

TechnoCaveman wrote:Have a new DB2 V12 database on z/OS 2.4 z13. With hundreds of programs to rebind, sysibm.syspackage, sys.columns, sys.tables, etc will grow. Hence the need to reorganize the tablespace for performance. Maintenance window is one hour, so just one tables space is being done. Small space less than 700 tracks.

Goal: after updating PriQty and SecQty, reorg sysibm.sysplan in DSNDB01.SPT01 and index space DSNPPH01 to reduce extents (XT) and improve performance.

Q: Is reorg run on system tables the same as for user tables? Is there special IBEGENR (sp?) VSAM redefine needed for system tables?
In general, what is the best way to update the system tables and show them some love.

Sample JCL:
//REORGS1 EXEC PGM=DSNUTILB,PARM='MT03,REORG1DB'
//STEPLIB DD DSN=DSNC10.SDSNLOAD,DISP=SHR
//SYSREC  DD DSN=&&SYSREC,DISP=(NEW,DELETE,DELETE),
//           SPACE=(TRK,(9000,5000),,,ROUND),UNIT=SYSDA
//SYSIN   DD  *
 LISTDEF TBLSLIST
 INCLUDE TABLESPACES DATABASE TR032
 REORG
 TABLESPACE LIST TBLSLIST COPYDDN(CDD1) LOG NO
  SHRLEVEL REFERENCE
  SORTKEYS SORTDATA SORTDEVT SYSDA
  STATISTICS TABLE(ALL) INDEX(ALL)