Update 21_datafile.sql

This commit is contained in:
Yacine31
2023-11-22 22:32:02 +01:00
parent 8b4def69f8
commit 5db2cb95e4

View File

@@ -16,8 +16,8 @@ COL online_status format a15 head "Online Status"
SELECT
file_id, file_name, tablespace_name,
round(bytes/1024/1024,0) bytes,
round(maxbytes/1024/1024,0) maxbytes,
round(100*bytes/maxbytes) Pct_Used,
round(maxbytes/1024/1024,0) maxbytes,
round(100*bytes/CASE WHEN maxbytes = 0 THEN 32767*1024*1024 ELSE maxbytes END) Pct_Used,
online_status,
status, autoextensible
FROM dba_data_files