最初由 wyq21973 发布 [B]在什么情况下索引会失效呢? [/B]
使用道具 举报
最初由 oracle-plus 发布 [B] 例如alter table xxx move tablespace的時候,參考該table的索引就會invalid [/B]
最初由 wyq21973 发布 [B] 我测试了一下,好象不会。 [php] wyq@ORCL>create table test as select * from dba_objects; Table created. wyq@ORCL>create bitmap index test_type on test (object_type); Index created. wyq@ORCL>column object_name format a30 wyq@ORCL>select object_name,status from user_objects where object_name = 'TEST_TYPE'; OBJECT_NAME STATUS ------------------------------ ------- TEST_TYPE VALID wyq@ORCL>select table_name,tablespace_name from user_tables where table_name = 'TEST'; TABLE_NAME TABLESPACE_NAME ------------------------------ ------------------------------ TEST USERS wyq@ORCL>alter table test move tablespace rtable; Table altered. wyq@ORCL>select table_name,tablespace_name from user_tables where table_name = 'TEST'; TABLE_NAME TABLESPACE_NAME ------------------------------ ------------------------------ TEST RTABLE wyq@ORCL>select object_name,status from user_objects where object_name = 'TEST_TYPE'; OBJECT_NAME STATUS ------------------------------ ------- TEST_TYPE VALID wyq@ORCL> wyq@ORCL> [/php] [/B]
本版积分规则 发表回复 回帖后跳转到最后一页