<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Tables missing for component(s) engine, history, identity in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157275#M111471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm new to activiti and need some help…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to integrate activiti into an existing oracle 11 database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created a new schema "activiti" with all the tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must log on to the databse with a specific user e.g. "SUPPORT_USER".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use this configuration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;setDatabaseSchemaUpdate(false);&lt;BR /&gt;setDatabaseSchema("ACTIVITI");&lt;BR /&gt;setDatabaseTablePrefix("ACTIVITI.");&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ActivitiException: Activiti database problem: Tables missing for component(s) engine, history, identity&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is in DbSqlSession:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- dbSchemaCheckVersion calls "getDbVersion()" to get the version:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select VALUE_ from ACTIVITI.ACT_GE_PROPERTY where NAME_ = 'schema.version'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; "5.14" is returned&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- then "isEngineTablePresent()" is called which calles "isTablePresent()"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This code is executed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tables = databaseMetaData.getTables(this.connectionMetadataDefaultCatalog, schema, tableName, JDBC_METADATA_TABLE_TYPES);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case this looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tables = databaseMetaData.getTables(null, "ACTIVITI", "ACTIVITI.ACT_RU_EXECUTION", JDBC_METADATA_TABLE_TYPES);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-&amp;gt; In Oracle 11 this does not work! The tables are not returned!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It should look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tables = databaseMetaData.getTables(null, "ACTIVITI", "ACT_RU_EXECUTION", JDBC_METADATA_TABLE_TYPES);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The tableName parameter must not include the schema name!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I the table perfix must be set to get the version in "getDbVersion()" but it must not be be set in "getTables(…)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is it necessary to check the DB every time the engine is created?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you implement a flag to configure if the check should be performed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for you help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Dec 2013 11:14:36 GMT</pubDate>
    <dc:creator>rolf</dc:creator>
    <dc:date>2013-12-17T11:14:36Z</dc:date>
    <item>
      <title>Tables missing for component(s) engine, history, identity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157275#M111471</link>
      <description>Hello!I'm new to activiti and need some help…I want to integrate activiti into an existing oracle 11 database.I've created a new schema "activiti" with all the tables.I must log on to the databse with a specific user e.g. "SUPPORT_USER".I use this configuration:setDatabaseSchemaUpdate(false);setData</description>
      <pubDate>Tue, 17 Dec 2013 11:14:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157275#M111471</guid>
      <dc:creator>rolf</dc:creator>
      <dc:date>2013-12-17T11:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tables missing for component(s) engine, history, identity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157276#M111472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you set the flag to "false", the minimal checking will be performed (table exists and right version). To circumvent this (eg. you use a manual process to create/update tables), you can set it to ANY value different from "true", "false", "create", …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg. if you use the setDatabaseSchemaUpdate("none"), nothing will be done. This is offcourse, an undocumented feature, as it's always safer to have it set to false, to ensure engine boots on a correct engine version. Offcourse, if this doensn't work as expected in the targeted database, this is a good workaround.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 08:04:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157276#M111472</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T08:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tables missing for component(s) engine, history, identity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157277#M111473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We check the database after running the update scripts. So we do not need to check each time the engine starts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:14:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157277#M111473</guid>
      <dc:creator>rolf</dc:creator>
      <dc:date>2013-12-18T09:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tables missing for component(s) engine, history, identity</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157278#M111474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, so setting that property is perfectly fine for your usecase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 10:43:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/tables-missing-for-component-s-engine-history-identity/m-p/157278#M111474</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T10:43:55Z</dc:date>
    </item>
  </channel>
</rss>

