Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: - Unable to get unixODBC to work with informix driver: msg#00009

db.unixodbc.devel

Subject: RE: - Unable to get unixODBC to work with informix driver

I have retried everything with a newer version of unixODBC from CVS
and now it works for isql.

The problem I have now is getting it to work with php off apache
on a webserver (redhat 7.3). The error returned from php is:-
Warning: SQL error: [unixODBC][Informix][Odbc Informix Driver]Data source
name not found and no default driver specified., SQL state IM002 in
SQLConnect in /var/www/html/ahs_web/php_todbc_p.php on line 19
Unable to connect to Informix database

I suspect that somehow it could not find the .odbc.ini in the home directory
of apache. I am not so familiar with web server and I am wondering exactly
where the system expects to look, for the home directory of the apache
process
that run the web server. I got the same error message for isql if I remove
the
.odbc.ini file from the home directory of the user that runs isql.

Suggestions or ideas welcome.

Thanks,

Hock Soon


-----Original Message-----
From: owner-unixodbc-dev@xxxxxxxxxxxx
[mailto:owner-unixodbc-dev@xxxxxxxxxxxx]On Behalf Of Stefan Radman
Sent: Tuesday, July 22, 2003 3:05 PM
To: unixodbc-dev@xxxxxxxxxxxx
Subject: RE: [unixODBC-DEV] - Unable to get unixODBC to work with
informix driver


Try "isql -v <dsn_name>"
That should provide you with a more detailed error message.

Stefan

> -----Original Message-----
> From: Ann Hock Soon [mailto:hocksoon@xxxxxxxxxxxxx]
> Sent: Tuesday, 22 July, 2003 05:37
> To: unixodbc-dev@xxxxxxxxxxxx
> Subject: [unixODBC-DEV] - Unable to get unixODBC to work with informix
> driver
>
>
> Hi,
>
> I have installed the unixODBC driver (2.2.5) on my Redhat 7.3
> Linux system
> and I am trying to
> get it to work with my informix database on the same machine.
>
> I know that my informix database is properly setup as I can get my
> application to
> connect to it without any problems. (Informix 7.30 with
> client sdk 2.10).
>
> I follow the suggestions for the informix driver in the manual at the
> www.unixodbc.org
> but still it fail.
>
> isql <dsn_name>
> gives the following errors:-
> [ISQL] ERROR: Could not SQLConnect
>
> Even if I do "isql rubbish", it gives the same error.
>
> Any idea what is wrong or how else I can try.
>
> Thanks,
>
> Hock Soon
> email: hocksoon@xxxxxxxxxxxxx
>




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation