Ensure that all the tasks listed in Preparing to Move the Data are completed.
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 Oracle.
Choose the purging option for data before database migration.
Enter the IP address or host name of the Oracle database server.
Enter the port used by the Oracle database server.
Enter the fully qualified net service name for the Oracle database.
You can choose to create a new user schema or use an existing user schema.
If you choose to create a new schema, continue with Step 9.
If you choose to use an existing user schema, skip to Step 10.
Enter the database server administrator's user name and password.
Enter the database schema name when prompted for the database user name.
Enter the database schema password when prompted for the database user's password.
Perform the steps from Step 5 to Step 11 for ZENworks audit database. The database migration starts.
When the database migration is complete, you can check the novell-zenworks-configure.log file. The log file is located in %ZENWORKS_HOME%\log\ on Windows and in /var/opt/novell/log/zenworks/ on Linux.
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:
At the server prompt, execute the following command:
sc delete SQLANYs_ZENDatastore
sc delete SQLANYs_ZENAuditDatastore
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:
At the console prompt execute the following command:
/etc/init.d/sybase-asa stop
/etc/init.d/sybase-audit-asa stop
Rename sybase-asa to sybase-asa1 by executing the following command:
mv sybase-asa sybase-asa1
mv sybase-audit-asa sybase-audit-asa1
Edit the/etc/opt/novell/zenworks/monitor.conf to remove sybase-asa and sybase-audit-asa from the line services=novell-zenserver novell-zenload sybase-asa sybase-audit-asa
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 Oracle database, because it will still be pointing to the Sybase 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 file has been created. The file is located in the %ZENWORKS_HOME%\bin directory on Windows, and in the /opt/ novell/zenworks/bin directory on Linux.
Run the database migration utility. For more information, see Step 2 in the Migrating the Data from the Internal Sybase Database to an Oracle Database.
Enter the target database type as Oracle.
Enter the IP address or host name of the Oracle database server.
You must specify the IP address or host name of the Oracle 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.
Enter the port used by the Oracle database server.
Enter the fully qualified net service name for the Oracle database.
Choose to use an existing schema.
Enter the schema name when prompted for the database user name specified before stopping the database migration.
Enter the database schema password when prompted for the database user's password specified before stopping the database migration.
Choose to resume the database migration.
The database migration starts.
After the database is successfully migrated, continue with Post-Migration Tasks.