Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Localtabgroup
Localtab
titleMySQL

To create the database tables, connect to the database that you created earlier and run the following scripts.

  1. To create tables in the BPEL database (BPS_DS), use the below script:

    Info

     You may have to enter the password for each command when prompted.

    Code Block
    languagepowershell
    mysql -u root -p -DBPS_DS < '<EI_HOME>/wso2/business-process/dbscripts/bps/bpel/...... ';
  2. Restart the server.

    Info

    You can create database tables automatically when starting the product for the first time by using the -Dsetup parameter as follows:

    • For Windows: <EI_HOME>/wso2/broker/bin/wso2server.bat -Dsetup

    • For Linux: <EI_HOME>/wso2/broker/bin/wso2server.sh -Dsetup

Localtab
titleMS SQL

To create the database tables, connect to the database that you created earlier and run the following scripts.

  1. To create tables in the B database (wso2mb), use the below script:

    Code Block
    <EI_HOME>/wso2/broker/dbscripts/mb-store/mssql-mb.sql
  2. Restart the server.

    Info

    You can create database tables automatically when starting the product for the first time by using the -Dsetup parameter as follows:

    • For Windows: <EI_HOME>/wso2/broker/bin/wso2server.bat -Dsetup

    • For Linux: <EI_HOME>/wso2/broker/bin/wso2server.sh -Dsetup

Localtab
titleOracle

To create the database tables, connect to the database that you created earlier and run the following scripts in SQL*Plus:

  1. To create tables in the broker-specific database, use the below script:

    Code Block
    languagepowershell
    SQL> @$<EI_HOME>/wso2/broker/dbscripts/mb-store/oracle-mb.sql
  2. Restart the server.

    Info

    You can create database tables automatically when starting the product for the first time by using the -Dsetup parameter as follows:

    • For Windows: <EI_HOME>/wso2/broker/bin/wso2server.bat -Dsetup

    • For Linux: <EI_HOME>/wso2/broker/bin/wso2server.sh -Dsetup

Creating database tables in the BPMN database 

Localtabgroup
Localtab
titleMySQL

To create the database tables, connect to the database that you created earlier and run the following scripts.

  1. To create tables in the BPEL database (BPS_DS), use the below script:

    Info

     You may have to enter the password for each command when prompted.

    Code Block
    languagepowershell
    mysql -u root -p -DBPS_DS < '<EI_HOME>/wso2/business-process/dbscripts/bps/bpel/...... ';
  2. Restart the server.

    Info

    You can create database tables automatically when starting the product for the first time by using the -Dsetup parameter as follows:

    • For Windows: <EI_HOME>/wso2/broker/bin/wso2server.bat -Dsetup

    • For Linux: <EI_HOME>/wso2/broker/bin/wso2server.sh -Dsetup

Localtab
titleMS SQL

To create the database tables, connect to the database that you created earlier and run the following scripts.

  1. To create tables in the B database (wso2mb), use the below script:

    Code Block
    <EI_HOME>/wso2/broker/dbscripts/mb-store/mssql-mb.sql
  2. Restart the server.

    Info

    You can create database tables automatically when starting the product for the first time by using the -Dsetup parameter as follows:

    • For Windows: <EI_HOME>/wso2/broker/bin/wso2server.bat -Dsetup

    • For Linux: <EI_HOME>/wso2/broker/bin/wso2server.sh -Dsetup

Localtab
titleOracle

To create the database tables, connect to the database that you created earlier and run the following scripts in SQL*Plus:

  1. To create tables in the broker-specific database, use the below script:

    Code Block
    languagepowershell
    SQL> @$<EI_HOME>/wso2/broker/dbscripts/mb-store/oracle-mb.sql
  2. Restart the server.

    Info

    You can create database tables automatically when starting the product for the first time by using the -Dsetup parameter as follows:

    • For Windows: <EI_HOME>/wso2/broker/bin/wso2server.bat -Dsetup

    • For Linux: <EI_HOME>/wso2/broker/bin/wso2server.sh -Dsetup

Excerpt
hiddentrue

Note to writers: Add this content at the end of the page if any of the additional databases is relevant to your product.

Changing the identity/storage/product-specific databases

>The topics above show how to change the WSO2_CARBON_DB, which is used to store registry and user manager information. If you changed the product-specific database that comes by default or set up a separate database for identity or storage related data, the instructions are the same. In summary:

  1. For the identity databaseAdd it to the <PRODUCT_HOME>/repository/conf/datasources/<check the correct path and add file name (something like master-datasources.xml)>
    For the storage databaseAdd it to the <PRODUCT_HOME>/repository/conf/datasources/<check the correct path and add file name (something like master-datasources.xml)
    For the product-specific databaseAdd it to the <PRODUCT_HOME>/repository/conf/<check the correct path and add file name (something like api-manager.xml)
  2. Create the database tables using the following scripts:

    For the identity databaseUse <PRODUCT_HOME>/dbscripts/identity/<check the correct path and add file name (something like mysql.sql)>
    For the storage databaseUse  <PRODUCT_HOME>/dbscripts/storage/<check the correct path and add file name (something like /mysql/resoucre.sql)>
    For the product-specific databaseUse  <PRODUCT_HOME>/dbscripts/<check the correct path and add file name (something like /apimgt/mysql.sql)> 
  3. Update the following configurations, with the defined datasource name of the corresponding database configuration you added to the <PRODUCT_HOME>/repository/conf/datasources/master-datasources.xml file.

    • If you are setting up a separate database to store identity related data, update the following configurations in the <PRODUCT_HOME>/repository/conf/identity.xml file.

      Code Block
      languagexml
      <JDBCPersistenceManager>
      	<DataSource>
      		<!-- Include a data source name (jndiConfigName) from the set of datasources defined in master-datasources.xml -->
      		<Name>jdbc/WSO2CarbonDB</Name>
      	</DataSource>
      </JDBCPersistenceManager>

      Note to writers: For step 3, add content on the XML files which include references on any of the additional databases and require edits that are relevant to your product similar to the given example.