The object storage tables provide DASD storage for objects. Objects are stored in the 4 KB or 32 KB table or LOB storage structure, depending on size and whether or not LOB support is enabled. If an object is 3980 bytes or smaller, it is stored in the 4 KB table. If the object is larger than 3980 bytes but smaller or equal to 32640 bytes, it is stored in the 32 KB table. If the object is larger than 32640 bytes, but less than or equal to 256M and LOB support is disabled, then it is stored in multiple rows in the 32 KB table. If the object is larger than 32640 bytes and LOB support is enabled, then it is stored in a LOB storage structure. Note that objects greater than 256M can only be stored in a LOB storage structure. Refer to 5 Changing system libraries for more information on LOB support.
Objects stored in the 32 KB table might be broken into segments and stored as rows. Each row in the 32 KB table can contain up to 32␠640 bytes of object data.
Table 1 shows the contents of an entry in a 4 KB or 32 KB object storage table.
Each object storage table has one index. The 4 KB table index is the concatenation of the collection name ID and object name in ascending-order sequence. The 32 KB table index is the concatenation of the collection name ID, object name and segment number in ascending-order sequence. When objects are retrieved, they are ordered by object segment number.
Column description | Column name | DB2 field type and data size | Indexes where used |
---|---|---|---|
Data Format Version | OTVER | CHAR (1) | |
Segment Number | OTSEG | SMALLINT | Index 1 |
Collection Name Identifier | OTCLID | INTEGER | Index 1 |
Object Name | OTNAME | VARCHAR (44) | Index 1 |
Object Data Segment | OTOBJ | LONG VARCHAR | |
Note:
|
Table 2 shows the contents of an entry in a LOB storage table.
Column description | Column name | DB2 field type and data size | Indexes where used |
---|---|---|---|
Data Format Version | OTVER | CHAR (1) | |
Segment Number | OTSEG | SMALLINT | |
Collection Name Identifier | OTCLID | INTEGER | Index 1 |
Object Name | OTNAME | VARCHAR (44) | Index 1 |
Row ID | OTROWID | ROWID | |
Object Data Segment | OTOBJ | BLOB(2G) | |
Note:
|