Configure on the other platforms

 

For each database management system, WebSphere MQ provides two object files. You must link one object file to create a 32-bit switch library, and link the other object file to create a 64-bit switch library. For DB2, the name of each object file is jdbcdb2.o and, for Oracle, the name of each object file is jdbcora.o.

You must link each object file using the appropriate makefile supplied with WebSphere MQ. A switch library requires other libraries, which might be stored in different locations on different systems. However, a switch library cannot use the library path environment variable to locate these libraries because the switch library is loaded by the queue manager, which runs in a setuid environment. The supplied makefile therefore ensures that a switch library contains the fully qualified path names of these libraries.

To create a switch library, enter a make command with the following format. To create a 32-bit switch library, enter the command in the /java/lib/jdbc directory of your WebSphere MQ installation. To create a 64-bit switch library, enter the command in the /java/lib64/jdbc directory.

make DBMS
where DBMS is the database management system for which you are creating the switch library. The valid values are db2 for DB2 and oracle for Oracle.

Here is an example of a make command:

make db2

Note the following points:

After you have created the switch libraries for DB2, Oracle, or both, declare them to your queue manager. If the queue manager configuration file (qm.ini) already contains XAResourceManger stanzas for DB2 or Oracle databases, replace the SwitchFile entry in each stanza by one of the following:

For a DB2 database

SwitchFile=jdbcdb2

For an Oracle database

SwitchFile=jdbcora
Do not specify the fully qualified path name of either the 32-bit or 64-bit switch library. Specify only the name of the library.

If the queue manager configuration file does not already contain XAResourceManager stanzas for DB2 or Oracle databases, or if you want to add additional XAResourceManager stanzas, see the WebSphere MQ System Administration Guide for information about how to construct an XAResourceManager stanza. However, each SwitchFile entry in a new XAResourceManger stanza must be exactly as described previously for a DB2 or Oracle database. You must also include the entry ThreadOfControl=PROCESS.

After you have updated the queue manager configuration file, and made sure that all appropriate database environment variables have been set, we can restart the queue manager.


uj11290_