Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Embarasing question ....

RE: Embarasing question ....

From: Fedock, John \(KAM.RHQ\) <>
Date: Wed, 16 May 2007 11:51:10 -0400
Message-ID: <>

I've seen indexes become "unsable" when an "alter table move ..." is done and the corresponding indexes are not rebuilt.

select *
  from dba_indexes
 where status = 'UNUSABLE' order by table_name

Hope this helps.

John Fedock

-----Original Message-----
[] On Behalf Of Norman Dunbar Sent: Tuesday, May 15, 2007 9:55 AM
To:; Cc:
Subject: RE: Embarasing question ....

Hi Richard,

>> "Richard J. Goulet" <> 05/14/07 04:38PM >>>
>> AH, another missing piece of the puzzle, we're talking about
>> based indexes.

Even worse, these are DOMAIN indexes not Function Based. But they are effectively the same as there's a 'package body' (OBJECT TYPE) doing the 'code'.

>> Well if the function that was used to create the index
>> was rebuilt/modified that would explain everything. Especially if
>> a non oracle provided function.

Now that I could understand as it's nornal behaviour (unless it's a package BODy being compiled) but we had an export problem with these indexes previously, the call to get the metadata for the index failed as the vendor had created it based on the wrong interface - it needed to use the V2 interface with an OCIEnv parameter. We logged this with the vendor and received a script to rebuild these index types and recreate all the indexes.

We have run this and none of the indexes were invalid (nor were the objects!) - it was one of the things we tested against the test system to see if we could identify the root cause. Everything was fine - so I'm still hunting for causes.



Norman Dunbar.
Contract Oracle DBA.
Rivers House, Leeds.

Internal : 7 28 2051
External : 0113 231 2051

Information in this message may be confidential and may be legally privileged. If you have received this message by mistake, please notify the sender immediately, delete it and do not copy it to anyone else.

We have checked this email and its attachments for viruses. But you should still check any attachment before opening it.

We may have to make this message and any reply to it public if asked to under the Freedom of Information Act, Data Protection Act or for litigation. Email messages and attachments sent to or from any Environment Agency address may also be accessed by someone other than the sender or recipient, for business purposes.

If we have sent you information and you wish to use it please read our terms and conditions which you can get by calling us on 08708 506 506. Find out more about the Environment Agency at


Received on Wed May 16 2007 - 10:51:10 CDT

Original text of this message