Sunday, 13 November 2011

ORA-23515: materialized views and/or their indices exist in the tablespace

SQL> drop tablespace TEST1 including contents cascade constraints;
*
ERROR at line 1:
ORA-23515: materialized views and/or their indices exist in the tablespace

Now you have to drop all materialized view in this tablespace to drop this tablespace.

SQL> drop materialized view  <MV_NAME>
 
Materialized view dropped.

Elapsed: 00:00:01.70
 
SQL> drop tablespace TEST1 including contents and datafiles;

Tablespace dropped.

Elapsed: 00:00:01.37
SQL>

1 comment:

  1. Thx, but how do you know which views are stored on this tablespace ?

    ReplyDelete

The Best AI Apps for Android That Make Your Smartphone Smarter

The Best AI Apps for Android That Make Your Smartphone Smarter   Introduction: In today's digital age, artificial intelligence (AI) ...