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,28 @@
-- -----------------------------------------------------------------------------------
-- File Name : https://oracle-base.com/dba/monitoring/rbs_stats.sql
-- Author : Tim Hall
-- Description : Displays rollback segment statistics.
-- Requirements : Access to the v$ & DBA views.
-- Call Syntax : @rbs_stats
-- Last Modified: 15/07/2000
-- -----------------------------------------------------------------------------------
SET LINESIZE 500
SET PAGESIZE 1000
SET VERIFY OFF
SELECT b.name "Segment Name",
Trunc(c.bytes/1024) "Size (Kb)",
a.optsize "Optimal",
a.shrinks "Shrinks",
a.aveshrink "Avg Shrink",
a.wraps "Wraps",
a.extends "Extends"
FROM v$rollstat a,
v$rollname b,
dba_segments c
WHERE a.usn = b.usn
AND b.name = c.segment_name
ORDER BY b.name;
SET PAGESIZE 14
SET VERIFY ON