Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to rebuilt partioned table index

702714Sep 3 2009 — edited Sep 3 2009
Hi all,
I am supporting a 10g production server .
I have to rebuilt my indexe.
But when i am running this query

DECLARE
CURSOR c_index IS
SELECT index_name from user_indexes where index_name not like '%$%';

v_text VARCHAR2(4000);
BEGIN

FOR r_index IN c_index
LOOP
v_text := 'ALTER INDEX '||r_index.index_name ||' REBUILD ';
EXECUTE IMMEDIATE v_text;
END LOOP;
END;
/

i am getting a error that partioned index can't be rebuilt as a whole...
kindly help me out as i am new to this.
Thanks in advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2009
Added on Sep 3 2009
3 comments
891 views