Specifying the first and next extent sizes for the tblspace tblspace
You can specify first and next extent sizes if you want to reduce the number of tblspace tblspace extents and reduce the frequency of situations when you must place the tblspace tblspace extents in non-primary chunks. (A primary chunk is the initial chunk in a dbspace.)
About this task
You can choose to specify the first extent size, the next extent size, both the first and the next extent size, or neither extent size. If you do not specify first or next extent sizes for the tblspace tblspace, HCL OneDB™ uses the existing default extent sizes.
You can use the TBLTBLFIRST and TBLTBLNEXT configuration parameters to specify the first and next extent sizes for the tblspace tblspace in the root dbspace that is created when the server is initialized.
You can use the onspaces utility to specify the first and next extent sizes for the tblspace tblspace in non-root dbspaces.
You can only specify the first and next extent sizes when you create dbspace. You cannot alter the specification of the first and next extent sizes after the creation of the dbspace. In addition, you cannot specify extent sizes for temporary dbspaces, sbspaces, blobspaces, or external spaces. You cannot alter the specification of the first and next extents sizes after the creation of the dbspace.
To specify the first and next extent sizes:
Procedure
Results
Type of extent | Minimum size | Maximum size |
---|---|---|
First extent in a non-root dbspace | The equivalent of 50 pages, specified in KB. This is the system default. For example, for a 2 KB page system, the minimum length is 100. | The size of the initial chunk, minus the space required for any system objects such as the reserved pages, the database tblspace, and the physical and logical logs. |
First extent in a root dbspace | The equivalent of 250 pages specified in KB. This is the system default. | The size of the initial chunk, minus the space required for any system objects such as the reserved pages, the database tblspace, and the physical and logical logs. |
Next Extent | Four times the disk-page size on the system. The default is 50 pages on any type of dbspace. | The maximum chunk size minus three pages. |
- First extent size:
-ef size_in_kbytes
- Next extent size:
-en size_in_kbytes
onspaces -c -d dbspace1 -p /usr/data/dbspace1 -o 0 -s 1000000 -e 2000 -n 1000
You can use Oncheck -pt and oncheck -pT to show the first and next extent sizes of a tblspace tblspace.
If data replication is being used and a dbspace is created on the primary database server, the first and next extent sizes are passed to the secondary database server through the ADDCHK log record.
For more information about the onspaces utility, oncheck commands, and specifying the first and next extent sizes for the tblspace tblspace, see the HCL OneDB Administrator's Reference.