Donna, as long as you need to REORG the entire table space anyway, I'd recommend going to relative page numbering. Once that's done, if you subsequently need to make an individual partition's DSSIZE larger, you just alter that partition's DSSIZE and it's an IMMEDIATE change - the larger DSSIZE is immediately in effect for the partition, with no need to REORG the partition in question.
Robert
------------------------------
Robert Catterall
------------------------------
Original Message:
Sent: Tue September 26, 2023 10:21 AM
From: Donna Stinson
Subject: Reorg 1.1B row table shrlevel reference
Hi Steve - yes the tablespace is type R in systablespace .... UTS PBR. However if I alter the DSSIZE at the tablespace level - the tablespace is put in advisory reorg pending - and I still need to reorg to materialize that new DSSIZE. But this may avoid the pagenum relative alter - I'm attempting to alter as little as possible while still enlarging the partition size.
------------------------------
Donna Stinson
------------------------------
Original Message:
Sent: Tue September 26, 2023 09:15 AM
From: Steve Johnson
Subject: Reorg 1.1B row table shrlevel reference
Hi Martin,
Good catch thank you. However with UTS PBR she could alter the DSSIZE at the tablespace level (it would apply to all partitions) and avoid a reorg. That might give some immediate relief.
Thanks again,
Steve
------------------------------
Steve Johnson
Original Message:
Sent: Tue September 26, 2023 08:53 AM
From: Martin Ålund
Subject: Reorg 1.1B row table shrlevel reference
Hi Steve
You are not entirely right. To change the DSSIZE for a single partition the tablespace has to be defined with PAGENUM RELATIVE. It is not enough that it is UTS PBR. On the other hand if it has PAGENUM RELATIVE you can increase the DSSIZE very smoothly with an ALTER. That saved me lots of work last night.
Regards Martin
------------------------------
Martin Ålund
Original Message:
Sent: Tue September 26, 2023 08:35 AM
From: Steve Johnson
Subject: Reorg 1.1B row table shrlevel reference
Hi Donna,
If the tablespace is UTS Partition by Range (PBR), you can alter the DSSIZE of an individual partition and do not have to reorg. Since you are not doing that I assume your TS is "old-school partitioned". If that is the case, I highly recommend converting it to UTS PBR at the same time so you can avoid another reorg of the entire TS later to do that conversion.
We have reorged a few very large tablespaces using SHRLEVEL CHANGE and here are a couple things to keep in mind:
- How many indexes do you have on the table? Ensure you have enough sort space to rebuild them during the reorg.
- If you don't have enough sort space, consider dropping non-unique indexes before the reorg, and recreating and rebuilding them with SHRLEVEL CHANGE after the reorg, and of course rebinding impacted packages.
Good luck!
------------------------------
Steve Johnson