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

51
vdh/df_details.sql Normal file
View File

@@ -0,0 +1,51 @@
set linesize 120
set pages 999
set verify off
column file_name format a70
column mb format 9G999G999D99
column incr_by_mb format 9G999D99
column max_mb format 9G999G999D99
compute sum of MB on report
compute sum of max_MB on report
break on report
with
files as
( select
file_id, file_name, bytes, maxbytes, increment_by
from
dba_data_files
where
tablespace_name = '&&tablespacename'
union all
select
file_id, file_name, bytes, maxbytes, increment_by
from
dba_temp_files
where
tablespace_name = '&&tablespacename'
),
blocksize as
( select
block_size
from
dba_tablespaces
where
tablespace_name = '&&tablespacename'
)
select
files.file_id, files.file_name,
(files.bytes/1024/1024) MB,
(files.maxbytes/1024/1024) max_MB,
((files.increment_by * blocksize.block_size )/1024/1024) incr_by_mb
from
files,
blocksize
order by
file_id
/
clear breaks
undefine tablespacename