This section explains how to use onspaces to create a standard dbspace and a temporary dbspace. For information on creating a dbspace with a non-default page size, see Creating a Dbspace with a Non-Default Page Size.
For information on using ISA to create a dbspace, see the ISA online help.
Any newly added dbspace (and its mirror, if one exists) is available immediately. If you are using mirroring, you can mirror the dbspace when you create it. Mirroring takes effect immediately.
On Windows, users in the Informix-Admin group can create a dbspace.
Kilobytes is the default unit for the -s size and -o offset options. To convert kilobytes to megabytes, multiply the unit by 1024 (for example, 10 MB = 10 * 1024 KB).
See Creating a Dbspace with a Non-Default Page Size for information on additional onspaces options if you are creating a dbspace with a non-default page size.
If you want to specify the first and next extent sizes for the tblspace tblspace in a dbspace, see additional information in Specifying the First and Next Extent Sizes for the tblspace tblspace.
The following example shows how to create a 10-megabyte mirrored dbspace, dbspce1, with an offset of 5000 kilobytes for both the primary and mirror chunks, using raw disk space on UNIX:
onspaces -c -d dbspce1 -p /dev/raw_dev1 -o 5000 -s 10240 -m /dev/raw_dev2 5000
The following example shows how to create a 5-megabyte dbspace, dbspc3, with an offset of 200 kilobytes, from raw disk space (drive e:) on Windows:
onspaces -c -d dbspc3 \\.\e: -o 200 -s 5120
For more information on creating a dbspace with onspaces, see Dbspaces. and information on the onspaces utility in the IBM Informix Administrator's Reference.
Otherwise, enter N.
Otherwise, enter N.
All tables, indexes, and other objects within the dbspace will use pages of the specified size.
For more information, refer to the ON–Monitor chapter in the IBM Informix Administrator's Reference.
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 need to place the tblspace tblspace extents in non-primary chunks. (A primary chunk is the initial chunk in a dbspace.)
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, Dynamic Server 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.
Extent sizes must be in kilobytes and must be multiples of the page size. When you specify first and next extent sizes, follow these guidelines:
Type of Extent | Minimum Size | Maximum Size |
---|---|---|
First extent in a non-root dbspace | The equivalent of 50 pages, specified in kilobytes. This
is the system default.
For example, for a two-kilobyte page system, the minimum length is 100. |
The size of the initial chunk, minus the space needed 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 kilobytes. This is the system default. | The size of the initial chunk, minus the space needed 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. |
You use the following onspaces utility -ef and -en options to specify the first and next extent sizes for the tblspace tblspace in non-root dbspaces:
For example, you can specify:
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 HDR 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 via the ADDCHK log record.
For more information on the onspaces utility, oncheck commands, and specifying the first and next extent sizes for the tblspace tblspace, see the IBM Informix Administrator's Reference.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]