ORA-01658: unable to create INITIAL extent for segment in tablespace USERS2
When i create a table oracle gives below mention error
Though there is enough space available in the data file of USERS2 tablespace.
I have oracle8i workgroup on windows-NT
datafile status of USERS2 tablespace from enterprise manager
size (M) used(M)
data1.dbf 650 512.932
data2.dbf 500 272.018 <-enough space here
data3.dbf 500 431.406 <-enough space here
It seems your tablespace is realy badly fragmented! It is not sufficient to have enough free space in the datafile, this space has to be *contiguous*. Run the following query to see sizes of your free chunks in that tablespace:
select file_id, bytes as free_chunk from dba_free_space
where tablespace_name = 'USERS2'
order by bytes desc;
Try also coalescing adjascent free chunks in bigger chunks by
ALTER TABLESPACE ZSERS2 COALESCE;
HTH,
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Have you tried by decreasing the initial extent value? But make sure that it is quite enough to hold the data. I faced the same problem , then I calculated the exact initial extent size required and it works.
Is it OK to change the size of extents in the existing tablespace ?
I have a export dmp which I want to import to my tablespace.
But I want to use my own extent sizes and not the one from the dmp. Is there any way to do this ??
you can import with rows=n
then alter the storage parameters, if you have many objects then you probably better build a script with dynamic sql to do the alter table/index etc etc.
after just import again with ignore=y
Bookmarks