From 101ae90d42930ba441e27ff0cc63576a837ae386 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Thu, 9 Nov 2023 02:11:38 +0100 Subject: [PATCH] df et tbs --- Daily/sql/{21_tbs_details.sql => 20_tbs_details.sql} | 0 Daily/sql/21_datafile.sql | 10 ++++++++++ Daily/sql/28_sysaux_occupants.sql | 6 ++++++ 3 files changed, 16 insertions(+) rename Daily/sql/{21_tbs_details.sql => 20_tbs_details.sql} (100%) create mode 100644 Daily/sql/21_datafile.sql create mode 100644 Daily/sql/28_sysaux_occupants.sql diff --git a/Daily/sql/21_tbs_details.sql b/Daily/sql/20_tbs_details.sql similarity index 100% rename from Daily/sql/21_tbs_details.sql rename to Daily/sql/20_tbs_details.sql diff --git a/Daily/sql/21_datafile.sql b/Daily/sql/21_datafile.sql new file mode 100644 index 0000000..64db479 --- /dev/null +++ b/Daily/sql/21_datafile.sql @@ -0,0 +1,10 @@ +prompt

Datafiles

+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 \ No newline at end of file diff --git a/Daily/sql/28_sysaux_occupants.sql b/Daily/sql/28_sysaux_occupants.sql new file mode 100644 index 0000000..e5b28d5 --- /dev/null +++ b/Daily/sql/28_sysaux_occupants.sql @@ -0,0 +1,6 @@ +prompt

SYSAUX Occupants

+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 \ No newline at end of file