-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
5.2, 5.3
-
None
Symptoms
When upgrading, the task fails with a message like:
2013-10-15 08:05:27,164 ERROR [main] [atlassian.confluence.upgrade.UpgradeLauncherServletContextListener] contextInitialized Upgrade failed, application will not start: Upgrade task com.atlassian.confluence.upgrade.upgradetask.LowerCaseUsernameReferencesUpgradeTask@90580fa failed during the SCHEMA_UPGRADE phase due to: Table 'NOTIFICATIONS' has more than one primary key com.atlassian.confluence.upgrade.UpgradeException: Upgrade task com.atlassian.confluence.upgrade.upgradetask.LowerCaseUsernameReferencesUpgradeTask@90580fa failed during the SCHEMA_UPGRADE phase due to: Table 'NOTIFICATIONS' has more than one primary key
This is due to the Hibernate bug https://hibernate.atlassian.net/browse/HHH-2208, which is fixed, but Confluence still uses an old version including this bug. Ordinarily, the workaround of creating a schema-local "all_objects" view has prevented issues which have come up, however in this case, that workaround does not work.
Steps to Reproduce
- Install Confluence into multiple schemas in the same Oracle database at a version below 5.2
- Attempt to upgrade one of them to 5.2
Workaround
Follow the steps in the KB article Upgrade Failed with "Table '<Table Name>' has more than one primary key" Error Message
- duplicates
-
CONFSERVER-3613 Problem installing on Oracle schema when other schemas in the same database have one or more tables sharing the same name as any of Confluence's tables
-
- Closed
-
- is related to
-
CONFSERVER-3613 Problem installing on Oracle schema when other schemas in the same database have one or more tables sharing the same name as any of Confluence's tables
-
- Closed
-
- mentioned in
-
Page No Confluence page found with the given URL.
-
Page Loading...
-
Page No Confluence page found with the given URL.
-
Page Loading...
-
Page Loading...
[CONFSERVER-31333] Upgrade to 5.2 or above on Oracle fails with "Table 'X' has more than one primary key" if another schema exists containing a shared table name
Remote Link | Original: This issue links to "Wiki Page (Atlassian Documentation)" [ 51539 ] |
Workflow | Original: JAC Bug Workflow v3 [ 2889992 ] | New: CONFSERVER Bug Workflow v4 [ 2982354 ] |
Workflow | Original: JAC Bug Workflow v2 [ 2803446 ] | New: JAC Bug Workflow v3 [ 2889992 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JAC Bug Workflow [ 2736307 ] | New: JAC Bug Workflow v2 [ 2803446 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389149 ] | New: JAC Bug Workflow [ 2736307 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 2266462 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2389149 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2210792 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 2266462 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197667 ] | New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2210792 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v5 [ 1922268 ] | New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2197667 ] |
Workflow | Original: Confluence Workflow - Public Facing - Restricted v3 [ 1725639 ] | New: Confluence Workflow - Public Facing - Restricted v5 [ 1922268 ] |