ORA-12518: TNS:listener could not hand off client connection
来源:互联网 发布:office办公软件图片 编辑:程序博客网 时间:2024/05/05 02:04
新.ORA-12541: TNS:无监听程序
http://blog.csdn.net/wwbmyos/article/details/11475551
启动oracle的监听即可
一、ORA-12518: TNS:listener could not hand off client connection
在团队成员增多时,经常出现“无法分发客户端连接”等问题。在网上搜索一番后,最终解决了该问题,现将解决方案总结如下,以供参考和以后备用。
更改SPFILEORCL.ORA文件中的process
F:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA
原因:团队成员增多,原有数据库设置不够用,导致连接plsql和启动tomcat时经常抛出“无法分发客户端连接”的异常。
解决方案:
第一步:调整process和session值
1. 检查process和session是否够用。
a)使用plsql连接到oracle,查看process进程数:
select count(*) from v$process; --取得数据库目前的进程数。select value from v$parameter where name = 'processes'; --取得进程数的上限。b)查看session会话数:
select count(*) from v$session; --取得数据库目前的会话数。select value from v$parameter where name = 'sessions'; --取得会话数的上限。查看当前process和sessions是否接近上限值。若接近,可以将其增大。
2. 调整这两个参数值大小。
系统进程数process和系统会话数session之间存在一个关系:
process数=session数*1.1+5
我们在配置时参考该规律进行设定。
a) 修改process值
alter system set processes=1000 scope=spfile; --将process值改为1000
b) 修改session值
alter system set sessions=1105 scope=spfile; --将sessions值改为1105
3. 备份pfile,重启oracle
a) 修改完成后,备份pfile
create pfile from spfile; --从spfile(运行时配置)创建pfile(系统配置)
c) 重启oracle
重启的方法有很多种,可以重启oracle服务,或者重启数据库。Windows下可以直接重启服务。
第二步:修改dispatchers个数
如果第一步解决不了问题。可以进行第二步的操作。
1.查看当前dispatchers个数,和dispatchers使用率select name,busy,status,accept,idle from v$dispatcher; --查看当前dispatchers个数和部分信息。一般默认安装的库只有一个。
select name,(busy/(busy+idle))*100 "busy rate%" from v$dispatcher; --查看dispatchers使用率
如果使用率大于50%,则要考虑增加dispatchers个数。
2.调整dispatchers个数alter system set dispatchers='(protocol=tcp)(dispatchers=3)(service=youroracleservicenameXDB)';
--修改dispatchers个数为3.
3. 重启oracle。
当重启服务的时候,出现没有监听程序的错误
二.ORA-12541: TNS:无监听程序
1:F:\oracle\product\10.2.0\db_1\network\admin\listener.ora 中添加如下代码:
(SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = F:\oracle\product\10.2.0\db_1) (PROGRAM = extproc) )
# listener.ora Network Configuration File: F:\oracle\product\10.2.0\db_1\network\admin\listener.ora# Generated by Oracle configuration tools.SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = orcl) (ORACLE_HOME = F:\oracle\product\10.2.0\db_1) (SID_NAME = orcl) ) (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = F:\oracle\product\10.2.0\db_1) (PROGRAM = extproc) ) )LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS = (PROTOCOL = TCP)(HOST = wl-fe65b9e18e24)(PORT = 1521)) ) )注意:重启 listener 和service
三、oralce不可用
创建SPFILEORCL.ORA文件,注意:SPFILEORCL,ORCL是实例的名字
F:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA
cmd中运行:
sqlplus /nologconn / as sysdba;create spfile='F:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA' from pfile='F:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.7292014151052';
故当出现此错误的是,先创建SPFILEORCL.ORA文件,然后更改监听错误,重启监听和服务即可
- ORA-12518, TNS:listener could not hand off client connection
- ORA-12518: TNS:listener could not hand off client connection
- ORA-12518, TNS:listener could not hand off client connection
- ORA-12518: TNS:listener could not hand off client connection
- ORA-12518: TNS:listener could not hand off client connection .
- 【Oracle】ORA-12518, TNS:listener could not hand off client connection
- TNS-12518:TROUBLESHOOTING GUIDE TNS-12518 TNS listener could not hand off client connection
- [转自Oracle官方技术博客]SLES12 SP2上遇到ORA-12518: TNS:listener could not hand off client connection
- TNS-12518: TNS:listener could not hand off client connection & Broken pipe
- orcale数据库,使用weblogic数据源,点击几个功能后报异常ORA-12518, TNS:listener could not hand off client connection
- 启动报Cannot get connection for url jdbc xxxx listener could not hand off client co
- ORA-12520: TNS:listener could not find available handler
- Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently
- Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently
- Listener refused the connection with the following error:ORA-12505, TNS:listener does not currently
- ora-12516 tns listener could not find available handler with matching protocol
- ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect 问题的解决!
- RAC 中 ORA-12516: TNS: listener could not find available handler with matching protocol stack
- UESTC 解救小Q
- docker创建私有仓库及存储image
- 汽车百科系列之(十四): 汽车打蜡讲究多
- 绕开final(不可继承)的限制,扩展Integer判断素数的方法
- 图片文字转换成word文字要怎么办
- ORA-12518: TNS:listener could not hand off client connection
- Mac下MySql的启动、停止
- 第二篇:Hibernate环境搭建及jar包
- 串口传输工具sz和rz的安装与使用
- 经典贪心(区间覆盖)
- MapReduce实现hive join操作
- 关于ios中的点赞控件效果的实现--UIControl
- MFC实现类似Windows绘图的文字输入功能
- 初识Activity