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

使用PlSQLDeveloper工具查询Oracle会话数

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

相关文章:

  • 2022-02-06
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2021-11-23
  • 2021-04-12
  • 2021-11-21
  • 2021-10-31
相关资源
相似解决方案