Here's a script you can use:
Code:
select 'alter index ' || index_name || ' rebuild;'
from dba_indexes
where 1=2