why I cannot drop tablespace...

SQL> select tablespace_name from dba_tablespaces;


6 rows selected.

SQL> drop tablespace example;
drop tablespace example
ERROR at line 1:
ORA-01549: tablespace not empty, use INCLUDING CONTENTS option

SQL> drop tablespace EXAMPLE;
drop tablespace EXAMPLE
ERROR at line 1:
ORA-01549: tablespace not empty, use INCLUDING CONTENTS option

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Error is self explainitory:
tablespace not empty, use INCLUDING CONTENTS option


also look into:  AND DATAFILES

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
use below query to confirm that there are objects in this tablespace

select segment_name from dba_segments where tablespace_name='EXAMPLE';

This will confirms that a table has been created in the tablespace EXAMPLE.

so it is essential to drop the tablespace and the contents in it so to fix this problem do the following:-

drop tablespace EXAMPLE including contents and datafiles;

This will fixed the issue.

The option INCLUDING CONTENTS AND DATAFILES will removes the physical files.
slightwv (䄆 Netminder) Commented:

I see you are new to the site.  Welcome.  Please take some time to familiarize yourself with the site by reading through the Help section.

Please read through previous posts before posting so you do not post duplicate information.
well i believe there is alot of difference between in explaining things and duplicating things. client knows nothing thats what the expert exchange is about and experts have to provide solutions which can be understood by the client.......
any ways its ok zone advisor..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.