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,22 @@
-- -----------------------------------------------------------------------------------
-- File Name : https://oracle-base.com/dba/monitoring/segment_size.sql
-- Author : Tim Hall
-- Description : Displays size of specified segment.
-- Requirements : Access to the DBA views.
-- Call Syntax : @segment_size (owner) (segment_name)
-- Last Modified: 15/07/2005
-- -----------------------------------------------------------------------------------
SET LINESIZE 500 VERIFY OFF
COLUMN segment_name FORMAT A30
SELECT owner,
segment_name,
segment_type,
tablespace_name,
ROUND(bytes/1024/1024,2) size_mb
FROM dba_segments
WHERE owner = UPPER('&1')
AND segment_name LIKE '%' || UPPER('&2') || '%'
ORDER BY 1, 2;
SET VERIFY ON