Solved

Drop and re-create a domain index

Posted on 2011-03-11
3
1,528 Views
Last Modified: 2013-12-19
I have a domain index in a 10g database that seems to be corrupt. I have triued to rebuild the index using the following syntax

Alter index customer_tix rebuild;

but get the error

"Cannot issue DDL on a domain index marked as LOADING"

I beileve that I need to drop and recreate the index but am nervous as this is in a production Db that is part of an ERP.

How can I work out what the exact syntax is that originally created the index? I have contacted the ERP vendor and they are no help.

Many thanks,

Jon
0
Comment
Question by:DarchVader
  • 2
3 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35108402
Since you are going to recreate it I assume you have the syntax.

What type of index is this?  
0
 
LVL 2

Accepted Solution

by:
swadhinray earned 125 total points
ID: 35124554
@DarchVader, Either you need to wait until the operation get completed or you need to drop the index forcefully and recreate it.

for droping an index you can use the below syntax:

'DROP INDEX <index name> FORCE' to drop the index

Note you also need to check the permission or privileges granted on the user i.e. used to drop the index or rebuild the index.  
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35127888
I would not just drop a domain index on 10g.  There is a known bug that can really get you (I know, I 'discovered' it).

I had an Oracle Text Index and a Function Based Index (FBI) in the same database.  Both of these are considered 'Domain' indexes  When I dropped the FBI to rebuild it, it corrupted the Text index.

If took Oracle a long time to figure out this one and it was a simple low level table update to get it working again.

It's not a public bug but here's the number:
5402174: DROP COLUMN COULD CHANGE FUNCTIONAL DOMAIN INDEX COLUMN NAME
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now