Ask the Expert

ORA-00959 error on trying to drop a tablespace

I want to drop tablespace 'xxx.' It raises the ORA-00959 error, "Tablespace does not exist." I check in dba_tablespace and found it, then I tried to add a data file to the tablespace, and it's showing the same error.

    Requires Free Membership to View

Is it possible that you have mixed case in your tablespace name? By default, Oracle uses upper case for object names, including tablespaces. However, some third party applications create objects and tablespaces with mixed case. When you issue "drop tablespace xxx," it looks for a tablespace with that same upper case name. The trick is to enclose the tablespace name in double quotes. So verify the exact spelling of the tablespace name in DBA_TABLESPACES and issue something similar to the following:

DROP TABLESPACE "MyTableSpace";

If you do not use the double quotes here, it expects to find a tablespace with the name "MYTABLESPACE." Since the name contains lower case characters, they do not match, and the ORA-00959 error is raised.


This was first published in October 2004

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: