ORACLE:监听器无法切换​​连接错误

use*_*036 7 oracle-xe oracle11g

这是我的oracle 11.2.0配置

LISTENER.ORA:

LISTENER_ORCL =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = ORCL))
      (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    )
  ) 
Run Code Online (Sandbox Code Playgroud)

tnsnames.ora中

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = ORCL)
    )
  )
Run Code Online (Sandbox Code Playgroud)

我在Windows 8机器上以管理员用户身份启动OracleServieORCL.然后在同一个系统上,我使用sqldevloper(4.0.1)连接到SID ORCL,用户名系统和密码admin(admin是安装时给出的密码)

我收到错误ORA-12518:TNS:监听器无法切断客户端连接.

我试图重新安装该软件,但这没有帮助.我的盒子上安装了Java 8(8-101)版本.

lsnrctl services

LSNRCTL for 64-bit Windows: Version 11.2.0.2.0 - Production on 14-SEP-2016 12:02:11

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
  Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:0 refused:0
         LOCAL SERVER
Service "XEXDB" has 1 instance(s).
  Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
      "D000" established:0 refused:0 current:0 max:1022 state:ready
         DISPATCHER <machine: <system_name>, pid: 2808>
         (ADDRESS=(PROTOCOL=tcp)(HOST= <system_name>)(PORT=52707))
Service "xe" has 1 instance(s).
  Instance "xe", status READY, has 1 handler(s) for this service...
    Handler(s):
      "DEDICATED" established:17 refused:0 state:ready
         LOCAL SERVER
The command completed successfully
Run Code Online (Sandbox Code Playgroud)

use*_*036 1

好吧,经过几天的调试,终于知道安装没有在系统注册表中注册,当我通过管理员权限重新安装它时,它工作正常。