Data integrity

The structure of an sbpage in the sbspace determines how much data integrity the database server can provide. An sbpage is the unit of allocation for smart-large-object data, which is stored in the user-data area of an sbspace.

The database server supports the following levels of data integrity:
  • High integrity, which tells the database server to use both a page header and a page trailer in each sbpage

    The database server uses the page header and trailer to detect incomplete writes and data corruption. This option detects incomplete writes and data corruption.

  • Moderate integrity, which tells the database server to use a page header, but no page trailer, in each sbpage.

    This option cannot compare the page header with the page trailer to detect incomplete writes and data corruption.

Moderate integrity provides the following benefits:
  • It eliminates an additional data copy operation that is necessary when an sbpage has page headers and page trailers.
  • It preserves the user data alignments on pages.

Moderate integrity might be useful for smart large objects that contain large amounts of audio or video data that is moved through the database server and that does not require a high data integrity.

By default, the database server uses high integrity (page headers and page trailers) for sbspace pages. You can control the data integrity for a smart large object as part of its storage characteristics.
Important: Consider carefully whether to use moderate integrity for sbpages of a smart large object. Although moderate integrity takes less disk space per page, it also reduces the ability of the database server to recover information if disk errors occur.