PlSQLDeveloper工具提供了會話管理功能。
能夠查詢會話內容、殺死會話、查看會話SQL等操作。
常用的會話查詢SQL如下:
-- 查詢所有會話 select * from v$session where username is not null order by logon_time, sid -- 查詢用戶會話 select * from v$session where username = user order by logon_time, sid -- 查詢活動會話 select * from v$session where username is not null and status = 'ACTIVE' order by logon_time, sid