ORA-12516, TNS:listener could not find available handler with matching protocol stack

Posted 格格巫 MMQ!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ORA-12516, TNS:listener could not find available handler with matching protocol stack相关的知识,希望对你有一定的参考价值。

应用程序连接测试数据库时报ORA-12516:TNS:listener could not find available handler with matching protocol stack

检查监听日志文件,发现大量的TNS-12516错误

cd /u01/app/oracle/product/10.2.0/db_1/network/log

more listener.log

TNS-12516: TNS:listener could not find available handler with matching protocol stack
13-MAY-2014 14:49:35 * (CONNECT_DATA=(SERVICE_NAME=xxx)(CID=(PROGRAM=c:\\windows\\system32\\inetsrv\\w3wp.exe)(HOST=GET08C0058)(USER=SYSTEM))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.xxx.xxx)(PORT=4594)) * establish * xxx * 12516

登录数据库,检查参数session时,出现ORA-01012:not logged on

[oraescm@lnxtest ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Tue May 13 14:29:57 2014

Copyright © 1982, 2007, Oracle. All Rights Reserved.

Connected.
SQL> show parameter session;

ERROR at line 1:
ORA-01012: not logged on

治标治本的解决办法是修改processes参数值,但是此时数据库连接不上。可以通过下面方法解决:

1: 停止监听服务,等数据库访问连接数下降用户再登录。
lsnrctl stop

2: sqlplus “/ as sysdba” 登陆后,修改processes值。

由于是测试数据库,可以折腾一下,如果不想修改processes的值,可以通过下面临时解决方法解决问题

1:重启监听服务

lsnrctl reload

2: sqlplus “/ as sysdba” 登陆后
shutdonwn abort

     startup

3: ps -ef|grep ora_dbw0_$Oracle_SID

kill -9 pid ;

startup --重启数据库

以上是关于ORA-12516, TNS:listener could not find available handler with matching protocol stack的主要内容,如果未能解决你的问题,请参考以下文章

ORA-12516:TNS:listener could not find available handler with matching protocol stack

Oracle报错ORA-12516 TNS:listener could not find available handler with matching protocol stack

Oracle报错ORA-12516 TNS:listener could not find available handler with matching protocol stack

ORA-12516, TNS: 侦听器找不到可用的处理程序

ORA-12516 TNS监听程序找不到符合协议堆栈要求的可用处理程序

ORA-12516: TNS: 监听程序找不到符合协议堆栈要求的可用处理程”的异常