mise à jour de certains scripts SQL

This commit is contained in:
Yacine31
2025-04-18 20:05:19 +02:00
parent ba36501983
commit d5b1cc6ee1
4 changed files with 12 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
prompt <h2>Curseurs par Session (sans les users SYS, SYSTEM, SYSMAN)</h2>
select c.sid, s.username, count(*) open_cursors
from gv$open_cursor c, gv$session s
where s.sid = c.sid
and s.username is not null and s.username not like 'SYS%'
group by c.sid, s.username
;