To run an ODBC application program or a UAP that uses ODBC functions, you need to install the ODBC driver in the HiRDB client beforehand. To execute a UAP via ODBC on the HiRDB server, you also need to install the ODBC driver in the HiRDB server.
This section presents the ODBC driver installation procedure. Be sure to exit all Windows applications before starting the installation.
To install the ODBC driver:
- Execute the ODBC20INST.exe file that is expanded under the HiRDB-client-installation-directory\utl directory after the HiRDB client has been installed. The Hitachi self-expanding program starts.
- In the Hitachi Integrated Installer dialog box, click the Install button to start the installer for the ODBC driver.
- Select the displayed HiRDB driver and choose the OK button. Installation does not take place if you choose OK without selecting anything.
- Existing data sources are displayed. If no data source has been defined, nothing is displayed. Choose the Add button.
![[Figure]](FIGURE/GMN1302.GIF)
- Select the HiRDB driver as being subject to data source addition.
![[Figure]](FIGURE/GMN1303.GIF)
- A dialog box for setting up the data source is displayed.
![[Figure]](FIGURE/GMN1301.GIF)
- Explanation
- Data source name
- Specify a name identifying the data source. The name can have up to 32 single-byte characters or 16 double-byte characters. Single-byte and double-byte characters can also be mixed.
- PDHOST (host name)
- Specify the host name of the server machine. This is the name specified in the client environment definition. For details about PDHOST, see 6.6.4 Environment definition information. If this information is omitted, the system assumes the value in the client environment definition.
- PDNAMEPORT (HiRDB port number)
- Specify the port number of the server machine. This is the port number specified in the client environment definition. For details about PDNAMEPORT, see 6.6.4 Environment definition information. If this information is omitted, the system assumes the value in the client environment definition.
- HiRDB client environment definition file name (absolute path name)#
- Specify the absolute path name of the HiRDB client environment definition file. Use this item to change the specification values for the HiRDB client environment variables for a particular data source. For example, if you are using the high-speed connection facility (PDSERVICEPORT) to connect to multiple HiRDB systems, you can use this item to specify the file name of the HiRDB client environment definition file and change the connection destination for each data source.
- If this information is omitted, the system assumes HIRDB.INI. For all client environment variables, except PDHOST and PDNAMEPORT, the system uses the settings in the HiRDB client environment definition file specified here.
- If the specified file is not HIRDB.INI, the system ignores the specifications in HIRDB.INI.
- After specifying all items, choose the OK button. The specified data source is displayed. To change the settings, choose the Set button to display the previous dialog box.
![[Figure]](FIGURE/GMN1304.GIF)
- #: When you install a HiRDB client, a HiRDB client environment definition file is automatically created under the filename HiRDB.INI in the system directory. To install the ODBC driver before installing the HiRDB client, you need to create the HIRDB.INI file, because this file has not been created. To create a client environment definition file, copy the HIRDB.INI file found in the odb32\Disk1\Sampleap directory of the installation CD-ROM to an appropriate directory, and then edit the file. For details about each client environment variable, see 6.6.4 Environment definition information.
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.