LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index » Code Warriors
Author Message
anglachel
Guide Dog
Guide Dog


Joined: 08 Nov 2003
Posts: 8419
Location: MN

Post Posted: Sun Sep 23, 2007 11:12 am   Post subject: linux apache oracle and php Reply with quote Back to top  

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!
View user's profile Send private message AIM Address
Lycander
Lead Dog
Lead Dog


Joined: 24 May 2002
Age: 25
Posts: 12198
Location: The Constitution State

Post Posted: Sun Sep 23, 2007 11:32 pm   Post subject: Reply with quote Back to top  

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
View user's profile Send private message
anglachel
Guide Dog
Guide Dog


Joined: 08 Nov 2003
Posts: 8419
Location: MN

Post Posted: Mon Sep 24, 2007 11:23 am   Post subject: Reply with quote Back to top  

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!
View user's profile Send private message AIM Address
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4955
Location: On average, Cheltenham.

Post Posted: Mon Sep 24, 2007 12:05 pm   Post subject: Reply with quote Back to top  

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?
View user's profile Send private message Send e-mail Visit poster's website
anglachel
Guide Dog
Guide Dog


Joined: 08 Nov 2003
Posts: 8419
Location: MN

Post Posted: Mon Sep 24, 2007 12:47 pm   Post subject: Reply with quote Back to top  

So I have an sqlnet.ora, that works on windows.

Code: Select all
#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

Code: Select all
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!
View user's profile Send private message AIM Address
anglachel
Guide Dog
Guide Dog


Joined: 08 Nov 2003
Posts: 8419
Location: MN

Post Posted: Tue Sep 25, 2007 4:34 pm   Post subject: Reply with quote Back to top  

Code: Select all
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!
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!