oracle lob类型的索引在表迁移表空间时,索引怎样迁移到别的表空间?详细如下: 在线等 各位大侠帮忙看看

1.创建XMLTYPE类型的表。create table TEST OF XMLTYPE
在test表上创建索引:create index test_index on test(extractvalue(sys_makexml("xmldata"),'/meta/metaid'))
2.这时系统会自动生成两条以SYS_开头的索引。在user_indexes中查询:select * from user_indexes where table_name='test',结果如下:
index_name index_type table_name
SYS_IL0001020065C00003$$ LOB TEST
SYS_C00242874 NORMAL TEST
test_index FUNCTION-BASED NORMAL TEST
3.现要将表TEST迁移到新的表空间:alter table test move tablespace 新表空间
这时在user_indexes中查询到:test_index、SYS_C00242874这两条索引的status为unusable.失效了。
问题:怎样处理?
提示:如下这条语句处理不行。下面这条语句是针对表中有LOB字段的才行。我问的问题是表为LOB类型,表中没有字段。
alter table TEST move tablespace 新表空间 lob(LOB字段) store as (tablespace 新表空间);

相似回答