Thursday, October 10, 2024

Tablespace

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 ;


alter tablespace SOAPRD_SOAINFRA add datafile size 2G autoextend on maxsize 20G;


alter tablespace SOADE3_STB add datafile size 2G autoextend on maxsize 20G;






No comments:

Post a Comment

Oct'25 CPU - SOA Stack Patch Bundle 12.2.1.4.251011 - Patch 38529263

 Patch 38529263: SOA Stack Patch Bundle 12.2.1.4.251011 Included in stack bundle patch Serial Number Patch Tracking Number Patch Name 1 3596...