tablespace issue

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

tablespace issue

Roshan
Oracle Database 12.1.0.2

Hi Erman,

in one of the tablespaces on production, I see the free space is 2TB
freespace.PNG

Users have complained of tablespace space error until I added 2 datafiles of 31G in MOBILE_DATA_009 tablespace. Why are othere datafiles not being used despite showing free space?

TBS.PNG

Regards,

Roshan

Reply | Threaded
Open this post in threaded view
|

Re: tablespace issue

ErmanArslansOracleBlog
Administrator
If you add datafiles to a tablespace , those datafiles are used.. Also, your free size is calculated accordingly.
So there is no such thing -> "other datafiles not being used despite showing free space"

I can't understand the situation, by looking at the pictures that you sent to me..

1)Send me the exact error your users are getting. (also the sql they are executing)

2)What is the name of the problematic tablespace? As for the problematic tablespace , send me the following query output;

select a.tablespace_name,
       a.bytes_alloc/(1024*1024) "TOTAL ALLOC (MB)",
       a.physical_bytes/(1024*1024) "TOTAL PHYS ALLOC (MB)",
       nvl(b.tot_used,0)/(1024*1024) "USED (MB)",
       (nvl(b.tot_used,0)/a.bytes_alloc)*100 "% USED"
from ( select tablespace_name,
       sum(bytes) physical_bytes,
       sum(decode(autoextensible,'NO',bytes,'YES',maxbytes)) bytes_alloc
       from dba_data_files
       group by tablespace_name ) a,
     ( select tablespace_name, sum(bytes) tot_used
       from dba_segments
       group by tablespace_name ) b
where a.tablespace_name = b.tablespace_name (+)
--and   (nvl(b.tot_used,0)/a.bytes_alloc)*100 > 10
and   a.tablespace_name not in (select distinct tablespace_name from dba_temp_files)
and   a.tablespace_name not like 'UNDO%'
order by 1
--order by 5
/
Reply | Threaded
Open this post in threaded view
|

Re: tablespace issue

Roshan
TABLESPACE_NAME                TOTAL ALLOC (MB) TOTAL PHYS ALLOC (MB)  USED (MB)
------------------------------ ---------------- --------------------- ----------
    % USED
----------
MOBILE_DATA_009                         1902576               1900884    1820112
95.6656659

On the screenshot, I see the free space seems to be 2TB
Reply | Threaded
Open this post in threaded view
|

Re: tablespace issue

ErmanArslansOracleBlog
Administrator
Send me the exact error your users are getting. (also the sql they are executing)
Reply | Threaded
Open this post in threaded view
|

Re: tablespace issue

Roshan
Reply | Threaded
Open this post in threaded view
|

Re: tablespace issue

ErmanArslansOracleBlog
Administrator
There is no space to extend.

There may be free space before this load.. But during this load, the free space may decrease and at the end, you may fail with this error.

did you monitor your tablespace during this activity?