If the directory/file paths specified in this guide do not exist in your WSO2 product, see Directory Structure of WSO2 Products to locate the paths applicable to your product.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

All WSO2 products are shipped with embedded H2 databases for storing data. These default databases are stored in the <PRODUCT_HOME>/repository/database directory.

Default databases

Explained below are the default databases that you will find in the database directory of your product.

  • Carbon database: WSO2CARBON_DB.h2.db is the main Carbon database in a WSO2 product. This stores registry and user management data by default. In addition, if the product uses features of WSO2 Identity Server or WSO2 Enterprise Store (ES), data which are specific to those will by default reside in the embedded Carbon database. However, for production environments, we recommend you to use separate RDBMS databases to store identity-related and storage-related data.
  • Product-specific databases: In addition to the main Carbon database, your product may have other databases for storing product specific data.

Changing the default databases

The embedded H2 databases shipped with your product are suitable for development, testing, and some production environments. For most production environments, we recommend you to use an industry-standard RDBMS such as Oracle, PostgreSQL, MySQL, MS SQL, etc. Further, if you have features of WSO2 Identity Server or WSO2 Enterprise Store (ES) in your product, it is recommended to use separate RDBMSs for each, i.e., identity-related and storage-related data.  

To change the default database settings according to the above recommendation:

  1. Set up new physical databases.
  2. Point the product server to the new databases by updating the relevant configuration files in the product. 
  3. Create the required tables using the scripts provided in the product pack.
    • The scripts for creating tables for user management and registry data will be stored in the <PRODUCT_HOME>/dbscripts folder.
    • If the product uses features of WSO2 Identity Server or WSO2 Enterprise Store (ES), you will find subfolders such as <PRODUCT_HOME>/dbscripts/identity with separate scripts.

See the following sections for instructions:

  • No labels