I want to drop tablespace 'xxx.' It raises the ORA-00959 error, "Tablespace does not exist." I check in dba_tablespace...
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
and found it, then I tried to add a data file to the tablespace, and it's showing the same error.
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.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.