WSO2 IoTS provides scripts for installing and configuring MySQL, H2, Oracle, MSSQL and PostgreSQL. Each of these databases supports stored procedures, which allow the business logic to be embedded inside the database as an API, providing a powerful mechanism to interact with a relational database. Because these procedures are stored in a precompiled pre-compiled format within the database itself, execution speed is very fast. Client programs can be restricted to access a database via stored procedures only, thereby enforcing fine-grained security, preservation of data integrity, and improved productivity.
The default database of the user manager is the H2 database that comes with WSO2 IoTS. You can configure it to point to databases by other vendors such as MySQL, Oracle, PostgreSQL, and Microsoft SQL Servers, using the scripts provided by WSO2 for installing and configuring relational databases. The scripts in the
<PRODUCT_HOME>/dbscripts/ folder are available for all WSO2 products. They store data related to WSO2 Carbon, on top of which all WSO2 products are built.
The embedded H2 database is suitable for development. However, for most enterprise testing and production environments, we recommend an industry-standard RDBMS such as MySQL etc.
|Carbon Device Management Framework (CDMF)|
|Data Analytics Server|
<IoTS<IOTS_HOME>/dbscripts/cdmfolder contains the database script files related to the Connected Device Management Framework (CDMF).
<IoTS<IOTS_HOME>/dbscripts/cdm/pluginsfolder contains the database scripts for platform specific plugins.
By default, you only see have scripts for the android and windows directories. Once you run the
device-plugins-deployer.xmlas explained under starting the server, you see the arduino, raspberry-pi, virtual_firealarm directories.
the Arduino-specific the Android plugin are located in theExample: Database scripts for
For more information on setting up physical databases, see the following sub-sectionssubsections: