Hello friends, in this article we are going to discuss how to find the details of the currently active user session with details in Oracle Database. To check active sessions in Oracle use the below query.
Find Active session
To check active sessions in Oracle, we need to connect with the sys user and run the below query using v$session view.
SQL>select sid,serial#,username,osuser,machine,program,module from v$session where status='ACTIVE'
sid – Session identifier
serial# – Session serial number
username – Database user name
osuser – Operating system client user name
machine – Operating system machine name
program – Operating system program name
module – Name of the currently executing module as set by calling the DBMS_APPLICATION_INFO.SET_MODULE procedure
Connect with me on: