Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.