12.4.4 Setting Up Database



Introduction

 

The steps to set up the databases for various support platforms apply to both the Central Server and the Distributed Mediation Server, unless explicitly stated as Central Server or the Distributed Mediation Server. The RDBMS which are supported by Web NMS Distributed Setup are listed below:  

For version information, please refer to Installation Instructions.

Steps to Set up MySQL

 

MySQL is the default database bundled with Web NMS. Web NMS starts and initializes this database before starting the Web NMS modules. Therefore, in Windows and Solaris environments, the MySQL daemon is started when you invoke the Web NMS 'start script' "startnms.bat/sh", present under <Central Home/bin and "startdms.bat/sh" in <DMS Home> respectively.

 

In Linux, you need to start the MySQL daemon as a service before starting the Web NMS Server. To start MySQL daemon as a server in Linux, perform the following steps:

  1. Log in as a super user.

  2. Start MySQL. Syntax: $ /etc/rc.d/init.d/mysql start

If you have changed the default settings and later you want to use MySQL database, make the following changes:

Configuring MySQL Home

 

It is not mandatory to keep the MySQL directory (having the full MySQL installation) under the <Central Home> or <DMS Home> directory. The path for the MySQL files is configurable and hence the MySQL directory can be present anywhere. The path for the MySQL directory can be configured in the setEnv.bat/sh file present in  <Central Home> or <DMS Home> directory respectively.

 

In the setEnv.sh/bat file, specify the full  path of MySQL Home in the MYSQL_HOME parameter. For example,

 

MYSQL_HOME=C:\Central_Server\mysql

 

Configuration in Web NMS Launcher  (For Central Server configuration only)

 

Say the Web NMS Launcher is used to start Web NMS. Then to configure MySQL, do the following:

 

In the <Central Home>/conf/launcher_conf.txt file, specify the MySQL Home, for reinitializing the database, as shown below:  

 

<application>

<property name="AppName" value="Reinitialize Web NMS"/>

...............................

<property value="-Dmysql.home=./mysql" name="AppJavaOption"/>

</application>

 

In the same file, specify the MySQL Home, for starting the Web NMS server, as shown below:  

 

<application>

<property name="AppName" value="Start Web NMS Server"/>

..................................

<property name="AppJavaOption" value="-Dmysql.home=./mysql -Dwebserver.port=9090 -D

..................................

</application>   

 

Steps to Set up Oracle

Note: The TnsListener Service listens for and accepts the incoming connection requests from the client applications.

Note: In Oracle, the number of open cursors supported for a single connection is  set to 50 by default.  It has to be changed to 250 for Web NMS to work with Oracle.

 

Steps to Set up Sybase

set DB_CLASSPATH=<Web NMS Home>/conf/Sybase/jconn2.jar

Reinitializing the Database

To reinitialize the database connected to Central Server, invoke the reinitialize_nms.bat/sh script from the <Central Server>/bin directory or through the Reinitialize Web NMS icon in the Launcher.

To reinitialize the database connected to Distributed Mediation Server, invoke the reinitialize_dms.bat/sh script from the <DMS Home>/bin directory.

 



Copyright © 1996-2004, AdventNet Inc. All Rights Reserved.