http://blog.csdn.net/dingxy/article/details/7602119/

.ORA-12518: TNS:listener could not hand off client connection 转自http://blog.sina.com.cn/s/blog_5904ea280100g614.html

ORA-12518: TNS:listener could not hand off client connection
Cause: The process of handing off a client connection to another process failed.
Action: Turn on listener tracing and re-execute the operation. Verify that the listener and database instance are properly configured for direct handoff. If problem persists, call Oracle Support.

先试试 connect / as sysdba,看行不行,如果行的话,
再试试connect / @ as sysdba看看监听配置是否有问题。
如果这一步有问题,说明监听这块有问题。

1.cmd
2.sqlpls /nolog
3.connect sys/test as sysdba
没有问题
1.cmd
2.sqlplus /nolog
3.connect sys/test@test as sysdba
ORA-12518: TNS:listener could not hand off client connection
说明监听有问题

查到了相关资料如下:
http://www.dba-oracle.com/sf_ora_12518_tns_listener_could_not_hand_off_client_connection.htm

The reason ORA-12518 is being throw may be because of DEDICATED connections because Oracle 10g has a value of PROCESSES is defaulted at 150 which can be lower than necessary in a production system. Also, in pre-9i MTS, ORA-12518 may be thrown in SHARED SERVER because the dispatcher may have reached the maximum connection value, so it denies all other.

There are two solutions for ORA-12518 depending on which symptom you may be experiencing.
a.For the DEDICATED occurrence of ORA-12518, you would need to try increasing the PROCESSES parameter so that it can handle the needed number of processes. You can ensure that you have the needed value by monitoring the listener log for ORA-12518. Also, note that because the PROCESSES parameter is static, the database will need to be bounced.
b.If you are experiencing ORA-12518 because of a shared server issue, you first would need to use the command below to shutdown the dispatcher:
SQL> alter system shutdown immediate 'D001';
Then, add on new dispatchers:
SQL> alter system set DISPATCHERS = '(protocol=tcp)(dispatchers=3)';

通过以上资料分析得出可能出现问题的原因有两种:一是processes值设的过小,二是需要增加参数DISPATCHERS。

考虑到之前经常遇到ora-00020超出最大进程数的问题在安装数据库的时候已经把processes设到800了,为保险起见再show parameter processes

SQL> show parameter process;

NAME                                 TYPE        VALUE
------------------------------------ ----------- -----
aq_tm_processes                      integer     0
db_writer_processes                  integer     1
gcs_server_processes                 integer     0
job_queue_processes                  integer     10
log_archive_max_processes            integer     2
processes                            integer     1000

再查进程数

SQL> select count(*) from v$session;

COUNT(*)
----------
       224

所以最后得出结论应该不是processes的问题,应该用b方法来解决
1.connect sys/test as sysdba
2.show parameters dispatchers;
NAME                TYPE             VALUE
dispatchers         string           (protocol=tcp)(service=oracle10xdb)
max_dispatchers      integer  
5.SQL>alter system set dispatchers = '(protocol=tcp)(dispatchers=3)(service=oracle10xdb)';
system altered
问题解决。
当然根据实际情况你也可以用a方法解决,

可以用show parameters processes;

命令查看processes的值,数据库在安装时默认为150,对于大型应用,32位的oracle一定要注意这个问题

对ORACLE 的优化点如下:
   1。在ORACLE数据库监听器LISENER.ORA配置文件中加入:
       DIRECT_HANDOFF_TTC_LISTENER = OFF命令 回收关闭掉长久不用连接

2.设置DISPATCHERS =3

alter system set DISPATCHERS = '(protocol=tcp)(dispatchers=3)';

show parameters dispatchers;

3.设置processes=400,安装ORACLE时默认为150, 对于大型应用,32位的oracle一定要注意这个问题

alter system set processes=400;

show parameters processes;

