日期:2014-05-16  浏览次数:20790 次

在執行alter table move tablespace之後,table的存檔數度變得超慢的?
大家好:
因為覺得單一tablespace的檔案太大了,
所以,就新建立一個tablespace,
然後執行alter table move tablespace,
將一些table搬到新的tablespace上,
可是,搬完之後發現有些table的存檔數度變得超慢的?
為甚麼?有人可以解答嗎?
謝謝!
------解决方案--------------------
可能是索引无效了,
 select index_name, status from user_indexes where table_name='T';
把T换成你的表名,看看status是不是有变成UNUSABLE的。
如果有,
alter index pk_t rebuild;
把pk_t换成你的index name,重建一下索引。
------解决方案--------------------
感謝你的回覆,
我move tablespace之後就有rebuild index了,
請問跟quota 或是 RBS會有關係嗎?
因為我也有重建RBS,
謝謝!
------解决方案--------------------
应该和RBS没关系吧。
------解决方案--------------------
我執行
select index_name, status from user_indexes where table_name='T';
出現:沒有任何資料列被選取
請問我要以system或是user登入?
謝謝!
------解决方案--------------------
user登入,还有把'T'换成你的表名。
------解决方案--------------------
我查了,全部都是VALID,
應該都正常,
請教,還是因為我create new tablespace,
必須要給user甚麼權限的設定,
因為我的應用程式都是用某個user的名稱登入的。
謝謝!

------解决方案--------------------
该回复于2012-10-10 10:51:11被版主删除