当前位置:Gxlcms > mysql > ORA-12514监听错误解决

ORA-12514监听错误解决

时间:2021-07-01 10:21:17 帮助过:48人阅读

ORA-12514: TNS:listenerdoes not currently know of service requested in connect,从ORACLE 10G开始,不再有8080端口,这样将

错误现象:

[Oracle@prudentwoo admin]$ sqlplussystem/oracle@PRUDENTWOO

SQL*Plus: Release 11.2.0.1.0 Production onWed Dec 12 03:23:29 2012

Copyright (c) 1982, 2009, Oracle. All rights reserved.

ERROR:

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

Descriptor

故障分析:

从错误现象上来看,应该是监听的问题,其报错大概意思是监听程序无法识别当前描述符中的连接服务。那么既然是这样的话,我们通过手工指定描述符中的连接服务,我想故障应该就可以排除了,那么手工指定描述符中的连接服务也就是我们所说的静态监听注册方式,默认采用的是动态监听注册方式。

故障解决:

1、编辑$ORACLE_HOME/network/admin/listener.ora,在文件添加内容,使其成如下样式即可,(红色部分为新添加的内容;保存后执行lsnrctl stop/start重启监听即可

SID_LIST_LISTENER =

(SID_LIST =

(SID_DESC =

(SID_NAME = PLSExtProc)

(ORACLE_HOME = /DBSOFT/product/11.2.0/db_1/)

(PROGRAM = extproc)

)

(SID_DESC =

(GLOBAL_DBNAME = wwl)

(ORACLE_HOME =/DBSOFT/product/11.2.0/db_1/)

(SID_NAME = wwl)

)

)

2、再次通过监听连接数据库测试,能够正常登录数据库,故障排除。

[oracle@wwldb admin]$ sqlplussystem/oracle@PRUDENTWOO

SQL*Plus: Release 11.2.0.1.0 Production onFri Dec 14 02:19:00 2012

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise EditionRelease 11.2.0.1.0 - Production

With the Partitioning, OLAP, Data Miningand Real Application Testing options

SQL> select instance_name,status fromv$instance;

INSTANCE_NAME STATUS

---------------- ------------

wwl OPEN

SQL>

3、从ORACLE 10G开始,不再有8080端口,这样将不会与tomcat的默认端口产生冲突,,从而导致修改端口的尴尬现象。

linux

人气教程排行