分区后为何不能直接删除相应的表空间
jxc 2002-12-31 06:07:18 我建立的语句如下:
CREATE TABLESPACE clc2004
DATAFILE 'd:\oracle\oradata\hmis\clc2004.ora'
SIZE 10M autoextend on;
create table test(
srrq date,
b varchar2(10),
primary key(srrq,b)
)
PARTITION BY RANGE (srrq)
(
PARTITION srrq2004 VALUES LESS THAN (TO_DATE('2005-01-01','YYYY-MM-DD')) TABLESPACE clc2004
);
当想删除clc2004表空间时: 写如下代码
alter table test drop partition clc2004;
drop table test;
drop tablespace clc2004 including contents;
但不能直接删除 clc2004.ora 文件,必须重起数据库后,才能删除,请各位高手指点