| Author |
Message |
anglachel
Guide Dog


Joined: 08 Nov 2003 Posts: 8419
Location: MN
|
Posted:
Sun Sep 23, 2007 11:12 am Post subject: linux apache oracle and php |
|
So here is the deal... I need to get a linux box talking to oracle, for some reports I wrote.
I have this working through ODBC on my windows box, which of course came with a package for the oracle client. No such luck on the linux box.
So I read up on it at php.net, and it seems the oracle instant client is the way to go... I install it compile PHP get everything working... only to later discover that we use an oracle names server, and that the instant client won't work with that... So now I'm trying to load the oracle full client on to slackware linux (not my choice) and failing as of friday. Has any one ever gotten something like this working before? any advice? |
_________________
Quidquid latine dictum sit, altum sonatur.
Death to Shuttleworth!
|
|
|
|
|
Lycander
Lead Dog


Joined: 24 May 2002 Age: 25 Posts: 12198
Location: The Constitution State
|
Posted:
Sun Sep 23, 2007 11:32 pm Post subject: |
|
http://adodb.sourceforge.net/ |
_________________ To the top of hunger mountain
I found my solitary ways
Where I could live on nuts and honey
And take my shelter in a cave
|
|
|
|
|
anglachel
Guide Dog


Joined: 08 Nov 2003 Posts: 8419
Location: MN
|
Posted:
Mon Sep 24, 2007 11:23 am Post subject: |
|
Lycander wrote:http://adodb.sourceforge.net/
when the bottom layer doesn't work, neither does the top layer.
adodb is just another layer ontop of OCI8... and OCI8 doesn't work... neither does adodb.
Also I've never seen the drive for people to put so many freakin layers on database access any how? |
_________________
Quidquid latine dictum sit, altum sonatur.
Death to Shuttleworth!
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4955
Location: On average, Cheltenham.
|
Posted:
Mon Sep 24, 2007 12:05 pm Post subject: |
|
anglachel wrote:Also I've never seen the drive for people to put so many freakin layers on database access any how?
SQL is a brain-dead half-language. The further away I am from it, the better. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.
If only 20% of your staff is programmers, and you can save 50% on salary by outsourcing programmers to India, well, how much of a competitive advantage are you really going to get out of that 10% savings?
|
|
|
|
|
anglachel
Guide Dog


Joined: 08 Nov 2003 Posts: 8419
Location: MN
|
Posted:
Mon Sep 24, 2007 12:47 pm Post subject: |
|
So I have an sqlnet.ora, that works on windows.
#SQLNET.ORA Network Configuration File
#
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXX.XXXXX.XXXXX.com)(PORT = 1575))
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXX.XXXXX.XXXXX.com)(PORT = 1575))
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXXX.XXXXX.XXXXX.com)(PORT = 1575))
)
NAMES.DIRECTORY_PATH = (ONAMES,TNSNAMES)
NAMES.DEFAULT_DOMAIN = XXXXX.XXXXX.com
NAMES.INITIAL_RETRY_TIMEOUT = 5
it is using the 8.7.1 client. on linux I could only go down to 10.2 for the client, I put the same slqnet.ora in place on the linux box, and It ain't connecting...
the server is version 9.2
and on linux I get
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
when I use sqlplus to try to connect...
now the instant client I was using at first didn't support ONAMES (oracle names) I don't know about 10.2 express client that I'm using now, but I've not found anything saying it doesn't and for 400MB's it ought to support lots of things, I would hope... |
_________________
Quidquid latine dictum sit, altum sonatur.
Death to Shuttleworth!
|
|
|
|
|
anglachel
Guide Dog


Joined: 08 Nov 2003 Posts: 8419
Location: MN
|
Posted:
Tue Sep 25, 2007 4:34 pm Post subject: |
|
NAMES.DEFAULT_DOMAIN = XXXXX.XXXXX.com
That was the one... once I commented that out everything worked fine, but it works fine with that part on windows... f'd up. |
_________________
Quidquid latine dictum sit, altum sonatur.
Death to Shuttleworth!
|
|
|
|
|
|
|