WINDOWS下ORA-12514 TNS 监听程序当前无法识别连接描述符中请求服务

第一步:

  • 关闭Windows防火墙
  • Win + R,输入control
  • 右上方查看方式切换成小图标
  • 点击Windows防火墙
  • 左侧侧边栏打开或关闭Windows‘防火墙
  • 关闭并保存

第二步:

  • Win + R,输入services.msc
  • 启动所有Oracle前缀的服务
  • 重试

第三步:

  • 进入安装目录\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN
  • 编辑`listener.ora,新增监听
  • SID_LIST_LISTENER =下新增
(SID_DESC =
       (GLOBAL_DBNAME = orcl)
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)  
       (SID_NAME = orcl)
    )
  • orcl是默认数据库实例,需要按照实际情况修改
  • ORACLE_HOME是产品目录,需要按照实际情况修改
  • 完整配置文件
# listener.ora Network Configuration File: C:\app\Administrator\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:\app\Administrator\product\11.2.0\dbhome_1)
      (PROGRAM = extproc)
      (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    (SID_DESC =
       (GLOBAL_DBNAME = orcl)
       (ORACLE_HOME = C:\app\Administrator\product\11.2.0\dbhome_1)  
       (SID_NAME = orcl)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = DATABASE)(PORT = 1521))
    )
  )
ADR_BASE_LISTENER = C:\app\Administrator

  • Win + R,输入services.msc
  • 重启OracleOraDb11g_home1TNSListener服务
  • 重试

你可能感兴趣的:(WINDOWS下ORA-12514 TNS 监听程序当前无法识别连接描述符中请求服务)