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)
Reorg SYSIBM tables to reduce extents (XT) - change priqty &
-
- Posts: 1
- Joined: Thu Feb 17, 2022 7:15 pm
- Skillset: DB2
- Referer: Google
-
- Posts: 17
- Joined: Fri Jul 08, 2022 7:29 pm
- Skillset: leblesmoutilabiskouti
- Referer: leblesmoutilabiskouti
Re: Reorg SYSIBM tables to reduce extents (XT) - change priq
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
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
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Reorg SYSIBM tables to reduce extents (XT) - change priq
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:Code: Select all
//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)
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 2
- 1377
-
by PRDVCF
View the latest post
Thu Nov 17, 2022 9:58 pm
-
- 24
- 4307
-
by Pedro
View the latest post
Wed Jan 04, 2023 5:59 am
-
- 1
- 1233
-
by willy jensen
View the latest post
Sat Sep 04, 2021 12:51 am
-
-
SORT to add trailer record on change of key + Date
by Prashant_2021 » Fri Aug 27, 2021 11:04 pm » in DFSORT/ICETOOL/ICEGENER - 1
- 1656
-
by sergeyken
View the latest post
Sat Aug 28, 2021 11:15 pm
-