Planning to configure the logger mediation database tables for WebSphere Enterprise Service Bus

You can find logger mediation database table specifications for WebSphere® ESB. The specifications contain information about supported database types, script names and their locations, profile creation configuration actions, schema upgrades, and user ID privileges.

The logger mediation database tables are used by the Message Logger mediation primitive in WebSphere ESB. The Message Logger primitive stores message information in the common database. The common database is the default for the WebSphere ESB logger mediation database, but you can use an external database. During the profile augmentation phase, the system creates the ESB_MESSAGE_LOGGER_QUALIFIER variable, which is set to the value of the chosen common database schema qualifier.

The database is created automatically for a stand-alone configuration. You can use Data Definition Language (DDL) files to use additional databases for a stand-alone server configuration or for a network deployment environment.

For a stand-alone configuration that uses a DB2® for z/OS® database, or for a managed node or deployment manager in a network deployment configuration, you must create the WebSphere ESB database and storage groups first. Then you can run the configuration script for IBM® Process Server for z/OS.

Supported database types

The WebSphere ESB logger mediation database can use the following database products:
Table 1. Supported database products
Database Types Considerations
DB2 Express® Used as the default database type for a stand-alone profile.
DB2 Universal Used as the database in network deployment configurations. Optionally, can be used as the database in stand-alone server configurations.
DB2 Data Server Used as the database in network deployment configurations. Optionally, can be used as the database in stand-alone server configurations.

DB2 for z/OS v8
DB2 for z/OS v9

Important: When creating a profile for a server that uses DB2 for z/OS v9, the server must be able to connect to the DB2 database.
Used as the database in network deployment configurations. Optionally, can be used as the database in stand-alone server configurations.
Microsoft SQL Server (Microsoft)  
Oracle You need system database administrator privileges to create the database, tables, and schemas. If you do not have these privileges, you might receive errors when you create or access the tables and schemas.

User ID privileges

The user credentials that you provide in the Profile Management Tool must have the permissions necessary to create table spaces, tables, schemas, indexes, and stored procedures. For the Create new database option, the user ID must have the necessary privileges to create a database. If the user who is running the script has the authority to create tables, the script does not require an authentication ID within the script. For more information, see "Users and schemas for databases" and "Database privileges".

Database Management Service (DBMS) instances

The common database is used for both stand-alone environments and network deployment environments at cell scope. However, you can manually create as many other instances as you require. Each message logger mediation primitive can be configured to use a different data source and therefore a different database.

Configuration actions during profile creation

For the stand-alone profiles and deployment manager profiles, the WebSphere ESB logger profile executes the createTable common database script in the common database. For more information, see "Common database specifications".

Stand-alone profile
In a default stand-alone environment, a DB2 database named EsbLogMedDB is automatically created.
Network deployment environment
The default WebSphere ESB database is not automatically selected during network deployment profile creation. You must select the default database or one of the supported databases.

SQL scripts

The createTable_ESB.sql SQL script is located in the install_root/dbscripts/CommonDB/DBTYPE directory.

The createMessageLoggerResource.jacl and removeMessageLoggerResource.jacl scripts are located in the install_root/bin directory, and can be used to create or delete tables in the requested database type.

JDBC provider

The common database JDBC provider and data source are used by default:

Data source name:
  • WPS DataSource
Data source JNDI name:
  • jdbc/WPSDB

You can configure the Message Logger mediation to use a different data source.

Restrictions

There are no known restrictions.

Tables

The WebSphere ESB logger mediation database uses the MSGLOG table in the common database. However, you can choose not to use the common database, and use an external database instead.

Exported scripts

The database scripts are exported to the install_root/dbscripts/CommonDB/DBTYPE/dbName directory.

Schema upgrade scripts

No schema upgrade involved for MSGLOG table. When you migrate to IBM Business Process Manager V6.1, IBM Business Process Manager continues to use the MessageLogger databases used in prior releases. There is no support to migrate this data into the IBM Business Process Manager common database.

If you want to maintain a single location for message information, you can perform one of the following tasks:
  • Manually move the data from the old database to the new database
  • Continue to use the old database
  • Use the createMessageLoggerResource.jacl script to move the data.