使用PlSQLDeveloper工具查询Oracle会话数


PlSQLDeveloper工具提供了会话管理功能。

QQ截图20181202195734

能够查询会话内容、杀死会话、查看会话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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM