Home » Infrastructure » Linux » unable to connect
unable to connect [message #170565] Thu, 04 May 2006 06:38
Messages: 2
Registered: October 2005
Junior Member
Subj: Connect Oracle 10g using ODBC on Linux platform

I found message when I connect to ORACLE through my Explorer from the same server. Here:
Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Data source
name not found,
and no default driver specified, SQL state IM002 in SQLConnect in
/srv/www/htdocs/sdc/ora_test.php on line 8

my PHP script:
$conn=3Dodbc_connect ("dbx","userx","passwdx");
echo $conn;

Server: SLES 9 Linux king 2.6.5-7.191-bigsmp #1 SMP Tue Jun 28 14:58:56 UTC
2005 i686 i686 i386 GNU/Linux
Oracle: SQL*Plus: Release - Production on Thu May 4 11:24:18 200=
PHP: PHP 4.3.4 (cli) (built: Jul 1 2004 16:44:46)/Copyright (c) 1997-2003
The PHP Group/Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
ODBC: ODBC Support enabled

Can you tell me why ?
Previous Topic: Linux memory usage
Next Topic: handling GROUPs
Goto Forum:

Current Time: Wed May 22 18:33:58 CDT 2024