Before migrating the data to the MS SQL database, do the following:
Ensure that the license state of ZENworks is Active. The product must be installed and running either in the licensed version or the evaluation version.
Ensure that the MS SQL database is installed on a device that does not have ZENworks installed.
(Conditional) If you want to create a new database on MS SQL Server, you must be aware of the database administrator credentials.
(Conditional) If you want to migrate the data to an existing database that resides on the MS SQL server in your network, the newly created user must be assigned the db_owner database role and you must procure the database credentials of the newly created user from the database administrator.
Manually stop the ZENworks services running on all other ZENworks Servers in the Management Zone.
Stop the ZENworks services on all other ZENworks Servers in the Management Zone.
On Windows:
Execute the following command at the server prompt:
novell-zenworks-configure -c Start
Enter the number next to the Stop action.
On Linux:
Execute the following command at the server prompt:
/opt/novell/zenworks/bin/novell-zenworks-configure -c Start
Enter the number next to the Stop action.
(Optional) The status of database migration is logged into the novell-zenworks-configure.log file. By default, only the messages of the type Info and Severe are logged. If you want other message types (such as Finer, Finest, and Warning) to also be logged into the file, do the following in the novell-zenworks-configure.properties file:
Set the value of Logger.logLevel to the appropriate message type.
For example, if you want messages of the type Finest to be logged:
#Logger.logLevel = FINEST
Uncomment the line by removing the “#” as follows:
Logger.logLevel = FINEST
The novell-zenworks-configure.properties file is located in %ZENWORKS_HOME%\conf\ on Windows and in /etc/opt/novell/zenworks/ on Linux.
Ensure that all the tasks listed in Preparing to Move the Data are completed.
Run the novell-zenworks-configure -c migration_new.DBMigration database migration utility.
Select the target database type as sql-server.
Choose the purging option for data before database migration.
Enter the IP address or host name of the MS SQL database server.
Enter the port used by the MS SQL database server.
(Optional) Enter the named instance for the MS SQL Server engine.
Choose to create a new database or use an existing database that resides on the MS SQL 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.
(Conditional) If you choose to create a new database in Step 8, perform the following tasks:
Select the authentication type (Windows or SQL Server) to be used for the database administrator user.
Enter the database server administrator user name.
Enter the database server administrator password.
(Conditional) If you choose Windows authentication in Step 9.a, enter the database administrator’s domain name.
Select the authentication type (Windows or SQL Server) to be used for the database access user.
Enter the database access user name.
Enter the database access user password.
(Conditional) If you choose Windows authentication in Step 10, enter the database access user’s domain name.
Enter the database name of the database that resides on the MS SQL 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 MS SQL server with the name that you specify in this step.
(Conditional) If you choose to create a new database in Step 8, enter the complete path where you want the database to be created.
Perform the steps from Step 5 to Step 15 for ZENworks audit database. The database migration starts.
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.
After the database is successfully migrated, continue with the following steps:
Perform post-migration tasks. See Post-Migration Tasks.
Re-configure the ZENworks Reporting Server to point to the MS SQL database, because it will still be pointing to the Oracle database.
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 and AuditDBMigration.xml files for ZENworks and Audit databases has been created. The 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.
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
Enter the target database type as sql database server.
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.
(Optional) Enter the named instance of the MS SQL Server engine.
Choose to use an existing database.
Enter the credentials of the database user depending on the authentication mode selected.
Enter the database name.
Choose to resume the database migration.
The database migration starts.
After the database is successfully migrated, continue with Post-Migration Tasks.
If there is only one server in the Management Zone, all ZENworks services are automatically started after the data is successfully migrated to an MS SQL Server database.
If there are multiple servers in the Management Zone:
On the device where you ran the migration utility, copy the following files to the appropriate directory on all the servers:
The files are located in the %ZENWORKS_HOME%\conf\datamodel directory on Windows and in the /etc/opt/novell/zenworks/datamodel directory on Linux.
Ensure that you run permissions.sh script located at /opt/novell/zenworks/bin on the Linux server after copying the above listed files.
Start all the ZENworks services on all the ZENworks Servers in the Management Zone.
The ZENworks Server now points to the new database.