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
Supported Media Types
- application/json
Query Parameters
-
limit(optional): integer(int32)
The maximum number of records to return.
-
q(optional): string
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.
Response
Supported Media Types
- application/json
200 Response
Description of session wait history.
Root Schema : PerformanceActionSessionHistoryWaits
Type:
Show Source
object
-
count(optional):
integer
Total number of records in the current response.
-
hasMore(optional):
boolean
Indicates if there are more records to be retrieved.
-
items(optional):
array items
-
limit(optional):
integer
The actual page size limit on number of records applied by the server.
-
links(optional):
array links
-
offset(optional):
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(optional):
integer
The ID of the container to which the data pertains.
-
event(optional):
string
Resource or event for which the session is waiting.
-
event#(optional):
integer
Event number.
-
inst_id(optional):
integer
Instance number from which the associated V$ view information was obtained.
-
links(optional):
array links
-
p1(optional):
integer
First wait event parameter (in decimal).
-
p1text(optional):
string
Description of the first wait event parameter.
-
p2(optional):
integer
Second wait event parameter (in decimal).
-
p2text(optional):
string
Description of the second wait event parameter.
-
p3(optional):
integer
Third wait event parameter (in decimal).
-
p3text(optional):
string
Description of the third wait event parameter.
-
seq#(optional):
integer
Sequence of wait events; 1 is the most recent.
-
sid(optional):
integer
Session identifier.
-
time_since_last_wait_micro(optional):
integer
Time elapsed (in microseconds) since the end of the previous wait in the wait history.
-
username(optional):
string
Name of the user that is associated with the session.
-
wait_time(optional):
integer
Amount of time waited (in hundredths of a second).
-
wait_time_micro(optional):
integer
Amount of time waited (in microseconds).