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!

unable to connect to database using hostname in connect identifier

explorer_3307553Feb 1 2018 — edited May 29 2018

Hi Team

We have installed Oracle 12.1.0.2.0 in production systems. I am not able to connect to database from sqldeveloper using the hostname in one of the machine. I get below error.

Status: Failure- Test failed: IO Error : The network adapter could not establish the connection

We have used localhost in listener.ora instead of hostname  as below

LISTENER =

  (DESCRIPTION_LIST =

    (DESCRIPTION =

      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

  )

Tnsnames.ora

XSTRPOS =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = xstrpos)

    )

  )

 

ORACLR_CONNECTION_DATA =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

      (SID = CLRExtProc)

      (PRESENTATION = RO)

    )

  )

LISTENER_XSTRPOS =

  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

sqlnet.ora

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

I have local_listener=LISTENER_XSTRPOS

Please help with this.

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2018
Added on Feb 1 2018
13 comments
5,099 views