Skip to main content

I/O error 3/7 when building XA switch module on UNIX/Linux

  • October 17, 2014
  • 0 replies
  • 0 views

 

Problem:

The documentation explains that Enterprise Developer includes the source code for XA switch modules in the directory:

$COBDIR/src/enterpriseserver/xa

To build the XA switch modules, a script named "build" is provided in that directory.  But when running the "build" script, for example:

sh build db2

An error is received:

I-O error : 3/7 ESDB2XA.int  while building XA switch module

Resolution:

I/O error 3/7 indicates permission problems.  If you are trying to run the build script inside $COBDIR/src/enterpriseserver/xa you probably don't have permission to create files in that directory.   The files there are owned by root and the directory is protected from modification (the idea is to preserve the files in the original condition in which they were installed).

The documentation says:

1) Copy all files from the $COBDIR/src/enterpriseserver/xa directory to any location where you have WRITE permission.

2) Change to the directory containing the copied files.

3) Execute the build script.

So the solution is to use a directory of your own to build the XA switch modules.

Later, the modules must be found at runtime, so include this directory on the LD_LIBRARY_PATH environment variable at runtime (or on AIX, the LIBPATH environment variable).

Additional information:  In UNIX environments, the build script uses the current effective bitmode (either 32 or 64) to determine how to build the switch modules, so be sure "cobmode" is set the right way before building.  Use the "cobmode" command to determine the current bitmode.  Also, before running the build script, ensure that your database environment variables are set up correctly.

[Original support incident 2684950]


#MFDS
#EnterpriseDeveloper

0 replies

Be the first to reply!