This section lists the steps that the system executes
when you start the Java Core Server for the first time after updating to version
Foundation EP7. If there is an error in any of the migration actions – migrating
clients, roles, groups, users, ACLs – the system stops the migration and the server
start fails. Make sure you have completed all the steps in the “Prepare” and “Update”
topics.When you start the Java Core Server for the first time, Saperion completes the
following procedures.
- Creates the new XS_* tables, if they do not yet exist. For more information, see the “Data Model” topic at the end of this document.
- Creates necessary TRIGGER, FUNCTIONS und STORED PROCEDURES.
- Deletes existing views that ensure compatibility with 32-bit applications (XSUSR, XSGRP, XSACC, XSACL, XSMND).
- Renames existing backup tables XS_USR_BACKUP, XSGRP_BACKUP, XSACC_BACKUP, XSACL_BACKUP and XSMND_BACKUP to XSUSR, XSGRP, XSACC, XSACL and XSMND respectively.
- Creates the migration tables XS_MIGRATED and XS_MIGRATION_CHECK, if these do not exist.
- Checks whether the migration was already executed successfully by reviewing the XS_MIGRATED table. If the migration was successful, the system creates the compatibility views.
- Checks the data consistency. Logs inconsistencies in the XS_MIGRATION_CHECK table. The system empties the table before the check, and stops the check when inconsistencies are found.
- If necessary, extends the XSACL table with the new ID and SYSINDEXSTATE fields, and initializes the columns with a consecutive number beginning with 1, and the SYSINDEXSTATE with 0 (not deleted).
-
Migrates clients
- Creates a default client with ID 0, which is marked as deleted.
- Copies all clients from XSMND to XS_TENANTS
- Writes the number of converted clients in the XS_MIGRATED table (from the XS_TENANTS table).
- Creates a backup, and renames XSMND to XSMND_BACKUP.
-
Migrates roles (previously called profiles)
- Creates a default role with ID 0, and marks it as deleted.
- Copies all roles from XSACC to XS_ROLES.
- Writes the number of converted roles in the XS_MIGRATED table (from the XS_ROLES table)
- Creates a backup and rename XSACC to XSACC_BACKUP.
-
Migrates groups
- Creates a default group with ID 0, and marks it as deleted.
- Copies all groups from XSGRP to XS_GROUPS.
- Copies references to other groups to the XS_GROUP_GROUP table. The system ignores references to groups that no longer exist.
- Writes the number of converted groups in the XS_MIGRATED table (from the XS_GROUPS table).Copies references to other groups to the XS_GROUP_GROUP table. The system ignores references to groups that no longer exist.
- Writes the number of converted group references in the XS_MIGRATED table (from the GROUP_GROUP table).
- Creates a backup and renames XSGRP to XSGRP_BACKUP.
-
Migrates users
- Creates a default group with ID 0, and marks it as deleted.
- Copies all users from XSUSR to XS_USERS.
- Copies the group references in the XS_USER_GROUP table. The system ignores references to groups that no longer exist.
- Writes the number of converted users in the XS_MIGRATED table (from the XS_USERS table).
- Writes the number of converted group references in the XS_MIGRATED table (from the XS_USER_GROUP table).
- Creates a backup and renames XSUSR to XSUSR_BACKUP.
-
Migrates ACLs
- Creates a default ACL with ID 0, and marks it as deleted.
- Copies all ACLs from XSACL to XS_ACLS. Does not migrate ACLs with invalid clients.
- Copies the group permissions in the XS_ACL_GROUP and XS_ACL_GROUP_RIGHTS tables. The system ignores references to groups that no longer exist.
- Writes the number of converted ACLs in the XS_MIGRATED table (from the XS_ACLS table).
- Creates a backup and renames XSACL to XSACL_BACKUP.
- Updates the admin role with the privilege to administer clients. This privilege is new and is evaluated by the ECM Services.
- Creates the compatibility views XSUSER, XSGRP, XSACC, XSACL and XSMND.