TNS-01150:指定侦听器名称的地址不正确

时间:2011-11-14 11:21:15

标签: oracle

尝试安装Oracle DB。

当我跑步时:

lsnrctl start ${ORACLE_SID}

我收到以下错误:

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=orcl)))
TNS-01150: The address of the specified listener name is incorrect
 TNS-01153: Failed to process string: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=)))

Listener failed to start. See the error message(s) above...

我的listener.ora文件如下:

#
#  orcl Listener
#
orcl =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC) (KEY = orcl))
    (ADDRESS = (PROTOCOL = TCP) (HOST = localhost.localdomain) (PORT = ))
      )
    )
  )

SID_LIST_orcl =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = orcl)
      (SID_NAME = orcl)
      (ORACLE_HOME = /home/oracle/product/11.1.0/db_1)
    )
  )

LOG_DIRECTORY_orcl=/home/oracle/admin/orcl/log
LOG_FILE_orcl=orcl.log
LOGGING_orcl=ON
TRACE_DIRECTORY_orcl=/home/oracle/admin/orcl/log
TRACE_FILE_orcl=orcl.trc
TRACE_LEVEL_orcl=OFF

有谁知道我应该在哪里检查可能的失败原因?

1 个答案:

答案 0 :(得分:2)

假设您的帖子中不是拼写错误,您还没有为听众分配端口号:

(PORT = )

尝试端口1521:这是传统的:)

(PORT = 1521)