Installing Cygwin on a Windows-based Db2 server for CLP job execution

The IBM® Db2® Intelligence Center allows you to create and schedule jobs efficiently. However, if you plan to run CLP jobs using a Windows Db2 connection, additional steps are necessary. These steps include installing and configuring Cygwin on the same Windows machine where the monitored database is located. This setup is crucial for the proper functioning of your Db2 connection and job execution. To ensure your Cygwin environment works seamlessly with the IBM Db2 Intelligence Center, follow the provided installation instructions carefully.

About this task

These instructions are based on Cygwin 1.5.25-15. Over time, changes occur that might make these instructions inaccurate. For the most current instructions for installing Cygwin, see the official documentation for Cygwin.
Note: You can use the IBM Db2 Intelligence Center to create and schedule jobs. However, if you are using a Windows Db2 connection to run CLP jobs, additional steps are required to make it work. These steps involve installing and configuring Cygwin on the same Windows machine where the monitored database is running.

Procedure

  1. Download the executable file to install Cygwin from Cygwin project.
  2. Use an Administrator CLP or select Run As Administrator from Windows Explorer to run the setup-x86_64.exe command. Click Next to continue the installation.
  3. Choose Install from Internet as the source to download the required packages for the installation.
  4. Specify C:\wincing as the directory to install Cygwin, and click Next.
    Warning: Choosing a different installation directory can result in the Cygwin environment not working correctly with IBM Db2 Intelligence Center.
  5. Enter the Local Package Directory and click Next to continue.
  6. Select Direct Connection to download packages.
  7. Select an ftp download site and click Next.
  8. Select the packages to include in your installation. The Base package is included by default. In addition to the Base package, select the following packages to include:
    1. Expand the Admin category, and click the icon for cygrunsrv.
    2. Expand the Net category, and click the icon for openssh and openssl.
    3. Click Next.

    The package files are downloaded and stored in the specified directory. When the download is complete, Cygwin is installed. Continue with the installation.

What to do next

After Cygwin is installed, you must configure CYGWIN sshd to run as an automatic service, and then you must start the service.