It is not mandatory to configure the Derby database during installation. If you later
find that you need to generate reports and do not have access to a production database, you can
enable the Derby database.
Procedure
Note: If you did not set the DERBY_DB_HOST environment variable during installation, you must
manually start the Derby service (derbydb) to successfully connect to the
database. The Derby database is not supported for production clusters.
-
From the cluster management console, go to .
-
For the derbydb service, click .
-
In the section, replace the ego:ResourceRequirement value with the
name of the host on which you intend to run the Derby database. For example, if you intend to run
the Derby database on hostM, replace the value as
select('hostM')
.
-
Click Save and confirm the changes.
-
Click to start the derbydb service.
-
Launch the database configuration tool.
- In Linux® (X-Windows only), run
dbconfig.sh.
- In Windows, run
dbconfig.
-
In the User ID and Password fields, use
app
as both the user name and password for the Derby database.
-
In the Cipher field, choose your cipher, for
example, AES256.
-
Verify that the correct JDBC driver is selected for the Derby database. It should be org.apache.derby.jdbc.ClientDriver
-
Verify the database URL. It should resemble the following format:
jdbc:derby://hostname:1527/app
Note: If the default port is not used, ensure that the port number configured in
derby_service.xml matches the port number configured in
datasource.xml.
-
Click Test to test the database connection using the specified host and port.
-
Click OK to save configuration changes to datasource.xml and exit the utility.
-
If the derbydb service is not in the DEFINED state, stop the service. In the command console, run:
egosh service stop derbydb
-
Restart EGO on the primary host to activate the changes to derby_service.xml:
egosh ego restart primary_host_name
-
Restart the plc and purger services to activate the
changes to datasource.xml:
egosh service stop plc purger
egosh service start plc purger