Prior to successfully starting the application itself, an initial database schema has to be created. Besides the application war file (RegistryCxn.war) a zip package (e.g. RegistryCxn.zip) is provided that contains a script responsible for creating the DB.
Extract the zip file into a selected folder.
Make sure that the location of the registry.properties file containing the DB connectivity information is referred by the environment variable REGISTRYCXN_HOME.
Start ./RegistryCxn bash script or RegistryCxn.bat in the RegistryCxn/bin folder of the extracted content (depending on the OS type). The following are available:
In order to create an initial DB schema or clean an existing one completely, please use the following command line:
Since version 16.09.05-917:
It is possible to clear all the structures from the database while keeping the configuration, users, groups and projects in the system. After running a script, the structure-related database tables will be cleared and the sequences will be reset. This method is designed for testing purposes, it is not recommended execute it on a production database.
In order to use this functionality, please use the database deployment script with the following argument:
To create a group with the Command Line Tool, you have to use the "create-group" command where you have to enter the name, roles and optionally the source of the group (by default it's DB). The syntax is:
(Before version 19.13.0-1907171250 the -source attribute could not be used.)
Source can be either DB, AD, LDAP, SAMLSSO, OAUTH2.
Role names can be found here:https://docs.chemaxon.com/display/docs/Groups+and+roles
(From version 19.13.0-1907171250 you can add multiple roles by entering a list of role names separated by spaces.)
From version 19.13.0-1907171250 it is possible to update the roles defined by a group using the Command Line Tool. To do this, you have to use the "update-group" command where you have to enter the name, roles and optionally the source of the group (by default it's DB). The syntax is:
The arguments have the same meaning as in the "create-group" command.
To create a user with the Command Line Tool, you can use the "create-user" where you have to enter the name, password, and group.
The syntax is: ./RegistryCxn create-user -name <user_name> -password <user_password> -group <group_name>