免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5196 | 回复: 10
打印 上一主题 下一主题

sybase无法登录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-02-04 17:02 |只看该作者 |倒序浏览
应用程序操作sybase数据库时,后台日志报错:
00:00000:00010:2010/02/04 16:42:59.58 kernel  soc_nopen: No free file descriptors available.

使用SQL命令也无法登录数据库,在网上一直查不到该问题的处理办法,请高手们指点下!谢谢!

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
2 [报告]
发表于 2010-02-04 17:10 |只看该作者
本帖最后由 andkylee 于 2010-02-04 17:14 编辑

能不能多贴点日志?

看看这个参数:o/s file descriptors

贴一下参数
number of user connections
number of devices
max online engines
number of remote sites
max number network listeners
max cis remote connections
number of java sockets
@@max_connections

的值!

参考文档:http://infocenter.sybase.com/hel ... ml/sag1/sag1274.htm

论坛徽章:
0
3 [报告]
发表于 2010-02-04 17:15 |只看该作者
00:00000:01739:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2830 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:01519:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2262 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:00103:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2258 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:01105:2010/02/04 16:42:59.57 kernel  Cannot send, host process disconnected: TELEPOW 2249 suid: 3
00:00000:00010:2010/02/04 16:42:59.57 kernel  soc_nopen: No free file descriptors available.
00:00000:01859:2010/02/04 16:42:59.58 kernel  Cannot send, host process disconnected: TELEPOW 2636 suid: 3
00:00000:00010:2010/02/04 16:42:59.58 kernel  soc_nopen: No free file descriptors available.
00:00000:02331:2010/02/04 17:16:23.81 kernel  Cannot read, host process disconnected:   spid: 2331
00:00000:00010:2010/02/04 17:16:23.81 kernel  soc_nopen: No free file descriptors available.

论坛徽章:
0
4 [报告]
发表于 2010-02-04 17:15 |只看该作者
谢谢啊!日志不多,都是在重复上面的错误

论坛徽章:
0
5 [报告]
发表于 2010-02-04 17:30 |只看该作者
现在数据库无法登录,还没重启,下面的参数是从配置文件中查的,但是@@max_connections不知道该查哪个参数值
number of user connections = 2700
number of devices = 20
max online engines = 3
number of remote sites = DEFAULT
max number network listeners = DEFAULT
max cis remote connections = DEFAULT
number of java sockets = DEFAULT

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
6 [报告]
发表于 2010-02-04 17:39 |只看该作者
在isql下用 select @@max_connections  来查询。

number of user connections = 2700 估计是超过最大文件描述符file descriptor 了。
公式 (number of user connections) + (number of devices * max online engines) + (number of remote sites) + (max number network listeners) + (max cis remote connections) + (number of java sockets) 不能大于  @@max_connections

可以减少用户连接数重启试一下。或者你用sp_who看一下有多少用户在线?

论坛徽章:
0
7 [报告]
发表于 2010-02-04 17:42 |只看该作者
好的,我试下!谢谢你啊

论坛徽章:
0
8 [报告]
发表于 2010-02-04 17:48 |只看该作者
查到select @@max_connections  结果为1009 。number of user connections = 2700 确实大于@@max_connections 了
能不能把@@max_connections  设置大点?怎么设置?

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
9 [报告]
发表于 2010-02-04 17:56 |只看该作者
查到select @@max_connections  结果为1009 。number of user connections = 2700 确实大于@@max_connectio ...
xumouxin1 发表于 2010-02-04 17:48



    用户连接数2700是突然改的,还是一直就是这个样子?

全局变量 @@max_connections  表示的操作系统级别的文件描述符。1009感觉有点低。请查看相应操作系统的文档!

论坛徽章:
0
10 [报告]
发表于 2010-02-04 18:00 |只看该作者
2700这个值是之前改的!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP