Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 23rd, 2005, 06:27 AM
j0sh's Avatar
j0sh j0sh is offline
Ruby On Rails Junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Switzerland
Posts: 476 j0sh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 44 m 20 sec
Reputation Power: 6
PHP & Oracle: use TNS_ADMIN instead of whole connection string?

Hi all

I have to connect to our Oracle 9i database using PHP4. I can connect to it using

Code:
$conn = ocilogon("USER","PW","(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=pub.diso.ch)(PORT=1521)))(CONNECT_DATA=(SID=  DBNAME)))");


but I'd like only to use the synonym specified in our TNS_ADMIN configuration file, like

Code:
$conn = ocilogon("USER","PW","DBNAME");


Unfortunately this does not work, although I can connect without a problem using SQL*PLUS with the synonyme! Could it be that PHP is not able to look after the TNS_ADMIN config file? Or where else could the problem be?

Thank you for help!
Josh
__________________
God, you gave man penis and brain, but only enough blood to run one at a time.

my webpage: www.josh.ch
my current project: phpmywebmin.josh.ch - a browser based file management application for webspace

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > PHP & Oracle: use TNS_ADMIN instead of whole connection string?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT