====== Installation ======
===== Prerequisities =====
- Check [[en:mervis-db:requirements]]
- Get the latest Mervis DB installation archive.
- Get a license number. Something like: RCWDBXXXXXXXXXXX. Ask [[en:help:energocentrum-plus|]].
==== Windows ====
{{ :en:mervis-db:hwinfo2.png?nolink |}}
- Download {{ :en:mervis-db:hwinfo2.zip |}}
- Run ''ESG.Licenses.HwInfo.exe'' and create ''.hwdesc'' file using a valid license number.
- Get [[en:mervis-db:100-license|activation ".licact" file]] from: https://licenses.rcware.eu/new/
- Unpack Mervis DB files into some folder on your drive.
- Copy the ''.licact'' file next to the ''ESG.Db.Server.Host.exe''.
- To install Mervis DB as a Windows service run from [[https://www.google.com/search?&q=Elevated+Command+Prompt|Elevated Command Prompt]] something like: ESG.Db.Server.Host.exe --installService --configFile ESG.Db.Server.Host.exe.config --instanceName MyMervisDbInstance
- More instances of Mervis DB can be installed (the --instanceName parameter). This is subject to the licensing policy.
- For more options see: ESG.Db.Server.Host.exe --help
- Change configuration in ''ESG.Db.Server.Host.exe.config'' as you like. The minimum is to set appropriately:
* PermanentFilesPath
* LogsPath
* InfrastructureDataPath
* Name and Password for administration
- Log into the administration (default http://localhost:11112/)
* Name and password can be set in ''ESG.Db.Server.Host.exe.config''
- Create at least one User that can access the database
- Configure Firewall to allow access to Administration, Monitoring and data API as needed.
Don't allow public access to Administration, Monitoring or data API!
==== Storing data from Mervis PLC ====
You can save data directly from Mervis PLC to Mervis DB. You need to install special ASP.NET interface called: [[en:mervis-db:installation:spdba|SPDBA]]