Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dropping a tablespace

baskar.lJan 23 2011 — edited Jan 23 2011
Hi ,

DB version is 10.2.0.4 . Trying to drop tablespace it throws error as
SQL> drop tablespace APPS_TS_SUMMARY including contents and datafiles;
drop tablespace APPS_TS_SUMMARY including contents and datafiles
*
ERROR at line 1:
ORA-23515: materialized views and/or their indices exist in the tablespace


SQL> !oerr ora 23515
23515, 00000, "materialized views and/or their indices exist in the tablespace"
// *Cause:  An attempt was made to drop a tablespace which contains
//          materialized views and/or their indices.
// *Action: Drop the materialized views in this tablespace. Also,
//          find indices belonging to materialized views in this
//          tablespace and drop then.  Then try dropping the tablespace.
//
So dropped the MV in the tablespace using,
select 'drop materialized view '||owner||'.'||name||' ;' from dba_registered_snapshots where name in (select table_name from dba_tables where tablespace_name='APPS_TS_SUMMARY');
Then too it showed the same error. How do i drop this tablespace?

baskar.l
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2011
Added on Jan 23 2011
7 comments
570 views