Get all session waits
get
/database/monitoring/session_waits/
Returns all records from GV$SESSION_WAIT.
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
All session wait records from GV$SESSION_WAIT. A client requires SQL Administrator role to invoke this service.
Root Schema : MonitoringSessionWaits
Type:
object
Title:
Show Source
MonitoringSessionWaits
-
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 MonitoringSessionWaitsItem
Title:
MonitoringSessionWaitsItem
This object represents a record from GV$SESSION_WAIT view. GV$SESSION_WAIT displays the current or last wait for each session. The list of attributes may vary depending on database version.
Nested Schema : MonitoringSessionWaitsItem
Type:
object
Title:
MonitoringSessionWaitsItem
This object represents a record from GV$SESSION_WAIT view. GV$SESSION_WAIT displays the current or last wait for each session. 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
If the session is currently waiting, then the resource or event for which the session is waiting. If the session is not in a wait, then the resource or event for which the session most recently waited.
-
inst_id(optional):
integer(int32)
Oracle Real Application Clusters instance number for which this data relates to. In a non-RAC database this number will be 1.
-
links(optional):
array links
-
p1(optional):
integer(int32)
First wait event parameter (in decimal).
-
p1raw(optional):
string
First wait event parameter (in hexadecimal).
-
p1text(optional):
string
Description of the first wait event parameter.
-
p2(optional):
integer(int32)
Second wait event parameter (in decimal).
-
p2raw(optional):
string
Second wait event parameter (in hexadecimal).
-
p2text(optional):
string
Description of the second wait event parameter.
-
p3(optional):
integer(int32)
Third wait event parameter (in decimal).
-
p3raw(optional):
string
Third wait event parameter (in hexadecimal).
-
p3text(optional):
string
Description of the third wait event parameter.
-
seconds_in_wait(optional):
integer(int32)
If the session is currently waiting, then the value is the amount of time waited for the current wait. If the session is not in a wait, then the value is the amount of time since the start of the last wait.
-
seq#(optional):
integer(int32)
A number that uniquely identifies the current or last wait (incremented for each wait).
-
sid(optional):
integer(int32)
Session identifier.
-
state(optional):
string
Wait state.
-
time_remaining_micro(optional):
integer(int32)
Amount of time remaining remaining before a timeout. This field may indicate that a timeout has occurred, or that no timeout will occur.
-
time_since_last_wait_micro(optional):
integer(int32)
Time elapsed since the end of the last wait (in microseconds). If the session is currently in a wait, then the value is 0.
-
wait_class(optional):
string
Name of the class of the wait event.
-
wait_class#(optional):
integer(int32)
Number of the class of the wait event.
-
wait_class_id(optional):
integer(int32)
Identifier of the class of the wait event.
-
wait_time(optional):
integer(int32)
If the session is currently waiting, then the value is 0. If the session is not in a wait, then the value indicates the duration of the last wait.
-
wait_time_micro(optional):
integer(int32)
Amount of time waited (in microseconds). If the session is currently waiting, then the value is the time spent in the current wait. If the session is currently not in a wait, then the value is the amount of time waited in the last wait.