Oracle数据库当前连接数、最大连接数的查询与设置
2024-08-24 05:37:42
在开发过程中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
最新文章
- C++ 基础知识复习(六)
- shell常用命令之curl: -w,–write-out参数详解
- UIBezierPath用法
- bzoj2764 基因补全
- linux 多线程基础2
- c#接口和抽象类比较
- SAP ABAP编程 Table Control动态隐藏列
- 在ASP.NET Core中给上传图片功能添加水印
- Java多线程、线程池和线程安全整理
- IE8浏览器官方下载 包含Windows中繁英文各个版本
- c#第一周的游戏
- Linux TTY驱动--Uart_driver底层【转】
- ILP32、ILP64、LP64、LLP64、64位系统
- python中read()、readline()、readlnes()
- Scrum7
- POJ3254:Corn Fields(状压dp第一发)
- linux和aix内核参数检查
- nginx的一些文章
- er图 画图工具
- 跨平台移动开发 Xuijs超轻量级的框架+Emile CSS动画
热门文章
- [LeedCode OJ]#85 Maximal Rectangle
- C#中toolStrip或statusStrip遮挡了SplitContainer怎么办?
- css3 - target
- C#使用WebBrowser对指定网页截图
- Springmvc返回信息乱码解决
- 你必须了解的java内存管理机制(二)-内存分配
- kubernetes之多容器pod以及通信
- kubernetes调度之 PriorityClass
- 区分拖曳(drag)和点击(click)事件
- vim 插件: ctrlp.vim