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 DBMSwhere 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 db2Note the following points:
- To run 32-bit applications, create both a 32-bit and a 64-bit switch library for each database management system that you are using. To run 64-bit applications, we need create only a 64-bit switch library. For DB2, the name of each switch library is jdbcdb2 and, for Oracle, the name of each switch library is jdbcora. The makefiles ensure that 32-bit and 64-bit switch libraries are stored in different WebSphere MQ directories. A 32-bit switch library is stored in the /var/mqm/exits directory, and a 64-bit switch library is stored in the /var/mqm/exits64 directory.
- Because we can install Oracle anywhere on a system, the makefiles use the ORACLE_HOME environment variable to locate where Oracle is installed.
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:
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.
- For a DB2 database
SwitchFile=jdbcdb2- For an Oracle database
SwitchFile=jdbcoraIf 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_