Skip to main content
provides several capabilities to check on the quality of data on a node and to quarantine segment groups that are problematic for any reason. Also, you can manage pages by converting them to segments. Related to data integrity is the ability to rebuild tasks. For details, see Distributed Tasks.

ALTER SEGMENT QUARANTINE

ALTER SEGMENT QUARANTINE isolates segment groups from segment generation or queries. Use this SQL statement if segments are causing unexpected results or crashes. The segments can be un-quarantined by setting quarantine_level to none Syntax
SQL

Using Quarantine Levels ( <quarantine_level> )

You can place quarantines at these segment levels. Examples  This example quarantines a single segment group from segment_generation
SQL
This example quarantines multiple segment groups from segment_generation
SQL
This example removes a quarantine from a single-segment group.
SQL
This example removes a quarantine from multiple segment groups.
SQL
This example quarantines at the query level.
SQL
This example removes a quarantine at the query level.
SQL
This example quarantines at both the query and segment-group levels.
SQL

DRAIN PAGES

The DRAIN PAGES SQL statement instructs the Ocient System to immediately convert buffered pages into segments on one or more Loader Nodes. During normal operation, the system converts pages to segments automatically based on internal thresholds and timeouts, so the DRAIN PAGES statement is usually needed only in special circumstances. For example, draining pages can be useful before performing planned maintenance on Loader Nodes. The SQL statement targets all Loader Nodes by default. You can optionally scope the operation to a specific storage scope or table, and you can restrict it to a subset of Loader Nodes.
The DRAIN PAGES statement forces the immediate restructuring of buffered data into durable segments, which can affect system resource utilization and loading performance. Contact Ocient Support before using this SQL statement.
Required Privileges
  • To drain all pages or drain pages for a specific storage scope, you must have UPDATE privileges on the system.
  • To drain pages for a specific table, you must have UPDATE privileges on the system or DELETE privileges on the database that contains the table.
Syntax
SQL
Examples Drain All Pages This example converts all buffered pages to segments across every Loader Node.
SQL
Drain Pages for a Storage Scope This example converts only pages associated with the storage scope identified by the UUID a1b2c3d4-e5f6-7890-abcd-ef1234567890.
SQL
Drain Pages for a Table This example converts only pages associated with the table identified by the UUID 12345678-abcd-ef01-2345-6789abcdef01.
SQL
Drain Pages on Specific Loader Nodes This example sends the drain request to the loader-node-1 and loader-node-2 Loader Nodes.
SQL
Drain Pages for a Table on a Specific Loader Node This example converts only pages associated with the table identified by the UUID 12345678-abcd-ef01-2345-6789abcdef01 on the loader-node-1 Loader Node.
SQL
Errors and Warnings
Last modified on May 20, 2026