[unixODBC-support] SQLConnect and odbc.ini

Martin J. Evans martin.evans at easysoft.com
Wed May 4 08:40:16 BST 2005

strace on osf is the streams trace utility and not what Eric referred to which
is "strace - trace system calls and signals". You may be able to find a copy of
strace (trace system calls) on freshmeat and build if for your machine.

Martin J. Evans
Easysoft Ltd, UK

On 03-May-2005 Thinh Nguyen wrote:
> Thanks Martin, it is a very usefull command.
> odbcinst -j does show the expected path for all the ini files, though. 
> So I think I probably need to use strace, as Eric suggested, to verify 
> that the driver actually reads from thoses files. But first, I have to 
> learn how to use strace on DEC-Alpha; it doesn't output anything when I 
> ran it :<
> Thanks for your help,
> Thinh
> Martin J. Evans wrote:
>>On 03-May-2005 Eric Sharkey wrote:
>>>>Thanks for your quick response. Because the driver I built always core 
>>>>dumped when SQLConnect was called ( and I couldn't figure out why ), I 
>>>>have been using an already compiled binary. For sure, it wasn't 
>>>>configured to read the same ini file as the unixODBC library I built. So 
>>>>that explains it. I'll try again to compile the driver myself to see if 
>>>>I'll get lucky this time :)
>>>If you want to know what ini files your already compiled driver is
>>>trying to use, you can try to connect with isql running under strace
>>>and look for attempts to open odbc.ini and odbcinst.ini and you should
>>>be able to see what directories it's searching.
>>odbcinst -j outputs this.
>>Martin J. Evans
>>Easysoft Ltd, UK

More information about the unixODBC-support mailing list