Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 19th, 2004, 03:21 AM
Authorized User
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using PHP to connect to Oracle

   I have oralce 8.0 installed on Linux RedHat 9.0, I am trying to use PHP 4.2.2 to connect to Oracle by using ODBC. However, I have one problem, when I try to use odbc_connect I need to provide the DSN (Data Source Name) which I don't know and the SysAdmin does not know either. My question is how can I figure it out? Even though the ODBC package is installed with PHP. Can anyone help me with..I appreicate it

Old February 25th, 2004, 02:54 PM
Authorized User
Join Date: Feb 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts

Hi dude!
I'm assuming you set this up on your own system?
How do you normally log in to Oracle using sql+?
If you have installed at home, follow from start menu..
     Oracle-OraHome(whatever version)->
              Configuration and Migration tools ->
                   Administration Assistant
Once opened, the left-hand pane will show Oracle managed objects
 Expand this and Computers and then the icon with your computer name.
Expand Databases and this will show the database name / names you have available

This / these are your DSN names...

Failing that....
Try logging in using a blank string for DSN, sometimes works :)

Old June 4th, 2004, 12:43 AM
Authorized User
Join Date: Apr 2004
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to junemo

I have run go-pear.bat and download the PEAR module.
So, now I have create DB.php, PEAR.php, common.php and oci8.php. When i run at browser, it display error msg:
DB ERROR connect failed.

Please advise me which .php file that I need to modify and change?
I use PHP 4.3.4 Oracle 8 IIS 5.0

Thabks in advance,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to Oracle. rupen Classic ASP Databases 0 August 18th, 2008 02:50 AM
C#.NET connect with Oracle dpkbahuguna ASP.NET 2.0 Basics 3 March 12th, 2008 04:08 PM
how to connect the oracle with c# .net bhasker_braj121 General .NET 1 June 19th, 2007 10:34 AM
Trying to connect to an oracle database aviand VS.NET 2002/2003 0 August 23rd, 2006 12:31 PM
connect Oracle from VB davElbaz Oracle 6 December 17th, 2004 11:08 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.