7.2 Migrating the Data from the Internal Sybase Database to an MS SQL Database

7.2.1 Migrating the Data from the Internal Sybase Database to an MS SQL Database

  1. Make sure that all the tasks listed in Section 7.1, 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_installation_path\bin\, then enter the following command:

      novell-zenworks-configure.bat -c DBMigrateConfigureAction

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

      novell-zenworks-configure -c DBMigrateConfigureAction

  3. Select the target database type as sql-server.

  4. Enter the IP address or host name of the MS SQL database server.

  5. Enter the port used by the MS SQL database server.

  6. (Optional) Enter the named instance for the MS SQL Server engine.

  7. Choose to create a new database or use an existing database on the MS SQL server.

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

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

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

    1. Select the authentication type (Windows or SQL Server) to be used for the database administrator user.

    2. Enter the database server administrator username.

    3. Enter the database server administrator password.

    4. (Conditional) If you choose Windows authentication in Step 8.a, enter the database administrator’s domain name.

  9. Select the authentication type (Windows or SQL Server) to be used for the database access user.

  10. Enter the database access username.

  11. Enter the database access user password.

  12. (Conditional) If you choose Windows authentication in Step 9, enter the database access user’s domain name.

  13. Enter the name of the database on the MS SQL server to which you want to migrate the data. If you choose to create a new database in Step 7, the database is created on the MS SQL server with the name that you specify in this step.

  14. (Conditional) If you choose to create a new database in Step 7, enter the complete path where you want the database to be created. You must select the existed folder.

    The database migration starts.

  15. 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.

  16. Remove the Novell ZENworks Embedded Datastore service from the device that has the internal Sybase database installed:

    On the Windows device: Perform the following tasks:

    1. At the server prompt, execute the following command:

      sc delete SQLANYs_ZENDatastore

    2. Edit the%ZENWORKS_HOME%\conf\monitor.conf to remove dbsrv10 from the line highpriority=zenserver,casaserver,dbsrv10.

    On the Linux device: Perform the following tasks:

    1. Stop the Novell ZENworks Embedded Datastore service by executing the following command at the console prompt:

      /etc/init.d/sybase-asa stop

    2. Rename sybase-asa to sybase-asa1 by executing the following command:

      mv sybase-asa sybase-asa1

    3. Edit the /etc/opt/novell/zenworks/monitor.conf to remove sybase-asa from the line services=novell-zenserver novell-zenload sybase-asa.

  17. After the database is successfully migrated, continue with Section 7.3, Post-Migration Tasks.

7.2.2 Resuming the Database Migration

If the migration of the database is stopped for any reason, the ZENworks migration utility allows you to resume the migration if the dbmigration.xml file has been created. The file is located in the %ZENWORKS_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.

    • On the Windows Primary Server: At the command prompt, go to ZENworks_installation_path\bin\, then enter the following command:

      novell-zenworks-configure.bat -c DBMigrateConfigureAction

    • On the Linux Primary Server: At the console prompt, go to /opt/novell/zenworks/bin and enter the following command:

      novell-zenworks-configure -c DBMigrateConfigureAction

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

  3. Enter the IP address or host name of the MS SQL database server.

    You must specify the IP address or host name of the MS SQL database server used while migrating the database. For example, if you had specified the IP address of the database server while migrating the database, then you must specify the same IP address while resuming the database migration. You cannot specify the host name of the database server.

  4. (Optional) Enter the named instance of the MS SQL Server engine.

  5. Choose to use an existing database.

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

  7. Enter the database name.

  8. Choose to resume the database migration.

    The database migration starts.

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