Author Topic: DOC_NAME INDEX  (Read 3238 times)

markrussell

  • Guest
DOC_NAME INDEX
« on: April 15, 2011, 05:16:14 AM »
Trying to add new indexes to existing Application Groups we encountered an issue where CMOD tries to create a database index with the same name as an existing index.

When you create fields in an Application group and designate them as "index", CMOD creates indexes in the underlying RDBMS.
The name of the indexes is table segment name suffixed with a number denoting the order in which the field was added to the App Group (starting with zero).

For example, if we have an App Group with underlying table name ABC and 4 fields, the first and last of which are "index", CMOD creates 2 indexes in the database ABC_0 and ABC_3.

The problem is that every table without exception also has an index created for the DOC_NAME field, which is an internal field used by CMOD to physically locate the document. The name that CMOD gives to this index depends on the total number of fields in your App Group - so, in this example CMOD creates an index called ABC_4 on the DOC_NAME field.

If you later try to add a new field to the same App Group and designate it as "index", CMOD fails after several minutes with the message "Unable to update the Application Group. A return code of Exists was returned from the Server".

And sure enough, in the System Log there are multiple (depending on how many arssockd are running) DB error messages containing ".. name is already used by an existing object".

After monitoring these DOC_NAME indexes for some weeks we have found that they are never used.

What can we do? DROP the unnecessary index on DOC_NAME?

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: DOC_NAME INDEX
« Reply #1 on: April 15, 2011, 05:38:05 AM »
Hello Mark,

Maybe this is due to the lack of DBA rights (that you were talking in another post...) ?

So check again by giving the DBA rights, and if you have exactly the same behaviour, please open a PMR at IBM, because this is not normal.

Cheers,
Alessandro
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

markrussell

  • Guest
Re: DOC_NAME INDEX
« Reply #2 on: April 15, 2011, 07:20:27 AM »
Hello Alex.

Received same error with DBA rights, so will open PMR.

But what about this index on the DOC_NAME field? Is that normal?
We won't be able to add new fields unless we drop this index or rename it.

Thanks,
Mark.

sandeepveldi

  • Guest
Re: DOC_NAME INDEX
« Reply #3 on: April 15, 2011, 09:53:40 AM »
I think this issue poped up when we first tried to upgrade for v8.3 to v8.4. Don't remember the fix. Hope IBM PMR will get a  resolution for this. Keep us posted on the solution for this issue.

Regards,
SV