Search Sessions
You can specify conditions and filters to obtain data about the current sessions in your Managed Database.
Note
The Search sessions feature in Database Management is currently not available for Autonomous Databases. Any mention of "Managed Databases" in this section only refers to External Databases and Oracle Cloud Databases for which Diagnostics & Management is enabled.
The Search sessions feature in Database Management is currently not available for Autonomous Databases. Any mention of "Managed Databases" in this section only refers to External Databases and Oracle Cloud Databases for which Diagnostics & Management is enabled.
A dynamic search in the Search sessions section, allows you to
query the V$SESSION
view and obtain real-time or historic data
about current sessions.
Before you search for sessions, you must ensure that you've set a session credential. For information, see Set Session Credentials.
Here's information on the privileges required to search for sessions and perform other related tasks:
- To list sessions:
READ ON V_$SESSION
,READ ON GV_$SESSION
- To enable or disable SQL trace:
EXECUTE ON DBMS_MONITOR
- To terminate a session:
ALTER SYSTEM
To search for sessions:
The filtered current sessions are listed under Results
and information such as the session's Status and
Program are displayed by default and additional columns such
as Server and SQL trace are displayed if
you added them when setting filter attributes and selected the Show
column check box. You can use the Search in results field to
search for specific sessions.
You can click the Actions icon () for a session and perform the following tasks:
- Terminate session: Click to terminate the session. Note that if you terminate a session, all the operations for the session will be terminated and the user will be disconnected from the database.
- Enable SQL trace: Click to enable SQL trace for the session to capture detailed information for performance diagnostics. In the Enable SQL trace panel, you have the option of enabling SQL trace with Wait information and Bind information, and setting the frequency at which row source statistics are dumped in the trace files for each cursor.
- Disable SQL trace: Click to disable SQL trace for the session.