补充一下实验,虽然这种情况很少遇到。
DB version is 10.2.0.4
1.创建表,正常交换没有问题
SQL>create table test_p
2 partition by range(object_id)
3 (
4 partition part_01 values less than(10000) tablespace users,
5 partition part_02 values less than(20000) tablespace users2,
6 partition part_03 values less than(maxvalue) tablespace users3
7 )
8* as select object_name,object_id,object_type from dba_objects
SQL> /
表已创建。
SQL> create table test as select * from test_p where 1=0;
表已创建。
SQL> alter table test_p exchange partition part_01 with table test;
表已更改。
SQL> /
表已更改。
2.将分区表的一个列设置为不可用,报14096
SQL> alter table test_P set unused (object_type);
表已更改。
SQL> desc test_p;
名称 是否为空?