使用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

猜你喜欢

转载自www.cnblogs.com/xusweeter/p/10054955.html