SQL Reference
Data Definition Language (DDL)...
Query Management
query management statements let you monitor and control running queries in an {{ocient}} system for information about system tables containing query data, see docid\ tbjvq0xtd tcxq17hm nc cancel cancels a running query based on its specific query identifier the system cancels query execution at the next available pause point, such as between batches of data processing if the execution of the cancel sql statement fails, you can force the query to terminate immediately by using the docid 5rvt6idm alkrqjsrm1em sql statement to view active queries and their identifiers, see the docid\ tbjvq0xtd tcxq17hm nc table a cancel statement can return these statuses status message description ok the system successfully terminated the query and restored the resources assigned to its execution id not found the specified query identifier does not exist in the system the missing identifier can indicate that the query finished execution before the system could abort it not authorized the user does not have update privilege for the system level to terminate queries no connection the system lost connection to the database while trying to terminate the query network comms error cannot communicate across the distributed system to terminate the query internal error the system encountered an unexpected error required privileges users must have system level update privileges to cancel queries syntax cancel query id parameter type description query id string the universally unique identifier (uuid) of the query to cancel must be a valid uuid string enclosed in single quotes examples cancel a specific query with the 9a9eb7e3 3440 4814 871f 7f0584ac2fd8 identifier cancel '9a9eb7e3 3440 4814 871f 7f0584ac2fd8'; kill kills a running query identified by its uuid this sql statement performs a forceful termination of the query, aborting execution regardless of its current stage if you want to attempt a more gradual query termination that stops processing at the next pause point, use the docid 5rvt6idm alkrqjsrm1em sql statement to view active queries and their identifiers, see the docid\ tbjvq0xtd tcxq17hm nc table status message description ok the system successfully terminated the query and restored the resources assigned to its execution id not found the provided query identifier does not exist in the system the missing identifier can indicate that the query finished execution before the system could abort it not authorized the user does not have update privilege for the system level to terminate queries no connection the system lost connection to the database while trying to terminate the query network comms error cannot communicate across the distributed system to terminate the query internal error the system encountered an unexpected error required privileges users must have system level update privileges to kill queries syntax kill query id arguments parameter type description query id string the uuid of the query to kill must be a valid uuid string enclosed in single quotes example kill a specific query based on the uuid 9a9eb7e3 3440 4814 871f 7f0584ac2fd8 kill '9a9eb7e3 3440 4814 871f 7f0584ac2fd8'; related links docid\ tbjvq0xtd tcxq17hm nc docid\ nw9vavkey2v75moxm muo