Listener could not listen Ora 11 XE server [message #546972] |
Sat, 10 March 2012 18:56 |
|
leorbarbosa@gmail.com
Messages: 3 Registered: March 2012 Location: Brazil
|
Junior Member |
|
|
Hi,
I have installed on my local machine the Ora 11 XE server and the client. Its okay. I can logon from the OAS normally.
However, when I try to connect from my Php application, the messages that comes is: 'ORA-12154: TNS:could not resolve service name'.
Can someone help me?
|
|
|
Re: Listener could not listen Ora 11 XE server [message #546974 is a reply to message #546972] |
Sat, 10 March 2012 19:40 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
ORA-12154 ALWAYS only occurs on SQL Client & no SQL*Net packets ever leave client system
ORA-12154 occurs when client requests a connection to some DB server system using some connection string.
The lookup operation fails because the name provided can NOT be resolved to any remote DB.
The analogous operation would be when you wanted to call somebody, but could not find their name in any phonebook.
The most frequent cause for the ORA-12154 error is when the connection alias can not be found in tnsnames.ora.
The lookup operation of the alias can be impacted by the contents of the sqlnet.ora file; specifically DOMAIN entry.
TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1]
http://edstevensdba.wordpress.com/2011/02/26/ora-12154tns-03505/
It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/
[Updated on: Sat, 10 March 2012 19:40] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Listener could not listen Ora 11 XE server [message #547063 is a reply to message #547058] |
Mon, 12 March 2012 02:32 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:my week has started magnificently ... For some of us, the week started some time ago:orcl> alter session set nls_territory='America';
Session altered.
orcl> select to_char(sysdate,'d') from dual;
T
-
2
orcl> alter session set nls_territory='United Arab Emirates';
Session altered.
orcl> select to_char(sysdate,'d') from dual;
T
-
3
orcl> bit not, I see, for you:orcl> alter session set nls_territory='Croatia'
Session altered.
orcl> select to_char(sysdate,'d') from dual;
T
-
1 time for Europe to have some coffee.
|
|
|
|