Skip to main content
Version: 1.0.x.x LTS

Installation of nevisDetect Persistency

You install the component nevisDetect Persistency by means of the software package nevisdetect-persistency-<version>.noarch.rpm, according to the description in the chapter General installation.

After the installation of nevisDetect Persistency, it is possible to manually create and maintain the database schema, e.g., with Flyway, an open-source database migration tool. See the sample command below:

root@nevisrdf-1:/var/opt/rpms# nevisdetect-persistency flyway info
Flyway 4.1.2 by Boxfuse

Database: jdbc:oracle:thin:@oravml11.zh.adnovum.ch:41010:DCHNEV01 (Oracle 11.2)

+---------+-------------------------+---------------------+---------+
| Version | Description | Installed on | State |
+---------+-------------------------+---------------------+---------+
| 1 | Initial Schema | 2018-04-24 10:10:44 | Success |
| 2 | Audit Tables | 2018-04-24 10:10:45 | Success |
| 3 | Audit Cleanup | 2018-04-24 10:10:45 | Success |
| 4 | Action Plugin | 2018-07-10 12:46:42 | Success |
| 5 | Training Data Storage | 2018-08-08 20:03:09 | Success |
| 6 | Policy Matched | 2018-08-16 08:58:38 | Success |
| 7 | FeatureCorrelator Batch | 2018-08-28 16:12:02 | Success |
| 8 | Normalization Model | 2018-10-09 15:51:35 | Success |
| 9 | UnauthenticatedRequests | 2019-01-07 15:53:03 | Success |
| 10 | RenamingNevisDetect | 2019-03-06 17:18:15 | Success |
+---------+-------------------------+---------------------+---------+

The database connection configured in /var/opt/nevisdetect/persistency/conf/persistency.properties is used, but it is also possible to configure the parameters with the command line. Flyway supports the following commands:

NameDescription
migrateMigrates the database.
cleanDrops all objects in the configured schemas.
infoPrints the details and status information about all the migrations.
validateValidates the applied migrations against the ones available on the classpath.
baselineBaselines an existing database, excluding all migrations up to and including the baseline version.
repairRepairs the schema history table.

Supported databases

nevisDetect supports the following databases:

  • Oracle
  • MariaDB

To load the data types for the Flyway script, perform the following steps:

  1. Determine the database vendor from the JDBC URL (it should contain either the string jdbc:oracle or jdbc:mysql).
  2. Depending on the database vendor, load the data types for the Flyway script either from the flyway_oracle.properties file or the flyway_mariadb.properties file.

If you use MariaDB, you need to set the attribute lower_case_table_names to 1 in the MySQL settings (my.cnf).