The DBMS_WORKLOAD_REPOSITORY package is used to manage the Automatic Workload Repository (WR).
Privilege requirements
All subprograms of the DBMS_WORKLOAD_REPOSITORY package require the EXECUTE privilege.
Subprograms
The following table lists the subprograms of the DBMS_WORKLOAD_REPOSITORY package in the current OceanBase Database version and their brief descriptions.
| Subprogram | Description |
|---|---|
| ASH_REPORT | Displays the ASH report in text format. |
| CREATE_SNAPSHOT | Triggers the generation of a snapshot for a cluster. |
| DROP_SNAPSHOT_RANGE | Deletes snapshots within a specified range. |
| MODIFY_SNAPSHOT_SETTINGS | Modifies the WORKLOAD_REPOSITORY configuration. |
