Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0000207
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagermajorsometimes2008-05-08 10:062009-03-18 11:01
ReportermarvintmView Statuspublic 
Assigned Tomarvintm 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseOracleJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0000207: Error while trying to change a table's primary key

DescriptionSometimes, when trying to change a table's primary key through a update.database task, the process fails, with a message similar to the following one:

[alterdatabase] SQL Command failed with: ORA-00955: name is already used by an existing object
[alterdatabase]
[alterdatabase] -- END
[alterdatabase] ALTER TABLE C_INVOICETAX
[alterdatabase] ADD CONSTRAINT C_INVOICETAX_KEY PRIMARY KEY (C_INVOICETAX_ID)

This problem is caused by an index associated to the previous primary key. This index has not been deleted, and prevents DBSourcemanager from creating the new primary key.

Steps To ReproduceSometimes this error can be reproduced by importing a previous database, changing the primary key of a table xml file (changing the columns, but not the primary key name), and doing an update.database.
Tagsdbsm_migrate
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0000070)
marvintm (developer)
2008-05-08 11:43

Now in Oracle when dropping the Primary Key the index associated with it will be dropped as well, to prevent problems when trying to create a new Primary Key.

- Issue History
Date Modified Username Field Change
2008-05-08 10:06 marvintm New Issue
2008-05-08 10:06 marvintm Assigned To => marvintm
2008-05-08 10:10 marvintm Status new => @40@
2008-05-08 10:10 marvintm Status @40@ => scheduled
2008-05-08 11:43 marvintm Status scheduled => resolved
2008-05-08 11:43 marvintm Resolution open => fixed
2008-05-08 11:43 marvintm Note Added: 0000070
2008-11-26 14:12 psarobe Status resolved => closed
2008-12-18 12:38 jpabloae Sticky Issue No => Yes
2008-12-18 12:39 jpabloae Sticky Issue Yes => No
2008-12-18 12:39 jpabloae Tag Attached: dbsm_migrate
2008-12-18 12:41 jpabloae Project @4@ => Openbravo ERP
2008-12-18 12:41 jpabloae Category => Y. DBSourceManager
2009-03-18 11:01 anonymous sf_bug_id 0 => 2691234


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker