Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-1207

Problem with DB2 create and seed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.1, 2.2.2
    • None
    • Deployment
    • None
    • Windows 7, DB2 9.7

    Description

      I noticed two problems with the DB2 create and seed jobs.

      If I use the db2 database name the tables MEDIATYPE_TO_MIMETYPE and MEDIATYPE_TO_CAPABILITY are shortened to MEDIATYPE_MIMETYPE and MEDIATYPE_CAPABILITY in the create script, which is fine. But if I try to seed them the long table names are used.

      This is no issue if I use db2v8 as the database name.
      Problem here is that two index names are reused in the script, resulting in SQLSTATE 42710 on second execution:

      CREATE INDEX IX_FOLDER_TADATA_1 ON FOLDER_MENU_METADATA (MENU_ID);
      CREATE UNIQUE INDEX UN_FOLDER_TADATA_1 ON FOLDER_MENU_METADATA (MENU_ID, NAME, LOCALE, VALUE);

      As a result the maven create targets are not working.

      If I change this problem manually in the SQL script an initialize my database manually, the seeding works fine.

      On DB2 a page size of min. 8k is required. Is there is documentation or howto? Default on Db2 is 4k.
      This was not the case with JS 2.1.x . I thought I should mention this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            goodgulf Frank Stalherm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: