Solved

Drop and re-create a domain index

Posted on 2011-03-11
3
1,745 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

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 77

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

717 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