Skip to main content
Version: V1.4.0

CANCEL_GATHER_STATS

CANCEL_GATHER_STATS is used to cancel the statistics collection command.

Syntax​

DBMS_STATS.cancel_gather_stats (
taskid VARCHAR2
);

Parameter description​

ParameterDescription
taskidThe ID of the statistics collection task. You can query the V$OB_OPT_STAT_GATHER_MONITOR view to obtain this value.

Examples​

CALL DBMS_STATS.CANCEL_GATHER_STATS(taskid);
info

In this example, taskid must be replaced with the actual value.