/ oracle

extend oracle tablespace

find which every tablespaces usage

select df.tablespace_name "Tablespace",
totalusedspace "Used MB",
(df.totalspace - tu.totalusedspace) "Free MB",
df.totalspace "Total MB",
round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace))
"Pct. Free"
from
(select tablespace_name,
round(sum(bytes) / 1048576) TotalSpace
from dba_data_files 
group by tablespace_name) df,
(select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name
from dba_segments 
group by tablespace_name) tu
where df.tablespace_name = tu.tablespace_name ;

list data files: select * from dba_data_files

add new data file: alter tablespace ljbbdata add datafile DATA_FILE_PATH size 20G

modify existing data file:ALTER DATABASE DATAFILE DATA_FILE_PATH AUTOEXTEND ON NEXT 512M MAXSIZE 34359721984

small data file type max size 32G