Purpose
v$sql_workarea displays the workarea statistics of all operators previously subject to automatic SQL memory management.
Fields
| Field | Type | Nullable? | Description |
|---|---|---|---|
| address | VARBINARY(8) | NO | The address of the handle corresponding to the SQL statement. No value is specified for this field. |
| hash_value | bigint(0) | NO | The hash value of the SQL statement. |
| sql_id | varchar(32) | NO | The unique identifier of the SQL statement. |
| child_number | bigint(0) | NO | The number of the cursor. |
| workarea_address | VARBINARY(8) | NO | The address of the workarea. |
| operation_type | varchar(40) | NO | The type of the operator using the workarea, for example, Sort, Hash Join, or Group by. |
| operation_id | bigint(20) | NO | The unique identifier of the operator in the plan tree. |
| policy | varchar(10) | NO | The strategy for the workarea. Valid values: |
| estimated_optimal_size | bigint(20) | NO | The estimated memory size in bytes required for executing the operator in the workarea in optimal mode. |
| estimated_onepass_size | bigint(20) | NO | The estimated memory size in bytes required for executing the operator in one pass. |
| last_memory_used | bigint(20) | NO | The size in bytes of the memory used by the cursor in the last execution. |
| last_execution | varchar(10) | NO | Indicates whether the workarea selects the optimal, one pass, or multipasses mode in the last execution of the cursor. |
| last_degree | bigint(20) | NO | The degree of parallelism in the last execution. |
| total_executions | bigint(20) | NO | The total number of executions in the workarea. |
| optimal_executions | bigint(20) | NO | The number of executions in optimal mode. |
| onepass_executions | bigint(20) | NO | The number of executions in one pass mode. |
| multipasses_executions | bigint(20) | NO | The number of executions in multipasses mode. |
| active_time | bigint(20) | NO | The average active duration of the workarea in seconds. |
| max_tempseg_size | bigint(20) | NO | The maximum size in bytes of the temporary disk space used by the workarea. This field is NULL if the workarea has not used the temporary space. |
| last_tempseg_size | bigint(20) | NO | The size of the temporary disk space used by the workarea in the last execution. This field is NULL if the workarea did not use the temporary space. |
| con_id | bigint(20) | NO | The ID of the tenant. |