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 (c) 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 --重启数据库

相关文章
|
3月前
|
Oracle 关系型数据库 Java
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
50 0
|
SQL Oracle 关系型数据库
Oracle数据库ORA-12516:“listener could not find available handler with matching protocol stack!“问题解决方法
Oracle数据库ORA-12516:“listener could not find available handler with matching protocol stack!“问题解决方法
526 0
Oracle数据库ORA-12516:“listener could not find available handler with matching protocol stack!“问题解决方法
how to verify that Listener is entry point of application
how to verify that Listener is entry point of application
how to verify that Listener is entry point of application
|
数据库
ORA-12520: TNS:listener could not find available handler for requested type of server
当你碰到ORA-12520错误时,如下所示: 英文错误提示: ORA-12520: TNS:listener could not find available handler for requested type of server 中文错误提示: ORA-12520: TNS: 监听程序无法为请求的服务器类型找到可用的处理程序 一般你应该从下面两个方面去检查出错原因并解决问题:   1:数据库是专用服务器,但是在tnsname.ora配置文件中设置的连接方式是shared,这种情况需要修改tnsname.ora配置文件,这种错误情况一般发生在第一次连接数据库服务器。
1325 0
|
SQL Oracle 关系型数据库
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor案例2
今天使用SQL Developer连接一台测试服务器数据库(ORACLE 11g)时,遇到了“ORA-12514, TNS:listener does not currently know of service requested in connect descriptor”错误,具体提示如下所示:...
5297 0
|
关系型数据库 数据库
ORA-12154: TNS:could not resolve the connect identifier specified
在安装ORACLE安装的时候,报如下错误:ORA-12154: TNS:could not resolve the connect identifier specified。如下图所示: 折腾了很久才找到罪魁祸首:原来在安装数据库时,设置用户密码的时候里面包含了@符号,引起了这个错误,这个错误倒是有点诡异,应该是ORACLE连接DB时就把口令@后面的串当连接字用了。
2923 0