Database Migration after Upgrading (Oracle) Manually

Database migration was introduced in ToolsNet 8.3. When upgrading from a lower version than ToolsNet 8.3 consider the following:

To finalize the migration it is required to run migration scripts after the upgrade using Oracle SQL Developer or similar.

The changes affect the database and change how the application stores traces, units, job results, program parameters and result parameters.

After an upgrade, the migration files are found in the following specified folders. Install the scripts using Oracle SQL Developer in the following order.

Migration using script
  1. Go to C:\ProgramData\Atlas Copco\ToolsNetDatabase\Database scripts\Oracle on the ToolsNet server.

  2. Start Oracle SQL Developer.

  3. Open the folder MigrateToCommonGraph.

  4. Drag the following files in to Oracle SQL Developer.

    • 70_MigrateToCommonGraph.sql.

    • 71_MigrateToCommonGraph_ManageFKandIX.sql.

  5. In Oracle SQL Developer, use the search and replace function to change the database name.

  6. Run the sql. script using the play button.

    Install the scripts in the correct order.

  7. Open the folder MigrateToGraphExtraInformation.

    Only required if the database contains PF6-series data.

  8. Drag the following files in to Oracle SQL Developer.

    • 76_MigrateToGraphExtraInformation.sql.

    • 72_MigrateToResultExtraInformation.sql .

    • 78_MigrateProgramSetProgramNumber.sql.

  9. In Oracle SQL Developer, use the search and replace function to change the database name.

  10. Run the sql. script using the play button.

    Install the scripts in the correct order.

  11. Open the folder MigrateToResultToJobResult.

  12. Drag the following files in to Oracle SQL Developer.

    • 73_MigrateToResultToJobResult.sql.

    • 74_MigrateToResultToJobResult_ManageFKandIX.sql.

  13. In Oracle SQL Developer, use the search and replace function to change the database name.

  14. Run the sql. script using the play button.