Jump to content

local tnsnames file


Recommended Posts

I have created a tnsnames.ora file in my local directory however I am not sure it is being used.

I have also add the variables tns_admin to  .bash_profile

When I try to run the php script I get ORA-12154: TNS:could not resolve the connect identifier specified

 

How should I go about troubleshooting this?

 

If I modify value for TNS_ADMIN to a path that doesn't exist the 12154 error does not change. Does this mean it is not reading the .bash_profile file and my local copy of tnsnames.ora?

 

Thanks,

 

 

-Brian

Link to comment
https://forums.phpfreaks.com/topic/245512-local-tnsnames-file/
Share on other sites

Thanks. I can connect to our oracle dev server with the script so I think apache has the necessary permissions. I'm trying to now connect to the production database server. This requires a local tnsnames.ora file however I can't tell if the script is even trying to use this file. It's in the same directory as the php script so I assume it is.

Link to comment
https://forums.phpfreaks.com/topic/245512-local-tnsnames-file/#findComment-1261056
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.