1. The DB2DIR environment variable must define the DB2® software installation path.
  2. The PATH environment variable must define the access path to database client programs.
  3. On UNIX™, LD_LIBRARY_PATH (or equivalent) must hold the path to $DB2DIR/lib.
  4. The DB2 client library 'DB2DIR/lib/libdb2*' must be available.
  5. The remote server node and the remote database must be declared locally with the CATALOG db2 command.
  6. Make sure the database client locale is properly defined (DB2CODEPAGE)
  7. You can make a connection test with the IBM® db2 command line tool.