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!

Issues with TNS Protocol Adapter

912567Jan 31 2012 — edited Feb 5 2012
I am having some (possibly rookie) issues with connecting to my database after installing Oracle 11g.

OS: Windows 7 Professional
Oracle: 11.2.0

ORACLE_HOME = C:\Oracle\Chris\product\11.2.0\dbhome_1
ORACLE_SID = hr_orcl

If I run "C:\> sqlplus" from cmd, I get:

"Enter username: Chris
Enter password: *****
ERROR:
ORA-12560: TNS protocol adapter error"

There is a listener problem, when I run lsnrctl status I get a "TNS-12541: No Listener error", "TNS-12560: No protocol adapter error", "TNS-00511: No listener" and "32-bit Windows Error: 61: Unknown error"

I have checked services.msc, and there is a service named "OracleOraDb11g_home2TNSListener" which, when I start it, says "The service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."

I have been trawling the web to find a solution, I have installed a new Microsoft Loopback Adapter (hence the address 10.10.10.10), I have checked and changed ORACLE_HOME a dozen times, I've probably changed a few configurations I wasn't supposed to, but I'm stumped.

This issue came about after I re-installed 11g. It was working correctly before, but for other reasons I had to uninstall/reinstall. I've posted the contents of listener, tnsname and sqlnet, I would post some trace reports if I knew what files would help. If anyone knows why this issue occurs, and what can be done about it, I will be extremely grateful for your help.

Thanks

Listenter.ora:
# listener.ora Network Configuration File: \Oracle\Chris\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\Oracle\Chris\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\Chris\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    )
  )

ADR_BASE_LISTENER = C:\Oracle\Chris

TRACE_LEVEL_LISTENER = ADMIN
TNSNames.ora:
# tnsnames.ora Network Configuration File: \Oracle\Chris\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_HR =
  (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))


ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )

HR =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.10.10)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = hr_orcl)
      (SERVER = DEDICATED)
      (GLOBAL_NAME = HR)
    )
  )
SQLNet.ora:
# sqlnet.ora Network Configuration File: C:\Oracle\Chris\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

# This file is actually generated by netca. But if customers choose to 
# install "Software Only", this file wont exist and without the native 
# authentication, they will not be able to connect to the database on NT.

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

NAMES.DEFAULT_DOMAIN= (world)

NAMES.DEFAULT_ZONE= (world)
TNSPING.TRACE_LEVEL= 4
TNSPING.TRACE_DIRECTORY= "C:\Oracle\TraceFiles\"

trace_level_server= 10
trace_file_server = server.trc
trace_directory_server= "C:\Oracle\TraceFiles\"
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2012
Added on Jan 31 2012
12 comments
685 views