df et tbs

This commit is contained in:
Yacine31
2023-11-09 02:11:38 +01:00
parent 382f68d27d
commit 101ae90d42
3 changed files with 16 additions and 0 deletions

10
Daily/sql/21_datafile.sql Normal file
View File

@@ -0,0 +1,10 @@
prompt <h2>Datafiles </h2>
SELECT /*+ NO_MERGE */
x.file_name, x.file_id, x.tablespace_name, round(x.bytes/1024/1024,0) "Bytes_Mo", x.status, x.autoextensible, round(x.maxbytes/1024/1024/1024,0) "MaxBytes_Go", x.online_status
--,c.name con_name
FROM dba_data_files x
--LEFT OUTER JOIN v$containers c ON c.con_id = x.con_id
ORDER BY
--x.con_id,
x.file_name;
exit

View File

@@ -0,0 +1,6 @@
prompt <h2>SYSAUX Occupants</h2>
SELECT /*+ NO_MERGE */
v.*, ROUND(v.space_usage_kbytes / POWER(10,6), 3) space_usage_gbs
FROM v$sysaux_occupants v
ORDER BY 1;
exit