+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Create the DB2 database tables manually

Use the SQL scripts that are provided in the MobileFirst Server installation to create the DB2® database tables.


Before you begin

The DB2 database must fulfill the requirement as described in DB2 database and user requirements.

As described in Set up databases, all the four MobileFirst Server components need tables. They can be created in the same schema or in different schemas. However, some constraints apply depending on how the MobileFirst Server applications are deployed to the Java™ application server. They are the similar to the topic about the possible users for DB2 as described in Database users and privileges.

The scripts to create the tables are as follows:

The following procedure creates the tables for all the applications in the same schema (MFPSCM). It assumes that a database and a user are already created. For more information, see DB2 database and user requirements.


Procedure

Run DB2 with the following commands with the user (mfpuser):

If the tables are created by mfpuser, this user has the privileges on the tables automatically and can use them at run time. If we want to restrict the privileges of the runtime user as described in Database users and privileges or a finer control of privileges, refer to the DB2 documentation.

Parent topic: Create the database tables manually