2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
-- -----------------------------------------------------------------------------------
-- File Name : http://www.oracle-base.com/dba/monitoring/session_stats_by_sid.sql
-- Author : DR Timothy S Hall
-- Description : Displays session-specific statistics.
-- Requirements : Access to the V$ views.
-- Call Syntax : @session_stats_by_sid (sid) (statistic-name or all)
-- Last Modified: 19/09/2006
-- -----------------------------------------------------------------------------------
SET VERIFY OFF
SELECT sn.name, ss.value
FROM v$sesstat ss,
v$statname sn
WHERE ss.statistic# = sn.statistic#
AND ss.sid = &1
AND sn.name LIKE '%' || DECODE(LOWER('&2'), 'all', '', LOWER('&2')) || '%';