EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB38257: Error when upgrading Oracle 11g metadata to 9.x on a Windows 2008 machine: ORA-02260: table can have only one primary key


Community Admin

• Strategy


This KB addresses an error seen when upgrading an Oracle 11g metadata to 9.x on Windows 2008.

SYMPTOM:
When upgrading an Oracle 11g metadata to version 9.x on a Windows 2008 machine via the Configuration Wizard, the following error may occur:

ka04W000000OeKkQAK_0EM440000002HQR.jpeg

 


Sample Code/Error
Failed to execute: 'ALTER TABLE DSSMDSYSPROP ADD PRIMARY KEY (NAME)'
Execute Query failed.
Error type: Odbc error. Odbc operation attempted: SQLExecDirect. ORA-02260: table can have only one primary key

 
This will be accompanied by an entry of the following nature in the DSSErrors log file on the Intelligence Server machine:

2011-11-14 10:50:33.379+02:00 Execute Query failed.

Error type: Odbc error. Odbc operation attempted: SQLExecDirect. ORA-02260: table can have only one primary key Connection String: DSN=Migros_Metadata;UID=MICRO;HOST=10.34.2.187;PORT=1521;SID=MICRO;. SQL Statement: ALTER TABLE DSSMDSYSPROP ADD PRIMARY KEY (NAME).

The error persists when attempting the upgrade from multiple Windows 2008 machines and after creating a new ODBC DSN connection via the Strategy Connectivity Wizard.
 
CAUSE:
This issue is thrown due to the presence of more than one primary key on one of the Oracle tables.
 
ACTION:
It is possible to resolve this issue by running the following SQL from the DB Query Tool to drop the primary key manually from the related table before running the upgrade process:

ALTER TABLE DSSMDSYSPROP
    DROP PRIMARY KEY CASCADE;

 

Metadata Modification:
WARNING:
Manually editing values in the Strategy Metadata incorrectly may cause serious, project-wide problems that may make your project unusable. Since these are user-initiated changes, they are not covered by any Strategy warranty. Users are strongly encouraged to backup Metadata prior to any alteration.
 
Third Party Software Installation:
WARNING:
The third-party product(s) discussed in this technical note is manufactured by vendors independent of Strategy. Strategy makes no warranty, express, implied or otherwise, regarding this product, including its performance or reliability.


Comment

0 comments

Details

Knowledge Article

Published:

June 12, 2017

Last Updated:

June 12, 2017