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