ORA-12518: TNS:listener could not hand off client connection .相关推荐

  1. ORA-12518: TNS:listener could not hand off client connection 解决办法

    说明一下问题: 就是给本地安装了一个oracle,但是就是用plsql 或者 Navicat咋都连接不上.报错: ORA-12518: TNS:listener could not hand off ...

  2. ORA-12518: TNS:listener could not hand off client connection

    新.ORA-12541: TNS:无监听程序 http://blog.csdn.net/wwbmyos/article/details/11475551 启动oracle的监听即可 一.ORA-125 ...

  3. ORA-12518, TNS:listener could not hand off client connection

    spring中用jdbc去连接oracle的时候,出现错误: ORA-12518, TNS:listener could not hand off client connection org.spri ...

  4. ORA-12518,TNS:listener could not hand off client connection

    前几天在启动应用的时候,在控制台抛出了此异常信息!很明显是数据库方面的问题,不过具体是什么问题哪?百度了一下,网上关于此问题的信息还是有比较多,从异常的提示中我们也能看到是具体是和客户端的连接相关的问 ...

  5. 【解决】用navicat连接 oracle 报错TNS listener could not hand off client connection

    今天在自己电脑上安装oracle11G,然后想用navicat连接试试,监听服务和service服务都打开但是还是链接失败如图所示: 修改好的图: 这里主机,连接类型,端口都是默认的, 服务器名是我安 ...

  6. 【问题集锦】【Oracle】ORA-12518 TNS: listener could not hand off client connection

    这个错误是当前活跃量大于最大量 查看当前活跃量 select count(*) from v$process --当前活跃量 select value from v$parameter where n ...

  7. 【Oracle】ORA-12518, TNS:listener could not hand off client connection

    这个错误是当前活跃量大于最大量 select count(*) from v$process   --当前活跃量 select value from v$parameter where name = ...

  8. ORA 12514 TNS listener does not currently know of service r

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 1,登录 ...

  9. oracle11g ora 12518,servlet执行update报错ORA-12518

    ORA-12518: TNS:listener could not hand off client connection这种错误一般是在测试数据库并发性的,多个用户的,后台用servle ORA-12 ...

最新文章

  1. 目前有没有好用的RNASeq的pipeline呢?
  2. bzoj3545 Peaks
  3. ios 获取是否静音模式_果粉感动:部分iOS“新功能”早已被安卓玩坏
  4. Qt工作笔记-使用qrand与QTime产生随机数
  5. 中芯国际:与阿斯麦集团签订购买单 总价12亿美元
  6. 3Dslicer中 PET/CT 模块:PET Standard Uptake Value Computation
  7. git使用.gitignore 忽略文件和忽略已经提交过的文件
  8. 用puttygen转换腾讯云密匙找不到文件
  9. android 混淆字符串,android 代码混淆
  10. yylabel html不显示图片,YYLabel富文本
  11. 关于#1-D:last line of file ends without a newline警告的解决办法(stm32)
  12. 当我说要做大数据工程师时他们都笑我,直到三个月后……
  13. 华为云OBS文件上传下载工具类
  14. SWFObject 2.0
  15. chacha20加密c语言算法,Java 11的新加密算法ChaCha20-Poly1305
  16. Cannot satisfy the following dependencies for tc解决
  17. 为什么人到中年就危机了呢?
  18. JuiceFS 在大搜车数据平台的实践
  19. 成都东软学院计算机很强吗,成都东软学院怎么样 好不好
  20. The requested resource is not available错误

热门文章

  1. VSTO2005架构概述
  2. 全网最全、最新Maven构建工具核心知识,这篇文章包你这辈子也忘不掉Maven!!
  3. opencv-python调用摄像头失败 global /io/opencv/modules/videoio/src/cap_v4l.cpp (1000) tryIoctl VIDEOIO(V4L2
  4. GDC翻译:Far Cry 5 的程序化世界生成(第三部分:7-生态工具(Biome Tool))
  5. LeetCode系列538—把二叉搜索树转换为累加树
  6. html css五星红旗,CSS版 五星红旗
  7. 硬盘测试软件得分数据怎么看,怎样知道你的硬盘性能——硬盘测试方法
  8. 从源码角度看for循环和foreach的区别
  9. ubuntu16.04 ns2安装教程
  10. 【原创】强化学习笔记|从零开始学习PPO算法编程(pytorch版本)