The following sections describe how to replace the default H2 databases with Embedded H2:
Table of Contents maxLevel 3
Include Page shared:Setting up Embedded H2 (V1) shared:Setting up Embedded H2 (V1)
Changing the identity/storage databases
The topics above show how to change the WSO2_CARBON_DB
, which is used to store registry and user manager information. If you set up a separate database for identity related data, the instructions are the same. In summary:
Add the datasource to the
master-datasources.xml
file.Create the database tables using the following scripts:
For the identity database Use
<PRODUCT_HOME>/dbscripts/identity/h2.sql
For the storage database Use
<PRODUCT_HOME>/dbscripts/storage/h2.sql