23.2 Migrating the Data from the External Sybase Database to an External PostgreSQL Database

23.2.1 Migrating the Data from the External Sybase Database to an External PostgreSQL Database

  1. Ensure that all the tasks listed in Preparing to Move the Data are completed.

  2. Run the database migration utility.

    • On the Windows Primary Server: At the command prompt, go to %ZENworks_home%\bin\, then enter the novell-zenworks-configure.bat -c DBMigrateConfigureAction command.

    • On the Linux Primary Server: At the console prompt, go to /opt/novell/zenworks/bin, then enter the novell-zenworks-configure -c DBMigrateConfigureAction command

  3. Select the target database type as postgresql.

  4. (Optional) Choose the purging option for data before database migration.

  5. Specify the IP address of the PostgreSQL database server.

  6. Specify the port used by the PostgreSQL database server.

  7. (Optional) Specify the named instance for the PostgreSQL Server engine.

  8. Choose to create a new database or use an existing database that resides on the PostgreSQL server.

    If you choose to create a new database, continue with Step 9.

    If you choose to use an existing database, skip to Step 10.

  9. (Conditional) If you choose to create a new database in Step 8, perform the following tasks:

    1. Specify the ZENworks database server administrator user name.

    2. Specify the ZENworks database server administrator password.

    3. Specify the database user name.

    4. Specify the database user password.

  10. Specify the name of the database that resides on the PostgreSQL server to which you want to migrate the data. If you choose to create a new database in Step 8, the database is created on the PostgreSQL server with the name that you specify in this step.

  11. (Conditional) If you choose to create a new database in Step 8, specify the complete path where you want the database to be created.

  12. Perform the steps from Step 5 to Step 11 for the ZENworks Audit database. The database migration starts.

  13. When the database migration is complete, you can verify the novell-zenworks-configure.log file to see if the migration was successful. The log file is located in %ZENWORKS_HOME%\log\ on the Windows Primary Server and in /var/opt/novell/log/zenworks/ on the Linux Primary Server.

  14. After the database is successfully migrated:

    1. Perform post-migration tasks. See Post-Migration Tasks.

    2. Re-configure the ZENworks Reporting Server to point to the PostgreSQL database, because it will still be pointing to the Sybase database.

23.2.2 Resuming Database Migration

If the migration of the database is stopped for some reason, the ZENworks migration utility allows you to resume the migration if the dbmigration.xml file has been created. This file is located in the %ZENWOKS_HOME%\bin directory on the Windows Primary Server, and in the /opt/ novell/zenworks/bin directory on the Linux Primary Server.

  1. Run the database migration utility. For more information, see Step 2 in the Section 23.0, Migrating the Data from an External Sybase Database to an External PostgreSQL Database.

  2. Specify the target database type as sql database server.

  3. Specify the IP address of the PostgreSQL database server.

    You must specify the IP address of the PostgreSQL database server used while migrating the database. For example, if you had specified the IP address of the database server while migrating the database, you should not specify the host name of the database server.

  4. (Optional) Specify the named instance of the PostgreSQL Server engine.

  5. Choose to use an existing database.

  6. Specify the credentials of the database user depending on the authentication mode selected.

  7. Specify the database name.

  8. Resume the database migration.

  9. After the database is successfully migrated, continue with Post-Migration Tasks.