#36787 [NEW]: connecting to remote oracle database
| From: | dasaradh at gmail dot com | Date: | Sun, 19 Mar 2006 11:43:33 +0000 |
| Subject: | #36787 [NEW]: connecting to remote oracle database | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-94555@lists.php.net to get a copy of this message | ||
From: dasaradh at gmail dot com
Operating system: WNIDOWS XP SP2
PHP version: 5.1.2
PHP Bug Type: ODBC related
Bug description: connecting to remote oracle database
Description:
------------
we have a problem in connecting to a remote oracle database,
we r using apache 2.0 and php 5.1.2 and we r getting error that data
source name not found,we do not understand whether the problem is with
apache or connectivity
our database is located at 192.168.1.228
database name is:nic
service name :ora
and our application is at 192.168.1.221
Reproduce code:
---------------
<?php
$link = odbc_connect('192.168.1.228:1521','nic', 'chandu',
'lal');
if (!$link) {
die('Could not connect: ');
}
echo 'Connected successfully';
odbc_close($link);
?>
Expected result:
----------------
connected successfu;;y
Actual result:
--------------
Warning: odbc_connect() [function.odbc-connect]: SQL error:
[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified, SQL state IM002 in SQLConnect in C:\Program Files\Apache
Group\Apache2\htdocs\php\3.php on line 2
Could not connect:
--
Edit bug report at http://bugs.php.net/?id=36787&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36787&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36787&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36787&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36787&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36787&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36787&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36787&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36787&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36787&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36787&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36787&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36787&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36787&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36787&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36787&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36787&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36787&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36787&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36787&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36787&r=mysqlcfg