|
Increased the CustomClobType in BodyContent.hbm.xml field length to 2^31 - 1 to allow storing of BLOBs up to the size of 2 Gb.
<property name="body" type="com.atlassian.confluence.core.persistence.hibernate.CustomClobType" update="true" insert="true" Increasing the BLOBs size to larger than 1GB broke Confluence during database setup on DB2. DB2 does not allow transaction logging of BLOBs larger than 1GB.
2006-08-14 16:02:22,494 ERROR [hibernate.tool.hbm2ddl.SchemaExport] execute Unsuccessful: create table BODYCONTENT (BODYCONTENTID bigint not null, BODY clob(2147483647), CONTENTID bigint, primary key (BODYCONTENTID)) Hi Kim,
Thanks for pointing out this limitation. I just confirmed this after re-reading the relevant chapter in the db2 manual. Also have added this information to the docs: http://confluence.atlassian.com/display/DOC/Known+Issues+For+All+Databases Regards, |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CONNECT TO CONFLUEN USER "db2inst1" USING ;
CALL SYSPROC.ALTOBJ ( 'APPLY_CONTINUE_ON_ERROR', 'CREATE TABLE DB2INST1.BODYCONTENT ( BODYCONTENTID BIGINT NOT NULL , BODY CLOB (500000 ) LOGGED NOT COMPACT , CONTENTID BIGINT ) IN USERSPACE1 ', 1, ? );
;
CONNECT RESET;