删除分区表所在表空间遇到ORA-14401错误
数据库:Oracle11.2.0.3删除分区表所在表空间遇到ora14401错误:SYS@vimop01_bgt;drop tablespaceUSER_TS_MONI_11B including c
数据库:Oracle11.2.0.3
删除分区表所在表空间遇到ora14401错误:
SYS@vimop01_b>drop tablespaceUSER_TS_MONI_11B including contents and datafiles;
drop tablespace USER_TS_MONI_11B including contents anddatafiles
*
ERROR at line 1:
ORA-14404: partitioned table contains partitions in adifferent tablespace
解决方法:
select segment_name,partition_name from dba_segments wheretablespace_name='USER_TS_MONI_11B';
select * from dba_tab_partitions wheretablespace_name='USER_TS_MONI_11B';
找到相应表空间的对象删掉。有些空分区表不产生segment,,在dba_segments下看不到,需要查找dba_tab_partitions,将查找到分区全部删除。
删除操作命令如:ALTER TABLEMON_DATA_DAY_BUFFER_TOTAL DROP PARTITION D_20120530;
SYS@vimop01_b>drop tablespaceUSER_TS_MONI_11B including contents and datafiles;
Tablespace dropped.