Start of change

Editing the .odbc.ini parameters

Configure the template files by updating the following list of configurable parameters. Some parameters are not applicable to all databases, as shown.

[ODBC Data Sources]
This stanza describes the data source names (DSNs) for the databases that are configured in the .odbc.ini file. You must configure this stanza to show all your databases, and you must include a stanza for each one.
Start of changeAddress (SQL Server wire protocol definitions)End of change
Start of changeSpecify the network address of your server (this is required for local and remote databases). Specify an IP address as follows:
<servername or IP address>, <portnumber>
End of change
Driver
  • Start of changeIf you are using DB2, specify the location of the 32-bit driver library that matches your DB2 installation.End of change
  • Start of changeIf you are using any other database, add your installation directory structure to complete the fully qualified path to the driver shown.End of change
Description
You can change this if you choose. This is a text field for information only and has no bearing on operation.
Database (DB2, Sybase, Start of changeSQL Server accessed from UNIXEnd of change, Informix)
  • Start of changeIf you are using DB2, specify the database alias. The data source name must be the same as the database alias name. If you are using a remote DB2 database, you must set up your client-server connection to resolve this alias to the correct database. For more information, see the DB2 documentation.End of change
  • If you are using Sybase or SQL Server accessed from UNIX, specify the name of the database to which you want to connect by default. If you do not specify a value, the default is the database defined by your system administrator for each user.
  • If you are using Informix, specify the name of the database on the IDS server.
NetworkAddress (Sybase only)
Specify the network address of your Sybase server (this is required for local and remote databases). Specify an IP address as follows:
<servername or IP address>, <portnumber>

For example Sybaseserver, 5000. You can also specify the IP address directly, for example 199.226.224.34, 5000. You can find the port number in the Sybase interfaces file which is typically named interfaces, interfac, or sql.ini, depending on the operating system.

ServerName (Sybase, Oracle, Informix)
  • If you are using Oracle, specify the "Service Name" that resolves to a "Connect Descriptor", for example through a mapping in the TSNAMES.ORA file. This is applicable only to the 32-bit client driver.
  • If you are using Sybase, specify the name of the Sybase database server that you have defined on the server computer.
  • If you are using Informix, specify the name of the Informix IDS server.
Trace
This value controls whether the DataDirect ODBC trace is turned on or off. To start trace, set the value to 1; to stop trace, set the value to 0.
TraceFile
This value shows the path and the name of the trace file to which the ODBC trace is written. Trace files can become quite large; specify a directory with plenty of free disk space.
Start of changeTraceDllEnd of change
Start of changeAdd your installation directory structure to complete the fully qualified path to the ODBC trace DLL.End of change
Start of changeInstallDirEnd of change
Start of changeAdd your installation directory structure to complete the fully qualified path to the ODBC trace directory.End of change
Related tasks
Defining an ODBC connection to a 32-bit database on Linux and UNIX
Defining an ODBC connection to a database on Windows
Defining a connection to a 64-bit database on UNIX
Related reference
Supported databases
End of change