|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-19 12:46 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
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: