Skip to content

Commit ae76d26

Browse files
committed
added oracle_tablespace_datafiles_sum_vs_max_autoextend_temp.sql
1 parent ac9afa8 commit ae76d26

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--
2+
-- Author: Hari Sekhon
3+
-- Date: 2024-10-18 01:18:50 +0400 (Fri, 18 Oct 2024)
4+
--
5+
-- vim:ts=4:sts=4:sw=4:et:filetype=sql
6+
--
7+
-- https///github.com/HariSekhon/SQL-scripts
8+
--
9+
-- License: see accompanying Hari Sekhon LICENSE file
10+
--
11+
-- If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12+
--
13+
-- https://www.linkedin.com/in/HariSekhon
14+
--
15+
16+
-- Oracle - Temp Tablespace Datafiles Sum vs Max and AutoExtend
17+
18+
19+
SELECT
20+
tablespace_name,
21+
ROUND(SUM(BYTES)/(1024*1024*1024),2) Total_GB,
22+
ROUND(MAXBYTES/(1024*1024*1024),2) Max_GB,
23+
autoextensible
24+
FROM
25+
dba_temp_files
26+
GROUP BY
27+
tablespace_name,
28+
maxbytes,
29+
autoextensible;

0 commit comments

Comments
 (0)