Solved

tablespace

Posted on 2012-03-23
6
530 Views
Last Modified: 2012-04-03
why I cannot drop tablespace...


SQL> select tablespace_name from dba_tablespaces;

TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
USERS
EXAMPLE

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


SQL>
0
Comment
Question by:b7dba
  • 3
  • 2
6 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 37756657
Error is self explainitory:
tablespace not empty, use INCLUDING CONTENTS option

drop tablespace EXAMPLE INCLUDING CONTENTS;

http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_9004.htm

also look into:  AND DATAFILES
0
 

Expert Comment

by:expert9
ID: 37756759
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.
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37756790
expert9,

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.
0
 

Expert Comment

by:expert9
ID: 37756812
0
 

Expert Comment

by:expert9
ID: 37802627
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..
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
clob to char in oracle 3 63
Oracle Listener Not Starting 11 53
Email query results in HTML 6 31
sum of columns in a row in oracle 3 33
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question