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:
object
Title:
Show Source
PerformanceActionSessionHistoryWaits
-
count(optional):
integer(int32)
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(int32)
The actual page size limit on number of records applied by the server.
-
links(optional):
array links
-
offset(optional):
integer(int32)
The actual index from which the item resources are returned.
Nested Schema : items
Type:
Show Source
array
-
Array of:
object PerformanceActionSessionHistoryWaitsItem
Title:
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
Title:
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.
Show Source
-
con_id(optional):
integer(int32)
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(int32)
Event number.
-
inst_id(optional):
integer(int32)
Instance number from which the associated V$ view information was obtained.
-
links(optional):
array links
-
p1(optional):
integer(int32)
First wait event parameter (in decimal).
-
p1text(optional):
string
Description of the first wait event parameter.
-
p2(optional):
integer(int32)
Second wait event parameter (in decimal).
-
p2text(optional):
string
Description of the second wait event parameter.
-
p3(optional):
integer(int32)
Third wait event parameter (in decimal).
-
p3text(optional):
string
Description of the third wait event parameter.
-
seq#(optional):
integer(int32)
Sequence of wait events; 1 is the most recent.
-
sid(optional):
integer(int32)
Session identifier.
-
time_since_last_wait_micro(optional):
integer(int32)
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(int32)
Amount of time waited (in hundredths of a second).
-
wait_time_micro(optional):
integer(int32)
Amount of time waited (in microseconds).