how to set table size in oracle code example
Example 1: alter table column size oracle
ALTER TABLE tablename MODIFY fieldname VARCHAR2(100);
Example 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;
Example 3: oracle change tablespace size
ALTER TABLESPACE tablespace_name
ADD DATAFILE 'path_to_datafile'
SIZE size
AUTOEXTEND ON;
Code language: SQL (Structured Query Language) (sql)