oracle tablespace size

Solutions on MaxInterview for oracle tablespace size by the best coders in the world

showing results for - "oracle tablespace size"
Gabriela
12 Jul 2018
1SELECT T1.TABLESPACE_NAME,
2       T1.BYTES / 1024 / 1024   as                        "bytes_used (Mb)",
3       T2.BYTES / 1024 / 1024   as                        "bytes_free (Mb)",
4       T2.largest / 1024 / 1024 as                        "largest (Mb)",
5       round(((T1.BYTES - T2.BYTES) / T1.BYTES) * 100, 2) percent_used
6FROM (
7         select TABLESPACE_NAME,
8                sum(BYTES) BYTES
9         from dba_data_files
10         group by TABLESPACE_NAME
11     ) T1,
12     (
13         select TABLESPACE_NAME,
14                sum(BYTES) BYTES,
15                max(BYTES) largest
16         from dba_free_space
17         group by TABLESPACE_NAME
18     ) T2
19where T1.TABLESPACE_NAME = T2.TABLESPACE_NAME
20order by ((T1.BYTES - T2.BYTES) / T1.BYTES) desc;
Josefina
17 Jan 2020
1SELECT e.OWNER, e.SEGMENT_NAME, e.TABLESPACE_NAME, sum(e.bytes) / 1048576 AS Megs
2FROM dba_extents e
3WHERE
4  e.OWNER = 'SCHEME_NAME' AND
5  e.TABLESPACE_NAME = 'TBS_NAME' AND
6  e.SEGMENT_NAME IN ('TABLE_NAME')
7GROUP BY e.OWNER, e.SEGMENT_NAME, e.TABLESPACE_NAME
8ORDER BY e.TABLESPACE_NAME, e.SEGMENT_NAME;
Erin
15 Feb 2020
1    ALTER TABLESPACE tablespace_name
2    ADD DATAFILE 'path_to_datafile'
3    SIZE size
4    AUTOEXTEND ON;
5Code language: SQL (Structured Query Language) (sql)
queries leading to this page
oracle tablespace increasefind table size in oracleoracle tablespace size in gboracle tablespace usageoracle free tablespaceget size of tables in oraclehow to check the size of the table in oracletablespaces size oracleget table size in oracleoracle select size all tablespacetablespace free size in oracleselect tablespace size oraclecheck tablespace size in oracleoracle tablespace sizeoracle get table sizescheck freespace in tablespace oraclecheck size of tablespace in oracleoracle table size tablespacehow to set table size in oracleget tablespace size oracletablespace oracle size checkhow to increase tablespace size in oraclecheck all tablespace and the size in oracletablespace free size in oracletablespace size in oracleoracle column sizehow to check table size in oraclesize of oracle tableoracle get tablespace sizeoracle find the size of a tableoracle table size limitsize of a table oraclecheck tablespace size oracletable size in oraclequery to find table size in oracle 12ctablespace size oracle queryextend the table size oraclehow to increase size of tablespace in oraclechange tablespace size oracleoracle increase tablespaceoracle query table sizehow to increase tablespace in oracleoracle table sizeoracle view table sizeview tablespace size oraclehow to find table size in oracledata type size table for sql in oracleoracle show size of tablespaceoracle disk space table size querycheck table size in oraclemodify tablespace size oraclehow to check tables size in oracleoracle table size queryoracle tablespace size