Pre-General Availability: 2022-08-18. This documentation is in pre-General Availability status and is intended for demonstration and preliminary use only. It may not be specific to the hardware on which you are using the software. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to this documentation and will not be responsible for any loss, costs, or damages incurred due to the use of this documentation.
Get query execution report
get
/20210831/projects/{projectId}/queryExecutions/{queryExecutionId}/executionReport
Request
Supported Media Types
- application/json
Path Parameters
-
projectId: string
Minimum Length:
1Maximum Length:255The OCID of Query Service project -
queryExecutionId: string
Minimum Length:
1Maximum Length:255The ID of the asynchronous request.
Query Parameters
-
level: string
Query execution Report level, supported values are 'BASIC' or 'FULL'Default Value:
BASICAllowed Values:[ "BASIC", "FULL" ]
Header Parameters
-
opc-request-id: string
The client request ID for tracing.
Response
Supported Media Types
- application/json
200 Response
successful operation
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : ExecutionReport
Type:
objectExecution Report.
Show Source
-
elapsedTime(optional):
string
SQL statement execution time.
-
plan(optional):
object PlanCollection
Execution Plan details.
-
sqlStatement:
string
SQL statement.
-
stats(optional):
object StatsCollection
Execution statistics.
-
timeEnded(optional):
string(date-time)
The time the query completed. An RFC3339 formatted datetime string.Example:
2019-03-29T09:36:42.000Z -
timeStarted:
string(date-time)
The time the query started. An RFC3339 formatted datetime string.Example:
2019-03-29T09:36:42.000Z
Nested Schema : PlanCollection
Type:
objectExecution Plan details.
Show Source
-
items:
array items
Array of query operations.
Nested Schema : StatsCollection
Type:
objectExecution statistics.
Show Source
-
items:
array items
Array of statistics.
Nested Schema : items
Type:
arrayArray of query operations.
Show Source
-
Array of:
object PlanOperationSummary
Query execution plan summary
Nested Schema : PlanOperationSummary
Type:
objectQuery execution plan summary
Show Source
-
bytes(optional):
number(int64)
Bytes.
-
cost(optional):
number(int64)
Operation costs.
-
id:
number(int64)
Operation identifier
-
ioCosts(optional):
number(int64)
Consumed I/O resources.
-
name:
string
Operation name, e.g. TABLE ACCESS BY INDEX ROWID.
-
object(optional):
string
Table name.
-
ocpuCosts(optional):
number(int64)
Consumed OCPU resources.
-
owner(optional):
string
Object's owner
-
parentId:
number(int64)
Parent operation identifier
-
rawStats(optional):
object RawStatsCollection
Execution raw statistics.
Nested Schema : RawStatsCollection
Type:
objectExecution raw statistics.
Show Source
-
items:
array items
Array of raw statistics.
Nested Schema : items
Type:
arrayArray of raw statistics.
Show Source
-
Array of:
object RawStatsSummary
Raw statistics
Nested Schema : RawStatsSummary
Type:
objectRaw statistics
Show Source
-
desc(optional):
string
Raw stat description.
-
name:
string
Raw stat name.
-
value:
number(int64)
Metric value.
Nested Schema : items
Type:
arrayArray of statistics.
Show Source
-
Array of:
object StatsSummary
Statistics
Nested Schema : StatsSummary
Type:
objectStatistics
Show Source
-
metric:
string
Allowed Values:
[ "ELAPSED_TIME", "CPU_TIME", "USER_IO_WAIT_TIME", "CONCURRENCY_WAIT_TIME", "CLUSTER_WAIT_TIME", "PLSQL_EXEC_TIME", "OTHER_WAIT_TIME", "BUFFER_GETS", "DISK_READS", "DIRECT_WRITES", "READ_REQS", "READ_BYTES", "WRITE_REQS", "WRITE_BYTES", "RET_BYTES" ]Metric name. -
value:
number(int64)
Metric value.
400 Response
Bad Request
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
objectError Information.
Show Source
-
code:
string
Minimum Length:
1Maximum Length:255A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1Maximum Length:1024A human-readable error string.
401 Response
Unauthorized
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
objectError Information.
Show Source
-
code:
string
Minimum Length:
1Maximum Length:255A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1Maximum Length:1024A human-readable error string.
404 Response
Not Found
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
objectError Information.
Show Source
-
code:
string
Minimum Length:
1Maximum Length:255A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1Maximum Length:1024A human-readable error string.
500 Response
Internal Server Error
Headers
-
opc-request-id: string
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Root Schema : DefaultError
Type:
objectError Information.
Show Source
-
code:
string
Minimum Length:
1Maximum Length:255A short error code that defines the error, meant for programmatic parsing. -
message:
string
Minimum Length:
1Maximum Length:1024A human-readable error string.