RE: Embarasing question ....

  • From: "Kerber, Andrew W." <Andrew.Kerber@xxxxxxx>
  • To: John.Fedock@xxxxxxxxxxxx, norman.dunbar@xxxxxxxxxxxxxxxxxxxxxxxxx, rgravens@xxxxxxxxx, rgoulet@xxxxxxxxxx
  • Date: Wed, 16 May 2007 11:14:33 -0500

Indices will become unusable because of an alter table move.  You have
to rebuild the indices immediately after the move.  I don't know if the
move online will prevent this or not.

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Fedock, John
(KAM.RHQ)
Sent: Wednesday, May 16, 2007 10:51 AM
To: norman.dunbar@xxxxxxxxxxxxxxxxxxxxxxxxx; rgravens@xxxxxxxxx;
rgoulet@xxxxxxxxxx
Cc: oracle-l@xxxxxxxxxxxxx
Subject: RE: Embarasing question ....

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-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Norman Dunbar
Sent: Tuesday, May 15, 2007 9:55 AM
To: rgravens@xxxxxxxxx; rgoulet@xxxxxxxxxx
Cc: oracle-l@xxxxxxxxxxxxx
Subject: RE: Embarasing question ....


Hi Richard,

>> "Richard J. Goulet" <rgoulet@xxxxxxxxxx> 05/14/07 04:38PM >>>
>> AH, another missing piece of the puzzle, we're talking about
function
>> 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
it's
>> 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.


Thanks.


Cheers,
Norman.


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
www.environment-agency.gov.uk
--
//www.freelists.org/webpage/oracle-l



--
//www.freelists.org/webpage/oracle-l



------------------------------------------------------------------------------
NOTICE:  This electronic mail message and any attached files are confidential.  
The information is exclusively for the use of the individual or entity intended 
as the recipient.  If you are not the intended recipient, any use, copying, 
printing, reviewing, retention, disclosure, distribution or forwarding of the 
message or any attached file is not authorized and is strictly prohibited.  If 
you have received this electronic mail message in error, please advise the 
sender by reply electronic mail immediately and permanently delete the original 
transmission, any attachments and any copies of this message from your computer 
system. Thank you.

==============================================================================

--
//www.freelists.org/webpage/oracle-l


Other related posts: