| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> RO tablespaces, LMT and drop table.
Hi!
When dropping a table from a read only LMT tablespace, dictionary is updated, but the extent bitmap in datafile isn't, for obvious reasons. Now, if I put my tablespace back to read write, how do I get the extent, originally belonging to dropped table, freed?
I've tried just creating additional table in "full" tablespace or extending the datafile to create a second table and allocating extent over datafile boundary (to invoke smon as was done with temp segments), I tried even coalesce command on LMT (sic) tablespace etc, but so far I haven't got my extent back. I have tested this on Linux and Solaris.
Any ideas?
See my experiment below.
Thanks,
Tanel.
SQL> select * from v$version;
BANNER
SQL> create tablespace t datafile '/u21/oradata/ora92/t01.dbf' size 1048k autoextend off extent management local uniform size 1m;
Tablespace created.
SQL> create table t (a number) tablespace t;
Table created.
SQL> select count(*) from dba_free_space where tablespace_name = 'T';
COUNT(*)
0
SQL> alter tablespace t read only;
Tablespace altered.
SQL> drop table t;
Table dropped.
SQL> select count(*) from dba_free_space where tablespace_name = 'T';
COUNT(*)
0
SQL> alter tablespace t read write;
Tablespace altered.
SQL> select count(*) from dba_free_space where tablespace_name = 'T';
COUNT(*)
0 Received on Sat Mar 22 2003 - 11:32:19 CST
![]() |
![]() |