Skip to main content
You can query the Ocient® System catalog tables to discover important information on system objects such as databases, segments, tables, and indexes. These statistics can be important for monitoring your system to ensure it operates as intended. However, querying these tables can be challenging because generating insights about your system can involve writing complex queries that involve merging, grouping, and filtering multiple system catalog tables. Here, you can find examples of useful queries that you can use as templates for discovering insights about your system.
Many of the metrics on this page are also available in the Ocient Management UI, which provides a visual interface for monitoring queries, databases, storage, and node health without writing SQL.
Most of these example queries use the data_type_coverage table available with the Ocient Simulator. For details, see Ocient Simulator.

Segment System Catalog Tables

For specific column definitions of the system catalog tables referenced in these examples, see the Storage section of the System Catalog page.
The Management UI Storage page displays segment counts, table sizes, and storage space utilization without SQL queries. The Analysis tab breaks this down further by table and by TimeKey® segment.

Segment Size

Check the size of segments and return insights about the segment storage allocation and the number of table rows contained in each segment.
SQL
Output
Text
For information on the system catalog tables queried in this example, see sys.segments and sys.tables.

Page and Segment Information

Check the details for pages and segments in the system.
SQL
Output
Text

Storage Spaces on a System

Check all storage spaces on your system.
SQL
Output
Text

Query Management System Catalog Tables

For specific column definitions of the system catalog tables referenced in these examples, see the Monitoring section of the System Catalog page.
The Management UI Queries page displays running and completed queries with filtering by status, user, service class, and execution time.

Running Queries

Check all queries currently running on the system. The output of the sys.queries table depends on what database you are logged into and your system role. For details, see Query Visibility.
SQL
Output
Text

Recent Queries

Check the most recent queries completed by the system. The output of the sys.completed_queries table depends on what database you are logged into and your system role. For details, see Query Visibility.
SQL
Output
Text

Database and Table System Catalog Tables

For specific column definitions of the system catalog tables used in these examples, see the Databases section of the System Catalog page.
The Management UI Databases page shows database sizes, table counts, row counts, and compression ratios. Select a database to view its schemas, select a schema to view its tables, and select a table to view its columns, indexes, and constraints.

Database Sizes

Check the total size of all databases on your system.
SQL
Output
Text

Table Sizes

Check the total size of all tables on the system.
SQL
Output
Text

Table Statistics

This query provides a breakdown of table statistics and partition information.
SQL
Output
Text
For information on the system catalog tables queried in this example, see sys.segment_groups and sys.segment_parts.

Compression

Check the information on the compression for each column in the specified table.
SQL
Output
Text
For information on the system catalog table queried in this example, see sys.columns_compression_info.

Compression for the Entire Table

This query summarizes the total compression of the specified table. In the example, replace the table name and schema name accordingly.
SQL
Output
Text
For information on the system catalog table queried in this example, see sys.columns_compression_info.

Index Size

Check the total size of each index across the different segment groups. In this example, the table has three secondary indexes added before loading data.
SQL
Output
Text
For information on the system catalog tables queried in this example, see sys.indexes and sys.segment_parts.

Column Sizes

This query finds the size of all columns for the specified table. Before executing this query on your system, replace table_name in the example.
SQL
Output
Text
This output is based on a query using the table data_type_coverage.

Column Cardinality

This query finds the cardinality of each column in the specified table. Knowing the cardinality is useful for determining which compression scheme to use for a column.
SQL
Output
Text
For information on the system catalog table queried in this example, see sys.column_cardinalities.

Cluster and Node System Catalog Tables

For specific column definitions of the system catalog tables referenced in these examples, see the System section of the System Catalog page.
The Management UI Nodes page shows health, status, type, storage utilization, uptime, and software version for every node in the system. Select a node (from this page or from the Ocient Dashboard page) to view its details and configuration.

Nodes Present on a System

Check the status of all nodes in the system.
SQL
Output
Text

Nodes Roles on a System

Check the roles of each node in the system.
SQL
Output
Text

Node Status

Check the operational status, software versions, and assigned roles of your nodes. Possible status values include ACTIVE, STARTING, STOPPING, ERROR, UNKNOWN, or UNREACHABLE.
SQL
Output
Text

Foundation Nodes on a Specific Cluster

Check for all Foundation Nodes on your system clusters.
SQL
Output
Text

Drive Status

Check the status of all drives assigned to nodes in the system.
SQL
Output
Text

Roles, Privileges, and Service Class System Catalog Tables

For specific column definitions of the system catalog tables referenced in these examples, see the User Management section of the System Catalog page.

Group Assignment for Users

Check for all users on the system and their corresponding assigned group.
SQL
Output
Text

User Roles

Check for all users on the system and their assigned role.
SQL
Output
Text

User Privileges

Check the privileges for the specific table name. Before executing this query on your system, replace username in the example.
SQL
Output
Text

