Home | Previous Page | Next Page   Disk, Memory, and Process Management > Data Storage > Sbspaces >

Control of Where Data Is Stored

You specify the data type of a column when you create the table. For smart large objects, you specify CLOB, BLOB, or user-defined data types. As Figure 43 shows, to control the placement of smart large objects, you can use the IN sbspace option in the PUT clause of the CREATE TABLE statement.

Figure 43. Controlling Smart-Large-Object Placement
begin figure description - This figure shows that you use the onspaces -c -S command to create a dbspace named s9_sbspc. The  figure also contains this SQL: CREATE TABLE catalog (...advert_descr CLUB, ...)  ...PUT advert_descr IN s9_sbspc.  - end figure description

Before you specify an sbspace in a PUT clause, you must first create the sbspace. For more information on how to create an sbspace with the onspaces -c -S command, see Adding a Chunk to a Dbspace or Blobspace. For more information on how to specify smart large object characteristics in the PUT clause, refer to the CREATE TABLE statement in the IBM Informix Guide to SQL: Syntax.

If you do not specify the PUT clause, the database server stores the smart large objects in the default sbspace that you specify in the SBSPACENAME configuration parameter. For more information on SBSPACENAME, refer to the configuration parameter chapter of the IBM Informix Dynamic Server Administrator's Reference.

An sbspace includes one or more chunks, as Figure 44 shows. When an sbspace contains more than one chunk, you cannot specify the chunk in which the data resides.

You can add more chunks at any time. It is a high-priority task of a database server administrator to monitor sbspace chunks for fullness and to anticipate the need to allocate more chunks to a sbspace. For more information on monitoring sbspaces, refer to your IBM Informix Dynamic Server Performance Guide.

Figure 44. Sbspaces That Link Logical and Physical Units of Storage
begin figure description - This figure shows a dbspace that includes one chunk and an sbspace that includes two chunks. - end figure description

The database server uses sbspaces to store table columns that contain smart large objects. The database server uses dbspaces to store the rest of the table columns.

You can mirror an sbspace to speed recovery in event of a media failure. For more information, refer to Mirroring.

For information on using onspaces to perform the following tasks, see Managing Disk Space.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]