Upgrade to R2027x GA and migrate PLMPort and PLMConnection objects

Starting from the 3DEXPERIENCE platform R2027x GA, a migration program is available for PLMPort and PLMConnection objects governed by OOTB Baseline Behavior policies. The migration is automatic during the R2027x GA upgrade. If your database contains few millions of those objects, the migration can take a long time (half a day or even more). To reduce the migration time, follow this procedure.

Notes:
  • This migration is mandatory and is a prerequisite to allow end users to use the 3DEXPERIENCE platform from R2027x GA.
  • If migration is done, ensure the migration polices are implemented, For more information, see Migrating Policies.

This task shows you how to:

Reduce the PLMPort and PLMConnection objects migration time

You can reduce PLMPort and PLMConnection objects after upgrading the 3DEXPERIENCE platform from R2027x GA

This procedure does not apply for:

  • for new server installation since it contains no data
  • in case the migration is performed in a reasonable time manner during R2027x GA upgrade

  1. Start an MQL command window and type:

    set context user creator password xxx;
    add bus VPLMDataMigration BaselineIOVonPORTCXMigration --- policy VPLMDataMigration_Policy vault vplm VPLMsys/MigrationStatus FINISHED;
    quit;
    

  2. Upgrade the server to R2027x GA and follow usual migration steps (if any).

    Other data will be migrated at that time, as requested by the standard migration procedure.

  3. To migrate the PLMPort and PLMConnection objects,

    • Either start MQL and run:
      set context user creator password xxx;
      exec program PortCxMigration -prepare;
      exec program PortCxMigration -migrate;
      quit;
      
    • Or proceed with a database optimization as described in Add statistics optimization.

  4. To migrate policies, run the following in MQL.

    set context user creator password xxx;
    run <ENOVIA Install Directory>/server/Apps/VPMMultiDiscipline/V6R2026x/mql/TeamEngineering-Security-MD-R424-upgrade-PremiseOnly.mql;
    quit;

Add statistics optimization

In addition to the upgrade and migration, you can optimize your database statistics.

  1. Verify that the database statistics are up to date.

    If not, update the database statistics according to MQL instructions or use the validate level 4 command in MQL.

  2. Start an MQL command window and type:

    - set context user creator password XXX;
    - exec program PortCxMigration -prepare;
    

  3. Optimize statistics on the lxSet tables.
    1. If you use Oracle, delete the statistics of the lxSet tables by running this command in SQLPlus:

      DBMS_STATS.DELETE_TABLE_STATS('ENOVIA','LXSET_XXXXXXXX');

      where 'ENOVIA' is replaced by the actual schema/username and 'LXSET_XXXXXXXX' by the actual set table name.

      This will cause Oracle to use optimizer dynamic sampling when calculating an execution plan.

    2. If you don't use Oracle, update the statistics of all the lxSet tables.

      Follow SQL instructions or run:

      - SQL Server: update statistics LXSET_XXXXXXXX with fullscan;
      

      where 'LXSET_XXXXXXXX' is replaced by the actual set table name.

  4. Run these commands in MQL:

    - set context user creator password XXX;
    - exec program PortCxMigration -migrate;
    

Migrating Policies

You have to execute the below steps if the script TeamEngineering-Security-MD-R424-upgrade-PremiseOnly.mql was not executed when the server got upgraded.

Note: This procedure does not apply for new server installation.

  1. To know if that scripts was already executed, start MQL command window and type the following:

    set context user creator password xxx;
    print rel VPLMrel/PLMConnection/V_Owner select composeeaccess;
    print rel VPLMrel/PLMPort/V_Owner select composeeaccess;
    quit;
    

    The output of these two print commands must be read,checkout,show.
  2. If the output is not read,checkout,show, run the following in MQL command.

    set context user creator password xxx;
    run <ENOVIA Install Directory>/server/Apps/VPMMultiDiscipline/V6R2026x/mql/TeamEngineering-Security-MD-R424-upgrade-PremiseOnly.mql;
    quit;
    Recommendation: If PLMPort and PLMConnection objects migration already took place on a previous level, it is recommended to run the migration again.
    set context user creator password xxx;
    exec program PortCxMigration -prepare;
    exec program PortCxMigration -migrate;
    quit;