Answers for "modify tablespace size oracle"

SQL
1

oracle tablespace size

SELECT T1.TABLESPACE_NAME,
       T1.BYTES / 1024 / 1024   as                        "bytes_used (Mb)",
       T2.BYTES / 1024 / 1024   as                        "bytes_free (Mb)",
       T2.largest / 1024 / 1024 as                        "largest (Mb)",
       round(((T1.BYTES - T2.BYTES) / T1.BYTES) * 100, 2) percent_used
FROM (
         select TABLESPACE_NAME,
                sum(BYTES) BYTES
         from dba_data_files
         group by TABLESPACE_NAME
     ) T1,
     (
         select TABLESPACE_NAME,
                sum(BYTES) BYTES,
                max(BYTES) largest
         from dba_free_space
         group by TABLESPACE_NAME
     ) T2
where T1.TABLESPACE_NAME = T2.TABLESPACE_NAME
order by ((T1.BYTES - T2.BYTES) / T1.BYTES) desc;
Posted by: Guest on May-11-2021
1

alter table column size oracle

ALTER TABLE tablename MODIFY fieldname VARCHAR2(100);
Posted by: Guest on February-09-2020
2

oracle table size

SELECT e.OWNER, e.SEGMENT_NAME, e.TABLESPACE_NAME, sum(e.bytes) / 1048576 AS Megs
FROM dba_extents e
WHERE
  e.OWNER = 'SCHEME_NAME' AND
  e.TABLESPACE_NAME = 'TBS_NAME' AND
  e.SEGMENT_NAME IN ('TABLE_NAME')
GROUP BY e.OWNER, e.SEGMENT_NAME, e.TABLESPACE_NAME
ORDER BY e.TABLESPACE_NAME, e.SEGMENT_NAME;
Posted by: Guest on April-26-2021
0

oracle change tablespace size

ALTER TABLESPACE tablespace_name
    ADD DATAFILE 'path_to_datafile'
    SIZE size
    AUTOEXTEND ON;
Code language: SQL (Structured Query Language) (sql)
Posted by: Guest on April-21-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language