Support Portal
 
Migration from MySql to MS-SQL 2000 or 2005 using DB Configuration
Author : saravanakumar | Created on : Mar 21 2009
OpManager > Maintenance/Upgrade queries?
 
Note: This article is applicable for 7102 build and above.If you are using the build 7102 or earlier,then refer to the article in the link
http://support.opmanager.com/sd/AddSolution.sd?solID=16501

If you were already using MYSQL as the OpManager database and wish to move to MSSQL without losing data, do the following steps:

1. Stop OpManager server and make sure the following processes are not running.
             Apache.exe
            Java.exe
            Mysqld-nt.exe
2. Take a backup of the existing database by running the script OpManager\\bin\\backup\\BackupDB.bat
3. This will create a new folder under OpManager Home directory called "backup" and the back up file will be kept under that folder.
4. The backup file will have the naming convention of "BackUp_MonthDate_year_time_BuildNumber.Zip" eg. "BackUp_MAR9_2009_11_20_36_8000.Zip"
5. Select Start --> Programs --> ManageEngine OpManager --> DB Manager --> DB Configuration.
6. A DB Configuration window pops up. Select MSSQL option.
7. Configure the following information:
 DB Host : The name or the IP address of the machine where MSSQL is installed.
 Port: The port number in which OpManager must connect with the database. Default is 1433.
 User Name and Password: The user name and password with which OpManager needs to connect to the database.It would be better if you could provide the "sa" user name and password. As OpManager uses metadata, to create the tables.

These steps will automatically create the database in the MS-SQL.However the tables will be created only after successful start of OpManager. So Start OpManager with MS-SQL as the back end and shut it down after the successful startup.

8. Run the script \\OpManager\\bin\\backup\\RestoreDB.bat, Please note that, this file takes the file name as argument. So you have to run this command from the command prompt like the example below

OpManager\\bin\\backup>RestoreDB.bat "C:\Program Files\AdventNet\ME\OpManager\backup\BackUp_MAR9_2009_11_20_36_8000.Zip"

This will restore the data in MS-SQL database.

Start OpManager.OpManager is now using MSSQL as its database.
Login
Username
Password
 
Search Solutions
  
Customer Help Desk by SupportCenter Plus