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,24 @@
-- -----------------------------------------------------------------------------------
-- File Name : http://www.oracle-base.com/dba/monitoring/segment_stats.sql
-- Author : DR Timothy S Hall
-- Description : Displays statistics for segments in th specified schema.
-- Requirements : Access to the V$ views.
-- Call Syntax : @segment_stats
-- Last Modified: 20/10/2006
-- -----------------------------------------------------------------------------------
SELECT statistic#,
name
FROM v$segstat_name
ORDER BY statistic#;
ACCEPT l_schema char PROMPT 'Enter Schema: '
ACCEPT l_stat NUMBER PROMPT 'Enter Statistic#: '
SET VERIFY OFF
SELECT object_name,
object_type,
value
FROM v$segment_statistics
WHERE owner = UPPER('&l_schema')
AND statistic# = &l_stat
ORDER BY value;