Get all current sessions
get
                    /database/monitoring/sessions/
Returns all records on GV$SESSION. 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
All current sessions in the database.
                            
                            
                                Root Schema : MonitoringSessions
    
    	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  MonitoringSessionsItem
            
            This object represents a record from GV$SESSION view. GV$SESSION displays session information for each current session. The list of attributes may vary depending on database version.
 
Nested Schema : MonitoringSessionsItem
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThis object represents a record from GV$SESSION view. GV$SESSION displays session information for each current session. The list of attributes may vary depending on database version.
    
    
    
    
        Show Source
        - 
                
                    
                    action: string
                    
                    
                     
                    
                
                
                Name of the currently executing action as set by calling the DBMS_APPLICATION_INFO.SET_ACTION procedure.
 - 
                
                    
                    action_hash: integer
                    
                    
                     
                    
                
                
                Hash value of the ACTION column.
 - 
                
                    
                    audsid: integer
                    
                    
                     
                    
                
                
                Auditing session ID.
 - 
                
                    
                    blocking_instance: integer
                    
                    
                     
                    
                
                
                Instance identifier of the blocking session. This column is valid only if BLOCKING_SESSION_STATUS has the value VALID.
 - 
                
                    
                    blocking_session: integer
                    
                    
                     
                    
                
                
                Session identifier of the blocking session. This column is valid only if BLOCKING_SESSION_STATUS has the value VALID.
 - 
                
                    
                    blocking_session_status: string
                    
                    
                     
                    
                
                
                This column provides details on whether there is a blocking session.
 - 
                
                    
                    client_identifier: string
                    
                    
                     
                    
                
                
                Client identifier of the session.
 - 
                
                    
                    client_info: string
                    
                    
                     
                    
                
                
                Information set by the DBMS_APPLICATION_INFO.SET_CLIENT_INFO procedure.
 - 
                
                    
                    command: integer
                    
                    
                     
                    
                
                
                Command in progress (last statement parsed).
 - 
                
                    
                    con_id: integer
                    
                    
                     
                    
                
                
                The ID of the container to which the data pertains.
 - 
                
                    
                    creator_addr: string
                    
                    
                     
                    
                
                
                Address of the creating process or circuit.
 - 
                
                    
                    creator_serial#: integer
                    
                    
                     
                    
                
                
                Serial number of the creating process or circuit.
 - 
                
                    
                    current_queue_duration: integer
                    
                    
                     
                    
                
                
                If queued (1), the current amount of time the session has been queued. If not currently queued, the value is 0.
 - 
                
                    
                    ecid: string
                    
                    
                     
                    
                
                
                Execution context identifier (sent by Application Server).
 - 
                
                    
                    event: 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.
 - 
                
                    
                    event#: integer
                    
                    
                     
                    
                
                
                If the session is currently waiting, then the number of the resource or event for which the session is waiting. If the session is not in a wait, then the number of the resource or event for which the session most recently waited.
 - 
                
                    
                    external_name: string
                    
                    
                     
                    
                
                
                External name of the database user. For enterprise users, returns the Oracle Internet Directory DN.
 - 
                
                    
                    failed_over: string
                    
                    
                     
                    
                
                
                Indicates whether the session is running in failover mode and failover has occurred (YES) or not (NO).
 - 
                
                    
                    failover_method: string
                    
                    
                     
                    
                
                
                Indicates the transparent application failover method for the session.
 - 
                
                    
                    failover_type: string
                    
                    
                     
                    
                
                
                Indicates whether and to what extent transparent application failover (TAF) is enabled for the session.
 - 
                
                    
                    final_blocking_instance: integer
                    
                    
                     
                    
                
                
                Instance identifier of the final blocking session. This column is valid only if FINAL_BLOCKING_SESSION_STATUS has the value VALID.
 - 
                
                    
                    final_blocking_session: integer
                    
                    
                     
                    
                
                
                Session identifier of the blocking session. This column is valid only if FINAL_BLOCKING_SESSION_STATUS has the value VALID.
 - 
                
                    
                    final_blocking_session_status: string
                    
                    
                     
                    
                
                
                The final blocking session is the final element in the wait chain constructed by following the sessions that are blocked by one another starting with this session. In the case of a cyclical wait chain, one of the sessions in the wait chain will be chosen as the final blocker.
 - 
                
                    
                    fixed_table_sequence: integer
                    
                    
                     
                    
                
                
                This contains a number that increases every time the session completes a call to the database and there has been an intervening select from a dynamic performance table. This column can be used by performance monitors to monitor statistics in the database.
 - 
                
                    
                    inst_id: integer
                    
                    
                     
                    
                
                
                Oracle Real Application Clusters instance number for which this data relates to. In a non-RAC database this number will be 1.
 - 
                
                    
                    last_call_et: integer
                    
                    
                     
                    
                
                
                If the session STATUS is currently ACTIVE, then the value represents the elapsed time (in seconds) since the session has become active. If the session STATUS is currently INACTIVE, then the value represents the elapsed time (in seconds) since the session has become inactive.
 - 
                
                    
                    links: array
                    
                    
                
                
                    links
                
                
                
 - 
                
                    
                    lockwait: string
                    
                    
                     
                    
                
                
                Address of the lock the session is waiting for; NULL if none.
 - 
                
                    
                    logon_time: string
                    
                    
                     
                    
                
                
                Time of logon.
 - 
                
                    
                    machine: string
                    
                    
                     
                    
                
                
                Operating system machine name.
 - 
                
                    
                    module: string
                    
                    
                     
                    
                
                
                Name of the currently executing module as set by calling the DBMS_APPLICATION_INFO.SET_MODULE procedure.
 - 
                
                    
                    module_hash: integer
                    
                    
                     
                    
                
                
                Hash value of the MODULE column.
 - 
                
                    
                    osuser: string
                    
                    
                     
                    
                
                
                Operating system client user name.
 - 
                
                    
                    ownerid: integer
                    
                    
                     
                    
                
                
                Identifier of the user who owns the migratable session.
 - 
                
                    
                    p1: integer
                    
                    
                     
                    
                
                
                First wait event parameter (in decimal).
 - 
                
                    
                    p1raw: string
                    
                    
                     
                    
                
                
                First wait event parameter (in hexadecimal).
 - 
                
                    
                    p1text: string
                    
                    
                     
                    
                
                
                Description of the first wait event parameter.
 - 
                
                    
                    p2: integer
                    
                    
                     
                    
                
                
                Second wait event parameter (in decimal).
 - 
                
                    
                    p2raw: string
                    
                    
                     
                    
                
                
                Second wait event parameter (in hexadecimal).
 - 
                
                    
                    p2text: string
                    
                    
                     
                    
                
                
                Description of the second wait event parameter.
 - 
                
                    
                    p3: integer
                    
                    
                     
                    
                
                
                Third wait event parameter (in decimal).
 - 
                
                    
                    p3raw: string
                    
                    
                     
                    
                
                
                Third wait event parameter (in hexadecimal).
 - 
                
                    
                    p3text: string
                    
                    
                     
                    
                
                
                Description of the third wait event parameter.
 - 
                
                    
                    paddr: string
                    
                    
                     
                    
                
                
                Address of the process that owns the session.
 - 
                
                    
                    pddl_status: string
                    
                    
                     
                    
                
                
                If ENABLED, the session is in a PARALLEL DDL enabled mode. If DISABLED, PARALLEL DDL enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL DDL.
 - 
                
                    
                    pdml_enabled: string
                    
                    
                     
                    
                
                
                This column has been replaced by the PDML_STATUS column.
 - 
                
                    
                    pdml_status: string
                    
                    
                     
                    
                
                
                If ENABLED, the session is in a PARALLEL DML enabled mode. If DISABLED, PARALLEL DML enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL DML.
 - 
                
                    
                    pga_tunable_mem: integer
                    
                    
                     
                    
                
                
                The amount of tunable PGA memory (in bytes).
 - 
                
                    
                    plsql_debugger_connected: string
                    
                    
                     
                    
                
                
                Indicates whether the session is connected to a PL/SQL debugger.
 - 
                
                    
                    plsql_entry_object_id: integer
                    
                    
                     
                    
                
                
                Object ID of the top-most PL/SQL subprogram on the stack; NULL if there is no PL/SQL subprogram on the stack.
 - 
                
                    
                    plsql_entry_subprogram_id: integer
                    
                    
                     
                    
                
                
                Subprogram ID of the top-most PL/SQL subprogram on the stack; NULL if there is no PL/SQL subprogram on the stack.
 - 
                
                    
                    plsql_object_id: integer
                    
                    
                     
                    
                
                
                Object ID of the currently executing PL/SQL subprogram; NULL if executing SQL.
 - 
                
                    
                    plsql_subprogram_id: integer
                    
                    
                     
                    
                
                
                Subprogram ID of the currently executing PL/SQL object; NULL if executing SQL.
 - 
                
                    
                    port: integer
                    
                    
                     
                    
                
                
                Client port number.
 - 
                
                    
                    pq_status: string
                    
                    
                     
                    
                
                
                If ENABLED, the session is in a PARALLEL QUERY enabled mode. If DISABLED, PARALLEL QUERY enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL QUERY.
 - 
                
                    
                    prev_child_number: integer
                    
                    
                     
                    
                
                
                Child number of the last SQL statement executed.
 - 
                
                    
                    prev_exec_id: integer
                    
                    
                     
                    
                
                
                SQL execution identifier of the last executed SQL statement.
 - 
                
                    
                    prev_exec_start: string
                    
                    
                     
                    
                
                
                SQL execution start of the last executed SQL statement.
 - 
                
                    
                    prev_hash_value: integer
                    
                    
                     
                    
                
                
                Used with SQL_HASH_VALUE to identify the last SQL statement executed.
 - 
                
                    
                    prev_sql_addr: string
                    
                    
                     
                    
                
                
                Used with PREV_HASH_VALUE to identify the last SQL statement executed.
 - 
                
                    
                    prev_sql_id: string
                    
                    
                     
                    
                
                
                SQL identifier of the last SQL statement executed.
 - 
                
                    
                    process: string
                    
                    
                     
                    
                
                
                Operating system client process ID.
 - 
                
                    
                    program: string
                    
                    
                     
                    
                
                
                Operating system program name.
 - 
                
                    
                    resource_consumer_group: string
                    
                    
                     
                    
                
                
                Name of the session's current resource consumer group.
 - 
                
                    
                    row_wait_block#: integer
                    
                    
                     
                    
                
                
                Identifier for the block containing the row specified in row_wait_row#. This property is valid only if the session is currently waiting for another transaction to commit and the value of row_wait_obj# is not -1.
 - 
                
                    
                    row_wait_file#: integer
                    
                    
                     
                    
                
                
                Identifier for the data file containing the row specified in row_wait_row#. This property is valid only if the session is currently waiting for another transaction to commit and the value of row_wait_obj# is not -1.
 - 
                
                    
                    row_wait_obj#: integer
                    
                    
                     
                    
                
                
                Object ID for the table containing the row specified in row_wait_row#.
 - 
                
                    
                    row_wait_row#: integer
                    
                    
                     
                    
                
                
                Current row being locked. This property is valid only if the session is currently waiting for another transaction to commit and the value of row_wait_obj# is not -1.
 - 
                
                    
                    saddr: string
                    
                    
                     
                    
                
                
                Session address.
 - 
                
                    
                    schema#: integer
                    
                    
                     
                    
                
                
                Schema user identifier.
 - 
                
                    
                    schemaname: string
                    
                    
                     
                    
                
                
                Schema user name.
 - 
                
                    
                    seconds_in_wait: integer
                    
                    
                     
                    
                
                
                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#: integer
                    
                    
                     
                    
                
                
                A number that uniquely identifies the current or last wait (incremented for each wait).
 - 
                
                    
                    serial#: integer
                    
                    
                     
                    
                
                
                Session serial number. Used to uniquely identify a session's objects. Guarantees that session-level commands are applied to the correct session objects if the session ends and another session begins with the same session ID.
 - 
                
                    
                    server: string
                    
                    
                     
                    
                
                
                Server type.
 - 
                
                    
                    service_name: string
                    
                    
                     
                    
                
                
                Service name of the session.
 - 
                
                    
                    session_edition_id: integer
                    
                    
                     
                    
                
                
                Shows the value that, in the session, would be reported by sys_context('USERENV', 'SESSION_EDITION_ID').
 - 
                
                    
                    shard_ddl_status: string
                    
                    
                     
                    
                
                
                Indicates whether shard DDL is enabled in the current session (ENABLED) or not (DISABLED). This value is only relevant for the shard catalog database.
 - 
                
                    
                    sid: integer
                    
                    
                     
                    
                
                
                Session identifier.
 - 
                
                    
                    sql_address: string
                    
                    
                     
                    
                
                
                Used with sql_hash_value to identify the SQL statement that is currently being executed.
 - 
                
                    
                    sql_child_number: integer
                    
                    
                     
                    
                
                
                Child number of the SQL statement that is currently being executed.
 - 
                
                    
                    sql_exec_id: integer
                    
                    
                     
                    
                
                
                SQL execution identifier; NULL if SQL_ID is NULL or if the execution of that SQL has not yet started.
 - 
                
                    
                    sql_exec_start: string
                    
                    
                     
                    
                
                
                Time when the execution of the SQL currently executed by this session started; NULL if SQL_ID is NULL.
 - 
                
                    
                    sql_hash_value: integer
                    
                    
                     
                    
                
                
                Used with SQL_ADDRESS to identify the SQL statement that is currently being executed.
 - 
                
                    
                    sql_id: string
                    
                    
                     
                    
                
                
                SQL identifier of the SQL statement that is currently being executed.
 - 
                
                    
                    sql_trace: string
                    
                    
                     
                    
                
                
                Indicates whether SQL tracing is enabled (ENABLED) or disabled (DISABLED).
 - 
                
                    
                    sql_trace_binds: string
                    
                    
                     
                    
                
                
                Indicates whether bind tracing is enabled (TRUE) or not (FALSE).
 - 
                
                    
                    sql_trace_plan_stats: string
                    
                    
                     
                    
                
                
                Frequency at which row source statistics are dumped in the trace files for each cursor.
 - 
                
                    
                    sql_trace_waits: string
                    
                    
                     
                    
                
                
                Indicates whether wait tracing is enabled (TRUE) or not (FALSE).
 - 
                
                    
                    sql_translation_profile_id: integer
                    
                    
                     
                    
                
                
                Object number of the SQL translation profile.
 - 
                
                    
                    state: string
                    
                    
                     
                    
                
                
                Wait state.
 - 
                
                    
                    status: string
                    
                    
                     
                    
                
                
                Status of the session.
 - 
                
                    
                    taddr: string
                    
                    
                     
                    
                
                
                Address of the transaction state object.
 - 
                
                    
                    terminal: string
                    
                    
                     
                    
                
                
                Operating system terminal name.
 - 
                
                    
                    time_remaining_micro: integer
                    
                    
                     
                    
                
                
                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: integer
                    
                    
                     
                    
                
                
                Time elapsed since the end of the last wait (in microseconds). If the session is currently in a wait, then the value is 0.
 - 
                
                    
                    top_level_call#: integer
                    
                    
                     
                    
                
                
                Oracle top level call number.
 - 
                
                    
                    type: string
                    
                    
                     
                    
                
                
                Session type.
 - 
                
                    
                    user#: integer
                    
                    
                     
                    
                
                
                Oracle user identifier.
 - 
                
                    
                    username: string
                    
                    
                     
                    
                
                
                Oracle username.
 - 
                
                    
                    wait_class: string
                    
                    
                     
                    
                
                
                Name of the class of the wait event.
 - 
                
                    
                    wait_class#: integer
                    
                    
                     
                    
                
                
                Number of the class of the wait event.
 - 
                
                    
                    wait_class_id: integer
                    
                    
                     
                    
                
                
                Identifier of the class of the wait event.
 - 
                
                    
                    wait_time: integer
                    
                    
                     
                    
                
                
                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: integer
                    
                    
                     
                    
                
                
                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.