Showing posts with label drop. Show all posts
Showing posts with label drop. Show all posts

Wednesday, September 22, 2010

Dropping and creating tables in read only tablespaces?!

Dropping and creating tables in read only tablespaces?!


July 11th, 2010, Tanel Poder


You probably already know that it’s possible to drop tables in Oracle read only tablespaces… (You did know that already, right? ;-) Here’s a little example:

create tablespace ronly datafile '/u03/oradata/LIN112/ronly.01.dbf' size 10m;
Tablespace created.
create table test tablespace ronly as select * from all_users;
Table created.
alter tablespace ronly READ ONLY;
Tablespace altered.
drop table test;
Table dropped.