Get execution plan for an SQL Statement

get

/database/performance/sql_statements/{sql_id}/plan

Returns all GV$SQL_PLAN records for a specified SQL_ID. A client requires SQL Administrator role to invoke this service.

Request

Path Parameters
Query Parameters
  • The maximum number of records to return.
  • Filtering is the process of limiting a collection resource by using a per-request dynamic filter definition across multiple page resources, where each page contains a subset of items found in the complete collection. Filtering enables efficient traversal of large collections.
    Examples

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Execution plan for the specified SQL statement.
Body ()
Root Schema : PerformanceSQLStatementPlanItem
Type: object
Describes the explain plan for an SQL Statement.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
  • Depth (or level) of the operation in the tree. The root operation (statement) is level 0.
  • A number assigned to each step in the execution plan.
  • Name of the internal operation performed in this step (for example, TABLE ACCESS).
  • The number of rows the optimizer is expecting the operation to produce each time it is called. Also known as E-Rows.
  • The number of times the SQL Statement is referenced in GV$ACTIVE_SESSION_HISTORY.
Nested Schema : LinkRelation
Type: object
Show Source
Back to Top