转自:http://www.dbafree.net/?p=778今天晚上在一个比较重要的库上,CPU严重的冲了一下,导致DB响应变慢,大量应用连接timeout,紧接着LISTENER就挂了,连接数也满了等一连串问题。我们的监控抓取了当时系统的等待事件,ACTIVE SQL及SESSION_WAIT...
分类:
其他好文 时间:
2014-07-22 22:53:13
阅读次数:
304
在/usr/shared/dstat目录下dstat_mysql5_conn.py中的部分源代码c = self.db.cursor()c.execute("""show global variables like 'max_connections';""")max = c.fetchone()c....
分类:
数据库 时间:
2014-07-22 22:51:36
阅读次数:
252
对于mongoose操作集合的方便之处确实不一般,但主要还是你在引用中对集合的设计,不过mongoose在使用ref关联集合的时候有限制和查出的集合的组合问题有点麻烦。不过不要紧,简单易用就行。 ????1.mon...
分类:
其他好文 时间:
2014-07-22 08:10:35
阅读次数:
289
---------------loop循环定义变量--------------------declare cursor c1 is select * from emp;# rec emp%rowtype;# i numeber:=1; # v_count number;begin# select count(*) into v_count from emp;#(1) open c1; loop...
分类:
数据库 时间:
2014-07-20 00:33:20
阅读次数:
334
【C# Equals】1、Object.Equals() The type of comparison between the current instance and theobjparameter depends on whether the current instance is a ref....
分类:
其他好文 时间:
2014-07-19 15:04:20
阅读次数:
258
Css中光标的使用:属性名称 属性值 说明cursor auto 默认输入文字的符号 crosshair 光标是十子形 ...
分类:
Web程序 时间:
2014-07-18 08:07:06
阅读次数:
206
百度在线手写板代码-php自学网
#sx{color:#00C;text-decoration:underline;cursor:pointer;}
手写
var w = window,d = document,n = navigator,k = d.f.wd
if (w.attachEvent) {
w.attachEve...
分类:
其他好文 时间:
2014-07-17 19:02:52
阅读次数:
635
一个类,new出来或者create出来,引用计数是1,如果引用计数为0,就会调用析构函数如果delete 这个类的指针,也会调用析构函数。如果一个类A的指针被多个类持有的时候,让A继承自Ref,然后每个类持有A的引用时,retain一下,不需要的时候release一下CC_SAFE_RELEASE_...
分类:
其他好文 时间:
2014-07-16 18:39:23
阅读次数:
233
并不是用了绑定变量就一定都会游标共享,下面我们介绍的就是一种例子。BIND_MISMATCH导致VERSION COUNT过多的原因解释:This is due to the bind buffer mismatch of the current child cursor. If oracle is...
分类:
其他好文 时间:
2014-07-16 18:16:45
阅读次数:
295
原始代码如下:begin DECLARE @SQL_STMT NVARCHAR(300),@V_CLIENT_ID INT,@V_PGNAME VARCHAR(1000),@V_LOGID INT;DECLARE C2 CURSOR FOR SELECT PGNAME,CLIENT_ID FROM ...
分类:
其他好文 时间:
2014-07-16 10:57:40
阅读次数:
217