Thanks for your reply and points, very interesting. Really appreciate also the explanation about why even IBM thinking about moving from NONE to CHANGE finally it was discarded for not being realistic due to some customers needs or concerns.
Original Message:
Sent: Tue September 03, 2024 06:37 PM
From: Ka Chun Ng
Subject: Reorg SHRLEVEL REFERENCe
Hello Soledad and all,
While there are some exception cases like NOT LOGGED table space, spatial index and expression index on LOB column which REORG does not support log apply today (and hence does not support SHRLEVEL CHANGE), I would say those scenarios are extremely limited and 99% of the users out there have always been using SHRLEVEL CHANGE for availability reason.
Having said that, if an end user can tolerate the read only outage caused by REORG SHRLEVEL REFERENCE execution, then running SHRLEVEL REFERENCE does give some additional performance incentive over SHRLEVEL CHANGE, as far as REORG performance is concerned. For one thing, REORG does not utilize the mapping index for SHRLEVEL REFERENCE execution, so that's one less index to sort/build and lower the overall resource consumption by the REORG. REORG SHRLEVEL REFERENCE would also avoid the LOG phase processing overhead altogether (unless it's running at the part level with a NPI on the tsp). So if you are really nitpicking on optimizing REORG performance, SHRLEVEL REFERENCE could be appealing to you in some cases.
To be fair, a number of years/releases ago, Db2 development did try to initiate an effort to change the default SHRLEVEL NONE value to SHRLEVEL CHANGE for REORG, but it was met with immediate push back by the external communities for both resource consideration and potential impact to their existing workloads. We might visit this again in the future but it might be in the context of deprecating SHRLEVEL NONE altogether.
Many thanks.
Ka Chun Ng
STSM, Db2 for z/OS Development
------------------------------
Ka Chun Ng
Original Message:
Sent: Tue September 03, 2024 11:03 AM
From: Soledad Martinez
Subject: Reorg SHRLEVEL REFERENCe
Hello Jørn,
I had not thought about the not logged tablespaces at any moment, my fault, never have them in mind. Thank you so much for spotting this.
Now searching for also I found below Robert Caterrall's thread where just few months ago a person had this DSNU1152I message while doing such a reorg.
Thank you very much!
https://robertsdb2blog.blogspot.com/2010/12/reorg-and-db2-for-zos-partition-by.html?showComment=1712074384808&m=1#c6210101103208791395
------------------------------
Soledad Martinez
Original Message:
Sent: Tue September 03, 2024 04:01 AM
From: Jørn Thyssen
Subject: Reorg SHRLEVEL REFERENCe
You cannot run REORG SHRLEVEL CHANGE on a table space that is not logged (i.e., the table space has the LOGGED NO attribute).
In that case you have to run REORG SHRLEVEL REFERENCE and in some cases even a REORG SHRLEVEL NONE (if you want to do a part level REORG on a non-logged tablespace with NPIs). This is a very rare case, though.
See more info here: https://www.ibm.com/docs/en/db2-for-zos/13?topic=messages-dsnu1152i
------------------------------
Jørn Thyssen
Principal Solutions Advisor
Rocket Software
Original Message:
Sent: Tue August 27, 2024 04:18 PM
From: Soledad Martinez
Subject: Reorg SHRLEVEL REFERENCe
Good day,
I am assuming that there is no reason at all nowadays for making a reorg with the SHRLEVEL REFERENCE, am I wrong?
Is there any case when it needs to be mandatory like that?
I am reading manuals and presentations and if there's some case, I am not able to find or figure it out.
Thanks!
------------------------------
Soledad Martinez
------------------------------