Skip to content
krumboeck edited this page Oct 3, 2013 · 6 revisions

Table of Contents

Note

Our tests has been done without data. Please run a test migration with a copy of your real data. Some of the old schemes contains small errors, which we were not able to fix at the current time. If you want a clean scheme, you need to fix it manually.

System

Linux: Ubuntu Linux Server
Java: Oracle JDK 1.7
Alfresco version: 3.4_d
Alfresco Oracle version: 3.4_a (from Paul Web)
Oracle version: 10.2g

Known Issues

Unable to validate database schema

 java.lang.RuntimeException: Unable to execute export.
        at org.alfresco.util.schemacomp.ExportDb.execute(ExportDb.java:178)
        at org.alfresco.repo.domain.schema.SchemaBootstrap.attemptValidateSchema(SchemaBootstrap.java:1865)
        at org.alfresco.repo.domain.schema.SchemaBootstrap.validateSchema(SchemaBootstrap.java:1812)
        at org.alfresco.repo.domain.schema.SchemaBootstrap.validateSchema(SchemaBootstrap.java:1799)
 ...
 Caused by: java.lang.NullPointerException
        at org.alfresco.util.schemacomp.ExportDb.extractSchema(ExportDb.java:333)
        at org.alfresco.util.schemacomp.ExportDb.execute(ExportDb.java:209)
        at org.alfresco.util.schemacomp.ExportDb.execute(ExportDb.java:174)

This message is shown, when the old schema has a table without primary key. Normally this issue will be fixed automatically. So you can safely ignore this message if it is not shown again.

Context initialization failed

 java.lang.IllegalStateException: Unauthenticated
        at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.hasPermission(PermissionServiceImpl.java:655)
        at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.hasPermission(PermissionServiceImpl.java:632)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Details: https://issues.alfresco.com/jira/browse/ALF-19924

Workaround

Disable the ConfigurationChecker.

Create the file shared/classes/alfresco/extension/alf19924-context.xml with following content:

 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 <beans>
    <bean id="configurationChecker" class="java.util.ArrayList" />
 </beans>

Cleanup database schema after upgrade

Recreate IDX_AVM_VR_UQ and drop unnamed constraint

Find constraint:

 select index_name
 from user_ind_columns
 where table_name = 'AVM_VERSION_ROOTS'
 and column_name = 'VERSION_ID'
 and index_name like 'SYS%';

The result is the name of the constraint we want to drop:

 INDEX_NAME
 ------------------------------
 SYS_C0067296

Now drop the constraint and recreate IDX_AVM_VR_UQ:

 alter table avm_version_roots drop constraint idx_avm_vr_uq;
 alter table avm_version_roots drop constraint SYS_C0067296;
 alter table avm_version_roots
    add constraint idx_avm_vr_uq
    unique (avm_store_id, version_id);