Upgrade from 3.2.1_01 (clustered) to 3.5.16 is failing due to SQLException

We are currently preparing our production upgrade from Confluence 3.2.1 to 4.3 (via 3.5.16) in our system integration stage. During the migration process we also want to change from the clustered to an unclustered version.

Our first migration step from 3.2.1 to 3.5.16 is failing due to an

contextInitialized 1 errors were encountered during upgrade:

2012-11-12 15:20:07,964 ERROR main atlassian.confluence.upgrade.UpgradeLauncherServletContextListener contextInitialized 1: StatementCallback; uncategorized SQL state 72000 ; error code 1440 ; ORA-01440: column to be modified must be empty to decrease precision or scale

; nested exception is java.sql.SQLException: ORA-01440: column to be modified must be empty to decrease precision or scale

I found one work around here (https://confluence.atlassian.com/display/CONFKB/Confluence+Upgrade+Fails+due+to+ORA-01440) which is not applicabel for us, as we have about 50 GB data in the database (13000 users). Is there any other way to get the data migrated?

3 answers

0 vote

Hi Uwe,

I'm not a DBA for Oracle side, but this issue seems to be only correctable by using the workaround number 2 from that Knowledge base article since you come from the version 3.2.

The only problem is the big size of the DB, which will require some space from your server. Of course there could be another possibility to correct this, but then a DBA from Oracle would be more suited to answer this, so I'll leave this question open.

Regards,

Rodrigo

You could try this.

You may have the same issue I had. Bad data in your tables.

Here is one link that helped.

https://answers.atlassian.com/questions/60408/confluence-upgrade-3-2-1_01-to-3-5-problem-with-database?sort=votes

and this one.

https://confluence.atlassian.com/display/CONFKB/Upgrade+or+XML+Backup+Fails+Due+to+Constraint+Violation

For the page above. I didn't use

delete from content_label where contentid = XXXX;

I needed to run

delete from BODYCONTENT where CONTENTID = <id>

and

delete from CONTENT where PREVVER not in (select CONTENTID from CONTENT);

Thanks,

0 vote

Hi Uwe, were you able to upgrade the instance? If so, it would be great if you can share with us the results.

Cheers,

Rodrigo

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

389 views 17 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you