Note:This topic was updated for 9.3.1.
You can store ArcSDE geodatabases in spatially enabled DB2 databases on Linux, UNIX, Windows, and the Z series operating system (z/OS). To see which specific operating systems and database versions are supported, go to the
ESRI support site and navigate to System Requirements for ArcGIS Server.
The setup, installation, and postinstallation procedures vary between operating systems. The steps in this topic are an overview of the preinstallation, ArcSDE component installation, and postinstallation setups for ArcSDE for DB2. For complete instructions, including instructions for installing the DBMS and ArcSDE component on separate machines, read the installation guide provided on the ArcSDE component installation media.
You need to install the DB2 database management system (DBMS) and configure a database (on Linux, UNIX, or Windows) or subsystem (z/OS) and spatially enable it before you can install the ArcSDE component.
DB2 for Linux, UNIX, and Windows
- Install DB2.
- Make sure the TEMP environment variable is set to a writable folder.
- Create an SDE Windows system administrator account with database administrator privileges.
- Create a database. Be sure to explicitly specify the code page UTF-8 in the CREATE DATABASE statement if you want to use Unicode with ArcSDE 9.2 or later geodatabases.
- Configure the database and the DB2 instance.
The topics DB2 initialization parameters, Minimize disk I/O contention in DB2, and Tuning memory in DB2 can help you with this. Also consult your DB2 documentation.
- Spatially enable the database using Spatial Extender.
DB2 for z/OSWhen you use a DB2 for z/OS database, you must set up a client Windows machine to work with the database subsystem on the mainframe.
On the z/OS machine
- Install and create your DB2 for z/OS subsystem.
- Enable the subsystem for spatial support.
- Install any authorized program analysis report (APAR) fixes needed for spatial support.
On the Windows client machine
- Install the DB2 Connect client.
- Create an SDE operating system (OS) user on the client machine.
NOTE: For Windows installations, you must be a Windows administrator to install any software on the machine.
The installation files for the ArcSDE component are on a separate DVD in the ArcGIS Server media kit.
On Windows systems
- Insert the installation DVD into the drive.
- Launch the installation wizard.
- Follow the instructions in the wizard to install the ArcSDE component of ArcGIS Server.
If you are using a DB2 for z/OS database, install the ArcSDE component on the client machine, following these same steps. However, be sure you use the
ArcSDE for DB2 z/OS installation wizard.
On UNIX or Linux systems
- Place the ArcSDE component media into the appropriate drive and mount the drive.
- Change directories to the appropriate drive.
- Run the installation command appropriate to the shell you are using to open the command-driven dialog box for the ArcSDE component installation procedure.
- Follow the instructions in the installation procedure.
The postinstallation tasks
- Create the ArcSDE geodatabase system tables.
- Authorize the ArcSDE component in the database.
- Set up and start an ArcSDE service (DB2 on Linux, UNIX, and Windows only).
In preparing to create the ArcSDE geodatabase system tables, you need to specify storage settings for some of these system tables and their indexes. These settings are grouped under the DATA_DICTIONARY configuration keyword in the dbtune.sde file. You need to alter the configuration parameter values prior to creating the geodatabase, then specify the altered dbtune.sde file when the geodatabase is created.
You should alter the settings to specify the table space in which to create the tables if you are using a DB2 database on Linux, UNIX, or Windows. Otherwise, the database default table space, which is usually quite small, will be used.
If you are using a DB2 z/OS database, you
must alter these settings to specify in which database in the subsystem the system tables will be created.
For details, see
The DATA_DICTIONARY keyword and its related topics
The dbtune file and the DBTUNE table,
DBTUNE configuration keywords, and
DBTUNE configuration parameter name-configuration string pairs.
ArcSDE for DB2 on Windows
- If you plan to use table spaces other than the default table space for some of the ArcSDE geodatabase system tables, alter the dbtune.sde file found in SDEHOME\etc.
That means when the ArcSDE component installation wizard completes, cancel out of the Post Installation wizard, navigate to SDEHOME\etc, and open the dbtune.sde file. You need to uncomment the lines with table space definitions and supply a table space name. Be sure to save your changes.
- Use the Post Installation wizard to complete postinstallation setup.
If you decide not to alter the DATA_DICTIONARY settings in the dbtune.sde file, you can continue with the Post Installation wizard as soon as the installation wizard completes. If you cancelled out of the Post Installation wizard to change the dbtune.sde file, you can open the Post Installation wizard from the Start menu (Start > All Programs > ArcGIS > ArcSDE).The Post Installation wizard lets you select configuration files, creates the geodatabase schema, authorizes the software in the geodatabase, and creates and starts an ArcSDE service.
ArcSDE for DB2 on Linux or UNIX
- Modify the files in SDEHOME/etc and /etc/services directories.
- Run the sdesetup command to create the geodatabase schema.
- Authorize the software in the geodatabase using sdesetup.
- Start an ArcSDE service (if you plan to use one).
ArcSDE for DB2 z/OSAs mentioned previously in this topic, the ArcSDE for DB2 z/OS component is only supported on Windows machines. Although many of the following postinstallation steps are performed against the DB2 for z/OS subsystem, you will likely be running them from the Windows computer on which the ArcSDE component is installed.
Also note that only direct connections to the DB2 z/OS subsystem are supported, so you will not create an ArcSDE service.
- Configure the ZPARMs on DB2 and refresh DB2 with the setting.
- Use the Resource Access Control Facility (RACF) to create a user, SDE, for ArcSDE administration.
- Transfer z/OS specific files to the target multiple virtual storage (MVS) system.
- Submit the JCL script, ESRIUDFI, to create the storage groups, databases, and user-defined functions (UDFs) for ArcSDE.
- Grant privileges to the SDE user and ArcSDE user group on DB2.
- From the ArcSDE client machine, alter the configuration files, run the sdesetup.exe, and authorize the ArcSDE component in the repository database.
- Submit the JCL script, ESRIUDFB, that binds the DBRMs required to run the ESRI UDFs.
- Verify the installation.
- Create ArcSDE users for ArcSDE and ArcGIS applications.