How to switch back to the Derby Metadata Database
You can translate the document:Introduction
When using an external database to store the Denodo metadata, there is always a potential that the database instance goes down, communication fails and other issues. When this happens, the Denodo instance is relying on this metadata database that is not responding at that point in time.
In order to get around this, one option would be to reconfigure the Embedded Derby Metadata Database. However, since the existing metadata is not accessible, we will not be able to use the Design Studio or the Solution Manager Administration Tool to configure this graphically. We can however use Denodo’s metadata scripts to revert the metadata database back to the Derby database.
The instructions explained in this document apply to both the metadata database of a Denodo Solution Manager and the metadata database of a Denodo VDP server.
Creating the Properties File
First thing you will need to do is create a properties file with the appropriate properties for the Derby database. Luckily for us, the Derby database is the default configuration:
- Navigate to the below location:
- <DENODO_HOME>/conf
- Create a new properties file:
- metadata_database_configuration.properties
- Open the new properties file and add the following configuration property:
- com.denodo.vdb.catalog.storage.plugin=derby
Configuring the Derby Metadata Database
Finally, we need to execute the Denodo script to update the metadata database back to Derby:
- First, stop all the Denodo Platform processes.
- Open a command terminal and navigate to the below location:
- <DENODO_HOME>/bin
- Execute the below command:
|
regenerateMetadata.(sh/bat) -f ../conf/metadata_database_configuration.properties |
- Once the command executes successfully, restart the Denodo services and tools.
Once the Denodo services are up and running, log into the Design Studio or the Solution Manager Administration Tool and you will see that your metadata database has been configured to use the Embedded Derby database. Once your external metadata database is back up and running, you can reconfigure the VDP metadata database graphically.
Note that any preexisting metadata that already exists in the Derby database will be kept and the metadata tables will not be dropped or recreated so you will need to import a backup of your metadata once you switch from one metadata database to another.
References
Using a Script to Enable this Feature
The information provided in the Denodo Knowledge Base is intended to assist our users in advanced uses of Denodo. Please note that the results from the application of processes and configurations detailed in these documents may vary depending on your specific environment. Use them at your own discretion.
For an official guide of supported features, please refer to the User Manuals. For questions on critical systems or complex environments we recommend you to contact your Denodo Customer Success Manager.
