PSST0101

February 5, 2008

ORA-01502: Indexes in unusable state

Filed under: PeopleSoft HCM 9.0, Server Administration — digitaleagle @ 5:31 pm

I kept getting error messages like this:

ORA-01502: index 'SYSADM.PS_PSAESTMTDEFN' or partition of such index is in unusable state

I found the answer to the problem here:

ORA-01502 Oracle Index in Unusable State

As Katie mentioned in the comments, the status in 10g is UNUSABLE instead of INVALID.

Here is a quick script to rebuild all of the problem indexes:

declare
begin
   for index_rec in (select owner, index_name
                     from dba_INDEXES
                     where status = 'UNUSABLE' ;)
   loop
      execute immediate 'alter index ' || index_rec.owner || '.' ||
          index_rec.index_name || ' rebuild';
   end loop;
end;

2 Comments »

  1. very good answer, thank you pal,
    this information is very important

    Comment by dario — February 27, 2008 @ 5:27 pm

  2. Thanks. ideas is very good

    Comment by luong truong vu — March 12, 2008 @ 11:44 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.