Home > Oracle > Oracle – when was last time my index was rebuilt?

Oracle – when was last time my index was rebuilt?

Taking a look at the LAST_DDL_TIME you can find the last time.

select OBJECT_NAME, timestamp, LAST_DDL_TIME from dba_objects where OBJECT_NAME=’IX_CARDBLOCKS’
SQL> /

OBJECT_NAME
——————————————————————————–
TIMESTAMP LAST_DDL_
——————- ———
IX_CARDBLOCKS
2011-06-29:21:22:53 29-JUN-11

SQL> alter index rebuild ix_cardblocks;

Run the first command again and you should see a change in time on LAST_DDL_TIME to current.

Categories: Oracle
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: