3 Installing Eloquence on Windows
In order to run the eloqdb6 service it is required to adapt your system configuration. This involves the following steps:
NOTE: Manual registration of the eloqdb6 service with the Windows Service Control Manager is usually not required since the installation program performs a default registration. Unless you are interested in the registration and unregistration details you can skip this section.
In order to manually register the eloqdb6 server with the Windows Service Control Manager you must execute eloqdb6.exe with the -install argument:
eloqdb 8102/tcp # Eloquence A.06.xx data base serverIn rare cases it might be necessary to modify this standard configuration, for example if the port number does not match the one configured on other systems. Please refer to the previous section Modify the standard configuration of Eloquence service names for details.
The default configuration is not optimized for performance and does not handle a large number of concurrent connections. Therefore, you should adjust the following parameters in the eloqdb6.cfg configuration file to your requirements:
NOTE: If the configuration of a running eloqdb6 service is changed, the service must be restarted to activate the new configuration.
Volume files should be created on NTFS file systems only. If you use a FAT file system, be aware that it limits the maximum file size to 4 gigabytes, while NTFS allows it to grow until its hard size limit of 128 gigabytes.
Additional data volumes can be created at any time to extend the available database storage. Additional transaction log volumes can be added as well, but it is unlikely that these will ever be used because the purpose of a log volume is to hold temporary data only.
The maximum number of volume files in a database environment is 255 which is equivalent to a maximum database storage size of 31.75 terabytes (254 data volumes and 1 log volume).
It is recommended to choose a dedicated directory to hold all volume files belonging to a particular database environment. The following example assumes that the initial volumes are created in the C:\data\db directory:
Both files are created with their initial minimum size which is 2.5 megabytes. They will grow on demand until they reach their maximum size. The minimum and maximum size and the amount by which the files shall grow can be configured either at creation time or afterwards with the dbvolchange utility.
To view the available command line options, use:
dbvolcreate -help dbvolextend -help dbvolchange -helpThe dbvolcreate and dbvolextend utilities automatically maintain the list of volume files in the [Volumes] section of the eloqdb6.cfg configuration file.
NOTE: The following instructions refer to the default "eloqdb6" service name. If multiple instances of the eloqdb6 service are installed they are separately listed and also separately configured in the Windows Service Control Manager.
NOTE: Multiple eloqdb6 instances are covered in detail in the section Setting up multiple eloqdb6 instances below.
Windows Server 2003 or XP:
Possible arguments are:
-c name = configuration file -d flags = log flags -l name = log file name -s name = service name (tcp/ip transport)
Option | Description | Equiv.* |
---|---|---|
-c name | Specifies the configuration file name | |
-d flags | Specifies the server log flags. | LogFlags |
-l name | Specifies the server log file. | LogFile |
-s name | The service name (as defined in SERVICES) or the port number where the server should listen for requests. The default value is eloqdb. | Service |
*Equivalent configuration file directive.
For example, if you wish to specify a different configuration file (required for additional eloqdb6 instances), you could enter the following into the Startup Parameters field:
-save -c "C:\Program Files\Eloquence\etc\eloqdb6.instance.2.cfg"which causes this eloqdb6 server instance to use the eloqdb6.instance.2.cfg configuration file in the C:\Program Files\Eloquence\etc directory. Note that the argument must be put into quotes because the configuration path contains a space.
The leading -save argument makes this command line persistent so that the same arguments are used each time this eloqdb6 server instance is started. If you do not specify the -save argument this command line will be used only once.
If you want to make sure that the command line is empty and that any persistent command line is deleted, just specify -save without any additional arguments.
NOTE: After having entered a command line, use the Start button from within the same dialog, otherwise your command line will not come into effect. In particular, if you use the OK button, the dialog will close without having started the service, i.e. your command line never being applied.
At this point, everything is configured and the eloqdb6 server can be started:
If you did not specify a log file, the eloqdb6 server will write log messages to the Windows Event Log. In case the eloqdb6 does not start, the Event Log will probably contain an error message pointing out the cause of the problem. You should also periodically check the Event Log in order to get aware of possible configuration problems:
Windows Server 2003 or XP:
Command syntax:
net start SERVICE net stop SERVICEwhere SERVICE is either eloqdb6 or the name of an additional instance, for example:
net start eloqdb6 net stop eloqdb6
To access the eloqdb6 server, you provide an URL like this:
http://server:port/where server is the host name or IP address of the system running the eloqdb6 server and port is the port number used for ServiceHttp in the eloqdb6.cfg file.
NOTE: Each eloqdb6 instance on the same system requires an unique HTTP port number.
The following steps are required to setup an additional eloqdb6 server instance:
The additional service name is specified after the -install or -remove arguments, respectively (see the previous section Registering the eloqdb6 server with the Windows operating system).
For example, to register an additional instance named "eloqdb6.instance.2", open a Command Prompt window and execute the command:
eloqdb6 -install eloqdb6.instance.2
If the service name contains spaces it must be enclosed in quotes. However, to retain compatibility with legacy Windows NT systems, any space is converted into an underscore character, so we do not recommend to use spaces in a service name.
NOTE: During product update, the installation program does not retain additional eloqdb6 instances. After an update has been applied, only the standard "eloqdb6" service name is present. Any additional instances must be re-created manually.
C:
cd "\Program Files\Eloquence\etc"
copy eloqdb6.cfg.sam eloqdb6.instance.2.cfg
Next, the new configuration file must be edited. Besides the parameters mentioned in the previous section Configuring the eloqdb6 server, the following parameters must be adjusted:
* Section [Server], parameter Service
Each instance requires an unique TCP service name or port number. You can either configure a dedicated service name in your local SERVICES file (please refer to the previous section Configuring the eloqdb6 TCP service for details) or simply enter an unique port number.
* Section [Server], parameter ServiceHttp
If you use the eloqdb6 HTTP status display, you are required to configure an unique TCP service name or port number for each eloqdb6 instance.
* Section [Server], parameter LogFile (optional)
By default, all eloqdb6 log messages are written to the Windows Application Event Log. Each log message is labeled with the name of the originating eloqdb6 instance. However, it might be more convenient to configure a separate log file for each instance. This log file could be located within the dedicated, instance-specific directory (see below), for example:
LogFile = C:\data\db\instance.2\eloqdb6.log
When started, this eloqdb6 instance will create this file and write all log messages to it. This is a plain text file which can be viewed with any text editor.
NOTE: If you copied the configuration of an existing instance, it is required that you manually delete all volume references at the end of the file below the [Volumes] section header.
* Create the instance-specific directory. We recommend to create a dedicated directory for each instance where the instance-specific files are located:
C:
cd \data\db
mkdir instance.2
cd instance.2
* Create the initial data volume (the following command must be entered as a single line):
dbvolcreate
-c "C:\Program Files\Eloquence\etc\eloqdb6.instance.2.cfg"
data.vol
* Create the initial transaction log volume (the following command must be entered as a single line):
dbvolextend
-c "C:\Program Files\Eloquence\etc\eloqdb6.instance.2.cfg"
-t log log.vol
In this example, the argument to the -c command line option refers to the instance-specific configuration file located in the current directory. Note that it must be put into quotes because the configuration path contains a space.
* Open the Windows Control Panel
* Select Performance and Maintenance
* Select Administrative Tools
* Open the Services applet
Windows 2000:
* Open the Windows Control Panel
* Select Administrative Tools
* Open the Services applet
Windows NT:
* Open the Windows Control Panel
* Open the Services applet
Locate the new eloqdb6 instance in the list and select it with the mouse. On Windows Server 2003/XP/2000, open the Properties dialog either from the menu or using the context menu (right mouse button). On Windows NT, click the Startup... button to open the Startup Options dialog.
First, choose the Startup Type you want to configure for this instance (Manual or Automatic).
Next, in the Startup Parameter input field at the bottom of the dialog, refer to the instance-specific configuration file, using the absolute path (which must be put into quotes because it contains a space):
-save -c "C:\Program Files\Eloquence\etc\eloqdb6.instance.2.cfg"
Finally, click the Start button. Do not use the OK button to leave the dialog. The command line is only applied if you immediately start the service. If you click OK, the dialog will close without having started the service, i.e. your command line never being applied.
The -save option specifies that this command line is to be saved into the Windows registry. Therefore, it is not necessary to enter this command line ever again. It remains associated with this eloqdb6 instance until a different command line is registered or the instance is removed.
The new instance should now be up and running. You can start and stop it using the Windows Services applet. You can also control it from the command line using the net start and net stop system commands:
net start eloqdb6.instance.2 net stop eloqdb6.instance.2To access a database in an additional instance, specify the instance-specific service name or port number in addition to the database name. Those utilities which do not expect a database name instead provide the -h command line option. Also, the EQ_DBSERVER environment variable can be set to specify the default instance.
The following examples assume that an additional instance was configured to use the port number 8201. They illustrate different ways to address the same instance:
schema -h :8201 db.schema.txt dbcreate :8201/db set EQ_DBSERVER=:8201 schema db.schema.txt dbcreate db