change postgreSQL database to oracle database in confluence

Does anyone has experience for changing postgreSQL to oracle database for confluence?

I exported .xml file in confluence with postgreSQL database and imported to the same version confluence but with empty database (oracle), the import failed with error:

Caused by: java.sql.SQLException: ORA-12899: value too large for column "CONFUSER"."ATTACHMENTS"."ATTACHMENT_COMMENT" (actual: 259, maximum: 255)

I checked the data in postgreSQL database, the comment do have 255 characters, but why it became 259 characters in Oracle?

I ran the following SQL and returned is UTF8:

SELECT pg_encoding_to_char(encoding) FROM pg_database WHERE datname = 'confluence';

The new oracle database is using UTF8 encoding.

Anyone can help? Thanks

2 answers

1 accepted

This widget could not be displayed.

It is possible that certain special characters in the comment take up more than 1 value, causing the total value to go over the maximum of 255. Please have a look at this page to see if it contains any useful information for you.

This widget could not be displayed.

Thanks, Mick. The cause of the problem is more than that, some of the special characters have to be changed OR the value of the comment fields need to be shorten.

Hope this information help others.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 13 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

67 views 0 8
Read article

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