skip to main content
Part 2: The 32-Bit/64-Bit Drivers : The Informix Wire Protocol Driver : Configuring and Connecting to Data Sources : Data Source Configuration through a GUI
  
Data Source Configuration through a GUI
This information pertains to Windows. On Windows, data sources are stored in the Windows Registry. You can configure and modify data sources through the ODBC Administrator using a driver Setup dialog box, as described in this section.
This information pertains to UNIX and Linux. On UNIX and Linux, data sources are stored in the odbc.ini file. On Linux, you can configure and modify data sources through the Linux ODBC Administrator using a driver Setup dialog box, as described in this section.
Note: This book shows dialog box images that are specific to Windows. If you are using the drivers in the Linux environment, the dialog box that you see may differ slightly from the Windows version. Windows-only and UNIX-only connection options are specifically noted by icons in the Setup dialog box descriptions.
When the driver is first installed, the values of its connection options are set by default. These values appear on the driver Setup dialog box tabs when you create a new data source. You can change these default values by modifying the data source. In the following procedure, the description of each tab is followed by a table that lists the connection options for that tab and their initial default values. This table links you to a complete description of the options and their connection string attribute equivalents. The connection string attributes are used to override the default values of the data source if you want to change these values at connection time.
To configure an Informix data source:
1. Start the ODBC Administrator:
Windows icon On Windows, start the ODBC Administrator by selecting its icon from the Progress DataDirect program group.
UNIX icon On Linux, change to the install_dir/tools directory and, at a command prompt, enter:
odbcadmin
where install_dir is the path to the product installation directory.
2. Select a tab:
User DSN: If you are configuring an existing user data source, select the data source name and click Configure to display the driver Setup dialog box.
If you are configuring a new user data source, click Add to display a list of installed drivers. Select the driver and click Finish to display the driver Setup dialog box.
Windows icon System DSN: If you are configuring an existing system data source, select the data source name and click Configure to display the driver Setup dialog box.
If you are configuring a new system data source, click Add to display a list of installed drivers. Select the driver and click Finish to display the driver Setup dialog box.
File DSN: If you are configuring an existing file data source, select the data source file and click Configure to display the driver Setup dialog box.
If you are configuring a new file data source, click Add to display a list of installed drivers; then, select a driver. Click Advancedif you want to specify attributes; otherwise, click Next to proceed. Specify a name for the data source and click Next. Verify the data source information; then, click Finish to display the driver Setup dialog box.
The General tab of the Setup dialog box appears by default.
Figure 12. General tab
The General tab of the ODBC Informix Wire Protocol Driver Setup dialog box
Note: The General tab displays only fields that are required for creating a data source. The fields on all other tabs are optional, unless noted otherwise.
3. On this tab, provide values for the options in the following table; then, click Apply. The table provides links to descriptions of the connection options.
Connection Options: General
Default
None
None
None
None
None
None
None
4. Optionally, click the Advanced tab to specify additional data source settings.
Figure 13. Advanced tab
The Advanced tab of the ODBC Informix Wire Protocol Driver Setup dialog box
On this tab, provide values for any of the options in the following table; then, click Apply. The table provides links to descriptions of the connection options.
Connection Options: Advanced
Default
0 - None
Enabled
Enabled
Disabled
4 (ISO 8559-1 Latin-1)
5. Optionally, click the Failover tab to specify failover data source settings.
Figure 14. Failover tab
The Failover tab of the ODBC Informix Wire Protocol Driver Setup dialog box
See Using Failover for a general description of failover and its related connection options.
On this tab, provide values for any of the options in the following table; then, click Apply. The table provides links to descriptions of the connection options.
Connection Options: Failover
Default
Disabled
None
0
3
6. At any point during the configuration process, you can click Test Connect to attempt to connect to the data source using the connection options specified in the driver Setup dialog box. A logon dialog box appears (see Using a Logon Dialog Box for details). Note that the information you enter in the logon dialog box during a test connect is not saved.
If the driver can connect, it releases the connection and displays a Connection Established message. Click OK.
If the driver cannot connect because of an incorrect environment or connection value, it displays an appropriate error message. Click OK.
Note: If you are configuring alternate servers for use with the connection failover feature, be aware that the Test Connect button tests only the primary server, not the alternate servers.
7. Click OK or Cancel. If you click OK, the values you have specified become the defaults when you connect to the data source. You can change these defaults by using this procedure to reconfigure your data source. You can override these defaults by connecting to the data source using a connection string with alternate values.