OAM does not update the value of the collection ID column (OTCLID) in a row in the 4 KB object storage table, so this column might be used in a partitioning key. OAM does not update the value of the object name column (OTNAME) in a row in the 4 KB object storage table, so this column might be used in a partitioning key. If you use the object name column (OTNAME) as the partitioning key, remember that DB2 only uses the first 40 bytes of the partitioning key to actually partition the data.
Another option to partition the 4 KB table is by adding a column that you use only as the partitioning key.
_______________________________________________________
_______________________________________________________
DROP VIEW osg_hlq.V_OSM_04K_OBJ_TBL;
CREATE VIEW osg_hlq.V_OSM_04K_OBJ_TBL AS SELECT ALL * FROM
osg_hlq.OSM_04K_OBJ_TBL;
The osg_hlq in
the DROP and CREATE statements is the high-level qualifier for the
object storage group for the 4 KB table. _______________________________________________________
To create the DB2 table space containing the 4 KB object storage table as a partitioned table space, you must modify the CREATE TABLESPACE SQL statements by adding a NUMPARTS clause for the HLQ.OSMOTS04 table spaces in the CBRISQL0 job in SYS1.SAMPLIB.
If you create the DB2 table space containing the 4 KB object storage table as a partitioned table space, you must define a partitioned index on the 4 KB object storage table. The partitioned index can be created by adding a CREATE INDEX SQL statement to the CBRISQL0 sample job in SYS1.SAMPLIB.
If you create the DB2 table space containing the 4 KB object storage table as a partitioned table space, the partitioned index must also be the clustering index. Therefore, the default index that OAM creates on the 4 KB object storage table (HLQ.OBJT04X1) cannot be a clustering index. In this case, you must change the default index that OAM creates on the 4 KB object storage table (HLQ.OBJT04X1) to a nonclustered index by removing the CLUSTER keyword from the CREATE INDEX SQL statement for the HLQ.OBJT04X1 index in the CBRISQL0 sample job in SYS1.SAMPLIB.
In addition to changing the SQL statements contained in the CBRISQL0 sample jobs in SYS1.SAMPLIB, also update the CBRIALC0 job in SYS1.SAMPLIB. Include IDCAMS (access method services) DEFINE CLUSTER commands to preallocate a VSAM linear data set (LDS) for each of the partitions that you plan on having for each partitioned table space containing the 4 KB object storage table associated with each Object storage group. Also use the IDCAMS DEFINE CLUSTER command to preallocate a VSAM linear data set for each partition comprising the partitioned index that you plan to create. The data set names associated with each VSAM linear data set must conform to DB2 data set naming conventions as specified in the "Data set naming conventions" topic in the IBM Information Management Software for z/OS Solutions Information Center.
DB2 free space search algorithms are not as efficient for partitioned table spaces as they are for segmented table spaces. As a result of partitioning the DB2 table spaces that contain the OAM 4 KB object storage tables, you might impact the performance when small objects are being stored to the DB2 sublevel.