Cannot create more than one clustered index on table ‘xdbtrickle’

Product:
Cognos Controller 10.3.x
Microsoft Windows 2012 server

Problem:
After restore of a backup of a database, when you run the upgrade script in DBCONV you get a error message:

Running DB step: 882 ….
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot create more than one clustered index on table ‘xdbtrickle’. Drop the existing clustered index ‘idx_xdbtrickle_vat1’ before creating another

Solution:

Ask the DBA to drop the two index. And then run the upgrade again.

After the DBA have restored a backup of the Cognos Controller database, you need to go to the controller server, and inside Cognos Controller Configuration add the new database (if it not already exist). Fill in the fields as appropriate. Data source is the SQL host (server).

Click on the green arrow to go to the database conversion.

Click on CONNECT and then on UPGRADE.

When done, and no errors, click on CLOSE.

Then you should in Controller Configuration go to Report Server tab and click on the CHECK icon, to update the data sources in Cognos BI.

The sql commands that give issues are:

IF NOT EXISTS (SELECT * FROM sysindexes WHERE id = object_id(‘XDBTRICKLE’) AND name = ‘NC_XDBTRICKLE_SEQUENCNO’)
CREATE CLUSTERED INDEX NC_XDBTRICKLE_SEQUENCNO ON xdbtrickle (sequenceno ASC);

IF NOT EXISTS (SELECT * FROM sysindexes WHERE id = object_id(‘XDBTEXTTRICKLE’) AND name = ‘NC_XDBTEXTTRICKLE_SEQUENCNO’)
CREATE CLUSTERED INDEX NC_XDBTEXTTRICKLE_SEQUENCNO ON xdbtexttrickle (sequenceno ASC);

 

More information:

https://www.ibm.com/support/pages/how-backup-and-restore-db2-databases-use-cognos-controller

https://www.ibm.com/support/pages/how-move-controller-databases-new-database-server-basic-instructions

https://www.ibm.com/support/pages/ibm-cognos-controller-104x-fix-list

https://www.ibm.com/support/pages/cognos-controller-builds-ccr-name-and-database-version

Currently Supported Versions of Controller (incl. Interim Fixes):

Updater Kit Build CCR Version DB Version Comment
10.4.2000.1063 10.4.2000.292 10.4.2 IF7 1010 Generally available (FixCentral)
10.4.2000.1018 10.4.2000.270 10.4.2 IF3 1010
10.4.2000.1013 10.4.2000.267 10.4.2 IF2 1010
10.4.2000.1002 10.4.2000.259 10.4.2 IF1GA 1010 Generally available (FixCentral)
10.4.2000.185 10.4.2000.252 10.4.2 RTM 1010 Available via Passport Adv. (full install)

See more at IBM web site.