Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Listener configured with ip address of the host not accepting connections that use the tns with host

VMahadevMay 15 2014 — edited May 15 2014

Hello All,

We have a single server. Oracle applications & oracle DB are installed in the same machine under 2 different users.

tnsnames.ora in application has the entry "host=machine_name"

tnsnames.ora & listener.ora in DB has the entry "host=ipaddress"

I tested sql connections from applications as below

sqlplus apps/***@'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ip)(PORT=****))(CONNECT_DATA=(SID=****)))' ...Working

sqlplus apps/***@'(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=machine name )(PORT=***))(CONNECT_DATA=(SID=****)))' ...erroring out saying

ERROR:

ORA-12224: TNS:no listener

======================================================================================================================

I Changed listener.ora in DB replacing host=machinename and again tested above 2 statements from application. Both worked.

I am not sure why ip addresses are there is tnsnames & listener as i am new to the env

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2014
Added on May 15 2014
9 comments
777 views