Get the last 10 wait events for each active session
get
/database/performance/active_sessions_history_waits/
Return records from GV$SESSION_WAIT_HISTORY. A client requires SQL Administrator role to invoke this service.
Request
Query Parameters
-
limit: integer(int32)
The maximum number of records to return.
-
q:
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 TopResponse
Supported Media Types
- application/json
200 Response
Description of session wait history.
Root Schema : PerformanceActionSessionHistoryWaits
Type:
Show Source
object
-
count: integer
Total number of records in the current response.
-
hasMore: boolean
Indicates if there are more records to be retrieved.
-
items: array
items
-
limit: integer
The actual page size limit on number of records applied by the server.
-
links: array
links
-
offset: integer
The actual index from which the item resources are returned.
Nested Schema : items
Type:
Show Source
array
-
Array of:
object PerformanceActionSessionHistoryWaitsItem
Describes a wait event for a session. Data corresponds to a record from GV$SESSION_WAIT_HISTORY. The list of attributes may vary depending on database version.
Nested Schema : PerformanceActionSessionHistoryWaitsItem
Type:
object
Describes a wait event for a session. Data corresponds to a record from GV$SESSION_WAIT_HISTORY. The list of attributes may vary depending on database version.
Show Source
-
con_id: integer
The ID of the container to which the data pertains.
-
event: string
Resource or event for which the session is waiting.
-
event#: integer
Event number.
-
inst_id: integer
Instance number from which the associated V$ view information was obtained.
-
links: array
links
-
p1: integer
First wait event parameter (in decimal).
-
p1text: string
Description of the first wait event parameter.
-
p2: integer
Second wait event parameter (in decimal).
-
p2text: string
Description of the second wait event parameter.
-
p3: integer
Third wait event parameter (in decimal).
-
p3text: string
Description of the third wait event parameter.
-
seq#: integer
Sequence of wait events; 1 is the most recent.
-
sid: integer
Session identifier.
-
time_since_last_wait_micro: integer
Time elapsed (in microseconds) since the end of the previous wait in the wait history.
-
username: string
Name of the user that is associated with the session.
-
wait_time: integer
Amount of time waited (in hundredths of a second).
-
wait_time_micro: integer
Amount of time waited (in microseconds).