2026-03-12 20:23:15
This commit is contained in:
18
timhall/monitoring/system_stats.sql
Normal file
18
timhall/monitoring/system_stats.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- -----------------------------------------------------------------------------------
|
||||
-- File Name : https://oracle-base.com/dba/monitoring/system_stats.sql
|
||||
-- Author : Tim Hall
|
||||
-- Description : Displays system statistics.
|
||||
-- Requirements : Access to the V$ views.
|
||||
-- Call Syntax : @system_stats (statistic-name or all)
|
||||
-- Last Modified: 03-NOV-2004
|
||||
-- -----------------------------------------------------------------------------------
|
||||
SET VERIFY OFF
|
||||
|
||||
COLUMN name FORMAT A50
|
||||
COLUMN value FORMAT 99999999999999999999
|
||||
|
||||
SELECT sn.name, ss.value
|
||||
FROM v$sysstat ss,
|
||||
v$statname sn
|
||||
WHERE ss.statistic# = sn.statistic#
|
||||
AND sn.name LIKE '%' || DECODE(LOWER('&1'), 'all', '', LOWER('&1')) || '%';
|
||||
Reference in New Issue
Block a user