To set up the development environment, you require the following:
You should ensure that your compiler or interpreter environment is correctly set up by first building a non-DB2 application. If a problem occurs, refer to the product documentation for your compiler or interpreter.
Note: | The DB2 SDK is not available from the DB2 Satellite Edition CD. You can, however, install the DB2 SDK from a different DB2 Universal Database product CD onto the satellite. |
If you want to try a synchronization, you require an application version and group batches. See Creating and Testing Group Batches for details. The application version must be created using the Satellite Administration Center, and the application version must be recorded on the satellite.
When you install the DB2 SDK on Windows NT, the install program updates the Windows NT configuration registry with the environment variables, INCLUDE, LIB, PATH, DB2PATH, and DB2INSTANCE. The default instance is DB2.
See the Application Building Guide for the Java environment variables that are updated by DB2.
When you install the DB2 SDK on Windows 95 or Windows 98, the install program updates the autoexec.bat file.
You can override these environment variables to set the values for the machine or the currently logged-on user. To override these values, use any of the following:
Note: | Exercise caution when changing these environment variables. Do not change the DB2PATH environment variable. |
These environment variables can be updated for running most programs on Windows 32-bit operating systems. In addition, you must take the following specific steps for running DB2 applications:
set LIB=%DB2PATH%\lib;%LIB%
Note: | If you install DB2 Satellite Edition as the local machine user, you cannot specify CLIENT authentication on the satellite. You can only specify SERVER because the security service is not available on the satellite. |
Notes:
Communications between the DB2 control server and the satellite must be conducted using TCP/IP. To set up communications, perform the following steps on the DB2 control server:
Note: | Under normal conditions, when the DB2 control server instance is created by the install on Windows NT or AIX, the instance is set up for inbound connections using TCP/IP. You may not need to perform these steps. |
db2set DB2COMM=tcpip
Notes:
When you catalog the satellite control database, the database directory on the satellite is updated with the alias of the database that the application needs to access using a CONNECT statement. When the database manager processes requests from the application on the satellite, it uses the database alias to both find and connect to the database.
To access the satellite control database on the DB2 control server, both the DB2 control server and the satellite control database must be cataloged on the satellite. In addition, the satellite must have the correct authentication credentials to access the satellite control database. To set up the catalog and authentication information, you can use the DB2 Synchronizer application in test mode. For more information about running the DB2 Synchronizer application in test mode, see Running a Test Synchronization and Using the DB2 Synchronizer Application.
If you do not use the DB2 Synchronizer application, you can manually catalog the satellite control database and the node on which it resides by issuing the catalog node and catalog database commands on the satellite:
db2 catalog tcpip node nodename remote hostname server service-name db2 catalog database satctldb at node nodename
For more information about the catalog commands, refer to the Command Reference.
You do not need to catalog the satellite control database on the DB2 control server. The database is automatically cataloged on the DB2 control server when the database is created.
If the satellite is remote to the DB2 control server, or is running a different version of DB2, or runs a different operating system, you need to bind the database utilities on the satellite, including the DB2 CLI, to the SATCTLDB database on the DB2 control server.
Binding creates the package that the database manager needs to access the database when an application is executed. Binding can be done explicitly by specifying the bind command against the bind file that is created during precompilation.
The Command Reference provides general information about binding the database utilities. This following example provides specific instructions to bind the database utilities to the SATCTLDB database.
On the satellite:
The command window opens.
db2 connect to satctldb
db2 bind %DB2PATH%\bnd\@db2ubind.lst blocking all sqlerror continue messages bind.msg
Where %DB2PATH% is the path where DB2 is installed.
The development environment is now set up.
[ Top of Page ]