Session Management is very important for Database Administrators. Hosting a database is not always fun as people accessing the database can do all kinds of stuff to it. These sessions need to be sometimes killed for the greater good. Below is session management for a few databases.
For Oracle Database Session Management;
Make sure you are have admin credentials. Use V$Session View for Session Management for Oracle Database.
select * from v$session;
or specifically
select sid,serial#,username,machine,program from v$session; to avoid unnecessary complicated data.
Now to kill the unnecessary session. Using the SID and Serial # of the session you can kill the session as below;
alter system kill session ‘SID,Serial #’;
e.g., alter system kill session ‘13,10196’;
For MS SQL Server 200x;
SQL Server has the simplest Session monitoring there is. Connect to the DB server from SQL Server Management Studio. Right Click on the Server and select “Activity Monitor”. In the resulting window expand the “Processes” pane to get the sessions running. Right click on the desired pesky session and select “Kill Process”.
I will add other Databases session management info soon….