日期:2014-05-16  浏览次数:20504 次

WIN7监听器已启动 没有监听器错误的解决方法
监听器已经启动,Plsql提示没有监听

用Net Configuration Assistant删除掉listener.ora和tnsnames.ora(或直接进入目录删除)

重新创建监听

创建后修改

listener.ora
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = ORCL)
      (ORACLE_HOME = d:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 改为计算机名称)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )


tnsnames.ora


ORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = GBAFYC0D7XGNBI6)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = ORCL)
    )
  )




最后lsnrctl stop ,start ,status即可