Privileges for the Specific Table

Check the granted privileges across all database objects of the specific type, such as GROUP, TABLE, or DATABASE. In this example, the query checks for TABLE privileges.
SQL
Output
Text

Groups Assigned to Service Classes

Check for the service class assignment for all groups.
SQL
Output
Text

Service Class Settings

Check for the settings for the specified service class. Before executing this query on your system, replace the high priority service class name in the example. For details about service class settings, see Workload Management and Service Classes.
SQL
Output
Text

Service Classes for the Specific User

Check for the service class of the specific user. Before executing this query on your system, replace the jmack@test username in this example with the specific username that you want to query.
SQL
Output
Text

Data Pipelines

Pipeline Events

While your pipeline is running, the pipeline generates events in the sys.pipeline_events system catalog table to mark significant checkpoints when something has occurred. In this example, you execute the CREATE PIPELINE and START PIPELINE SQL statements on the pipeline named my_pipeline and let the pipeline complete. As expected, the CREATED, STARTED, and COMPLETED events appear. For details about the lists of files, see the sys.pipeline_files system catalog table. Pipeline events include messages from many different tasks. These events are the background processes that execute across different Loader Nodes during pipeline operation. For details about tasks, you can query the sys.tasks and sys.subtasks system catalog tables.
SQL
Output
SQL

Pipeline Metrics

Find metrics that measure the performance and activity of a pipeline in the sys.pipeline_metrics system catalog table. This table contains one row for each metric at a specified point in time. A common use of this data is to plot metric values over time to examine the behavior of a pipeline. Metric Types Metrics are either instantaneous or incremental:
  • Instantaneous metrics reflect the current value of a counter at the time of the metric collection. These values can increase or decrease based on the current state or rate of the metric.
  • Incremental metrics increment over time and reflect the cumulative value for a specified counter.
Example The first snapshot of a metric appears when it is initialized. Afterward, the metric is updated every 10 seconds. The updated_at column shows the metric collection time. For example, if you are interested in the number of bytes of raw source data that the pipeline has ingested, you can execute this query. The value increases over time as the pipeline runs.
SQL
Output
SQL
Metric Scope Each metric has a scope that defines its uniqueness. Be careful not to aggregate metrics across different scopes. The scope columns are pipeline_id, extractor_task_id, partition_id, and sink_index. If the value of any of these columns is NULL, the scope applies to all values in that dimension. For example, because the sink_index column is NULL for the metric count.source.bytes.ingested, the metric applies to the pipeline and file specified by the pipeline_id, extractor_task_id, partition_id, and file_index columns across all sinks. An extractor_task_id is the internal identifier used when the Ocient System executes a pipeline process on a Loader Node. A pipeline might have many of these processes across time and loaders. Example Retrieve the most recent snapshot for each metric and aggregate the values to produce a single value for a pipeline.
SQL
Output
SQL
This output contains a single row for each metric for each pipeline. If you run a pipeline with 64 files and 100,000 records, the output might look like this. This table explains each column in the output.

Transactional Data Pipelines

When you load data with transactional data pipelines, the Ocient System records the transaction identifier of each SQL statement and pipeline in the transaction_id column of the sys.queries, sys.completed_queries, and sys.pipelines system catalog tables, and the information_schema.pipelines view. After a transactional pipeline completes, the system retains its rows in historical objects such as the information_schema.pipelines_historical view and sys.pipeline_metrics_historical system catalog table. You can join these objects to monitor the progress of active transactions and review the history of committed and rolled-back transactions. A parent transaction groups the SQL statements that execute inside it. Use the UUID_PREFIX function with a prefix length of 64 on the transaction_id column to find the parent transaction of any statement. Rows where the transaction_prefix_len column is 64 belong to the parent transaction, such as COMMIT and ROLLBACK statements. Rows where the value is 96 are child statements that execute inside the transaction, such as CREATE TRANSACTIONAL PIPELINE statements. For details about transactional pipelines, see Transactional Data Pipelines. Monitor Progress of Active Transactions Track the aggregate progress of each active transaction for both parent and child transactions. This query counts the pipelines in each transaction, sums the records that the pipelines have loaded and failed, and calculates the elapsed time. The query excludes transactions that have already committed or rolled back. If you execute the query every few seconds, you can watch the number of pipelines and loaded records increase.
SQL
Output
SQL
Summarize Transaction History Summarize all transactions on the system by state. This query classifies each parent transaction as committed, rolled_back, or active based on whether a COMMIT or ROLLBACK statement was executed in the transaction, and reports the number of parent transactions, the total number of statements, and the earliest and latest statement timestamps for each state.
SQL
Output
SQL
System Catalog Data Integrity and Storage Query Analysis Data Definition Language (DDL) Statement Reference Cluster and Node Management Users, Groups, and Service Classes
Last modified on September 21, 2026