Oracle 11g和12c在同一台Windows机器上,12c监听器无法启动

时间:2014-06-11 08:17:42

标签: oracle listener oracle12c

我已经安装了一台装有Oracle 11g的Windows机器,ORACLE_HOME指向了11g的主页。 然后我尝试安装12c。安装时,安装程​​序要求我取消设置环境变量并重新运行安装程序。我做到了然后安装工作正常。当安装程序继续进行网络配置时,只有一次打嗝,它失败了。我做了'重试'并且成功完成了。 安装完成后,我发现12c的oracle数据库服务正在运行,但是监听器没有运行。我尝试启动服务并收到一条消息,说“它已启动并停止”。然后我在网上搜索并发现了各种建议。尝试过很多但却无法让听众跑步。

当前状态是,我的ORACLE_HOME设置为12c home。当lsnrctl启动时,我收到此错误..

C:\Users\Administrator>lsnrctl start
LSNRCTL for 64-bit Windows: Version 12.1.0.1.0 - Production on 11-JUN-2014 02:00:42
Copyright (c) 1991, 2013, Oracle.  All rights reserved.
Starting tnslsnr: please wait...
Failed to start service, error 0.
TNS-12560: TNS:protocol adapter error

我做错了什么?

这是listener.ora ...

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\app\Administrator\product\12.1.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:D:\app\Administrator\product\12.1.0\dbhome_1\bin\oraclr12.dll")
    )
  )


LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
      (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname.domain.com>)(PORT = 1522))
    )
  )

这里是tnsnames.ora ...

MY12C =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname.domain.com>)(PORT = 1522))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = MY12C)
    )
  )


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

1 个答案:

答案 0 :(得分:0)

请尝试检查oracle 11G当前正在运行的天气老听众。

从oracle 12C运行netca,然后用oralce 11G创建不同名称和不同端口的监听器。