In the UNIX environment, the ODBC driver allows you to establish a centralized ODBC system information file that you can control. To do so, set the environment variable ODBCINI by executing the DirectConnect environment script to point to the qualified path name of the centralized file, provided by DirectConnect install. For example:
For C shell:
DC_SYBASE.csh
For Bourne or Korn shell:
DC_SYBASE.sh
Executing the script sets ODBCINI to $SYBASE/$SYBASE_ECON/odbcini
Remember, there must be an [ODBC] section in the system information file that includes the InstallDir keyword. Be sure that the keyword value is the path to the directory $SYBASE/$SYBASE_ECON.
To define data source entries, edit the odbc.ini file, entering values for the parameters on your worksheet.
The following table provides descriptions of the parameters that you can provide in the odbc.ini file. Asterisks(*) identify the required parameters.
Following is an example of the contents of the odbc.ini file for DirectConnect for Informix:
;; Informix Wire Protocol Driver (Informix 9.x) ;; ;; Use values from installation worksheet. ;; ;; Data Source Name [dcinfxwp] Driver=/sybase/DC-12_6/lib/MVifcl20.so Description=Informix Wire Protocol HostName= PortNumber= ServerName= Database= ;; ;; Advanced options ;; CancelDetectInterval=0 ApplicationUsingThreads=1 TrimBlankFromIndexName=1 ;; ;; Optional Failover options ;; LoadBalancing=0 AlternateServers= ConnectionRetryCount=0 ConnectionRetryDelay=3
[ODBC] IANAAppCodePage=4 InstallDir=/sybase/DC-12_6 Trace=0 TraceFile=odbctrace.out TraceDll=/sybase/DC-12_6/lib/odbctrac.so
Copyright © 2005. Sybase Inc. All rights reserved. |