在开发过程中Oracle数据库有时候连得上,有时候又连不上,提示如下异常“ORA-12519: TNS:no appropriate service handler found 解决”,可能是数据库上当前的连接数目已经超过了它能够处理的最大值。

–查看当前的连接数:

select count(*) from v$process;

–数据库允许的最大连接数:

select value from v$parameter where name = ‘processes’;

–修改最大连接数:

alter system set processes = 500 scope = spfile;

–重启数据库:

shutdown immediate;
startup;

–查看当前有哪些用户正在使用数据

SELECT osuser, a.username,cpu_time/executions/1000000||’s’, sql_fulltext,machine
from v$session a, v$sqlarea b where a.sql_address =b.address order by cpu_time/executions desc;

本文转自:http://pihai.me/archives/1080.html#comments

最新文章

  1. C++ 基础知识复习(六)
  2. shell常用命令之curl: -w,–write-out参数详解
  3. UIBezierPath用法
  4. bzoj2764 基因补全
  5. linux 多线程基础2
  6. c#接口和抽象类比较
  7. SAP ABAP编程 Table Control动态隐藏列
  8. 在ASP.NET Core中给上传图片功能添加水印
  9. Java多线程、线程池和线程安全整理
  10. IE8浏览器官方下载 包含Windows中繁英文各个版本
  11. c#第一周的游戏
  12. Linux TTY驱动--Uart_driver底层【转】
  13. ILP32、ILP64、LP64、LLP64、64位系统
  14. python中read()、readline()、readlnes()
  15. Scrum7
  16. POJ3254:Corn Fields(状压dp第一发)
  17. linux和aix内核参数检查
  18. nginx的一些文章
  19. er图 画图工具
  20. 跨平台移动开发 Xuijs超轻量级的框架+Emile CSS动画

热门文章

  1. [LeedCode OJ]#85 Maximal Rectangle
  2. C#中toolStrip或statusStrip遮挡了SplitContainer怎么办?
  3. css3 - target
  4. C#使用WebBrowser对指定网页截图
  5. Springmvc返回信息乱码解决
  6. 你必须了解的java内存管理机制(二)-内存分配
  7. kubernetes之多容器pod以及通信
  8. kubernetes调度之 PriorityClass
  9. 区分拖曳(drag)和点击(click)事件
  10. vim 插件: ctrlp.vim