Application Building Guide
Once you have the answers to the questions above, you may need to make
changes to your environment. Read the conditions listed below.
If one of the conditions applies to your situation, make the necessary
changes.
Condition 1: If a Version 6.1 application loads a shared
library out of the AIX default shared library path
/usr/lib/libdb2.a, and
- If there is a symbolic link from /usr/lib/libdb2.a to
/usr/lpp/db2_06_01/lib/libdb2.a, and the database server is
DB2 Universal Database Version 7.1 for AIX, do one of the
following:
- Change the symbolic link to point to:
/usr/lpp/db2_07_01/lib/libdb2.a
DB2 for UNIX Quick Beginnings has information about setting links between libraries. As root, you
can change links using the "db2ln" command as follows:
/usr/lpp/db2_07_01/cfg/db2ln
- Set the LIBPATH environment variable to point to
/usr/lpp/db2_07_01/lib or INSTHOME/sqllib/lib,
where INSTHOME is the home directory of the Version 7.1 DB2 instance
owner.
- Configure a TCP/IP connection from the application (client) instance to
the server instance. Refer to the Installation and
Configuration Supplement for information about configuring TCP/IP.
- If there is a symbolic link from /usr/lib/libdb2.a to
/usr/lpp/db2_07_01/lib/libdb2.a, and the database
server is DB2 Version 6.1, configure a TCP/IP connection from the
application (client) instance to the server instance. Refer to the Installation and Configuration Supplement for information about configuring TCP/IP.
Condition 2: If a Version 6.1 application loads a shared
library out of the $HOME path of a DB2 Version 6.1 instance owner
($HOME/sqllib/lib/libdb2.a), and the database server is DB2
Universal Database Version 7.1 for AIX, do one of the following:
- Migrate the application instance to the same version as the database
server instance.
- Set the LIBPATH environment variable to point to
/usr/lpp/db2_07_01/lib or INSTHOME/sqllib/lib,
where INSTHOME is the home directory of the Version 7.1
instance owner.
- Configure a TCP/IP connection from the application (client) instance to
the server instance. Refer to the Installation and
Configuration Supplement for information about configuring TCP/IP.
Condition 3: If a Version 6.1 application loads a shared
library out of the DB2 Version 6.1 install path
(/usr/lpp/db2_06_01/lib/libdb2.a), and the database
server is DB2 Universal Database Version 7.1 for AIX, do one of the
following:
- Set the LIBPATH environment variable to point to
/usr/lpp/db2_07_01/lib or INSTHOME/sqllib/lib,
where INSTHOME is the home directory of the database instance
owner.
- Configure a TCP/IP connection from the application (client) instance to
the server instance. Refer to the Installation and
Configuration Supplement for information about configuring TCP/IP.
Condition 4: If a Version 6.1 application loads a shared
library out of the DB2 Universal Database Version 7.1 for AIX install
path (/usr/lpp/db2_07_01/lib/libdb2.a), and the
database server is DB2 Version 6.1, configure a TCP/IP connection from
the application (client) instance to the server instance. Refer to the
Installation and Configuration Supplement for information about configuring TCP/IP.
[ Top of Page | Previous Page | Next Page ]