Oracle ORA-12514: TNS:listener does not currently know of service requested in conn解决方案

# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
      (PROGRAM = extproc)
    )
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = cust-e44050fe71)(PORT = 1521))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )

如果你listener.ora配置文件是这样的 说明少了一些配置信息应指出监听那个数据库应加上

(SID_DESC =
      (GLOBAL_DBNAME = GKBM2015) //为数据库服务名
      (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
      (SID_NAME = GKBM2015) //为数据库服务名
     )
    (SID_DESC =
      (GLOBAL_DBNAME = ZYXX2015) //为数据库服务名
      (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
      (SID_NAME = ZYXX2015) //为数据库服务名
    )

之后的文件是这样的

# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = GKBM2015)
      (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
      (SID_NAME = GKBM2015)
     )
    (SID_DESC =
      (GLOBAL_DBNAME = ZYXX2015)
      (ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
      (SID_NAME = ZYXX2015)
    )
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = cust-e44050fe71)(PORT = 1521))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )

之后重启监听程序

cmd命令中输入 lsnrctl

stop

start

时间: 2024-10-27 07:46:21

Oracle ORA-12514: TNS:listener does not currently know of service requested in conn解决方案的相关文章

oracle 报错ORA-12514: TNS:listener does not currently know of service requested in connec

在使用navicat上连接oracle正确用户名和密码,oracle常用服务也启动的情况下依然无法建立连接.但是sqlPus上输入用户名和密码可以连接通过,百思不得其解(菜鸟本质 好奇). 这种情况下查看了navicat的历史日志:ORA-12514: TNS:listener does not currently know of service requested in connect. 通过网上搜索查到说  navicat工具是32位,oracle64位不匹配,心想很有可能是这原因.因此通过

ORA-12514: TNS:listener does not currently know of service requested in connect

1,登录报错如下: [oracle@oracle_yueworld admin]$ rlwrap sqlplus system/system51@st1 SQL*Plus: Release 11.2.0.1.0 Production on Thu Dec 3 16:33:26 2015 Copyright (c) 1982, 2009, Oracle. All rights reserved. ERROR: ORA-12514: TNS:listener does not currently k

ORA-12514: TNS: listener does not currently know of service requested in connect descriptor

1. 环境: oracle 11g x64 2. sqlplus 可以正常使用,PLSQLDeveloper登录出错如下: 2. 解决方法:参考http://www.linuxidc.com/Linux/2012-09/69678.htm

plsql登录提示ORA-12514:TNS:listener does not currently know of service…………

问题:在自己电脑上安装好plsql并且第一次运行可以,关机重启后再登录PLSQL报错了…… 解决方法:1.修改oracle里面listener.ora文件的内容 文件路径为: 改之前的内容: 改后的内容为: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ORCL) (ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_1) (SID_NAME = ORCL) ) (SID_DESC

ORA-12520: TNS:listener could not find available handler for requested type of server

当你碰到ORA-12520错误时,如下所示: 英文错误提示: 中文错误提示: ORA-12520: TNS: 监听程序无法为请求的服务器类型找到可用的处理程序 一般你应该从下面两个方面去检查出错原因并解决问题: 1:数据库是专用服务器,但是在tnsname.ora配置文件中设置的连接方式是shared,这种情况需要修改tnsname.ora配置文件,这种错误情况一般发生在第一次连接数据库服务器. 2:运行正常的数据库服务器,突然报ORA-12520错误,一般是因为process不够引起的.需要增

ORA-12514: TNS:listener does not currently know of service …

问题描述: 今天数据库查询时遇到问题,具体情形如下截图所示: 问题分析: 看错误明显是TNS监听有问题,要么配置错了,要么数据库没起来.但是当前数据库起来了,也能正常连接使用,因此 考虑被查询对象可能是一个db_link,具体的是那个连接有问题. 问题定位及解决: --查询数据对象,从而得到它是一个synonym select * from dba_objects t where t.OBJECT_NAME = upper('sy_hgq_data_define'); --查同义词,得到它是一个

ORA-12514 TNS listener does not currently know of service re

1.错误描述 2.错误原因 确保OracleServiceORCL.OracleDBConsoleorcl和OracleOraDb11g_home1TNSListener三个已经启动,但是OracleDBConsoleorcl未启动 3.解决办法 开启OracleDBConsoleorcl 再分享一下我老师大神的人工智能教程吧.零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow 原文地址:https:

解决Oracle ORA-12505, TNS:listener does not currently know of SID given in connect(转)

http://anthon-lx.iteye.com/blog/811460 完整的错误信息如下: java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by th

解决Oracle ORA-12505, TNS:listener does not currently know of SID given in connect

完整的错误信息如下: java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: 192.168.149.128:1521:orcl