第一种方法: 用系统账户如sys as SYSDBA 登录进去 1、查看数据库锁,诊断锁的来源及类型: select object_id,session_id,locked_mode from v$locked_object; 或者用以下命令: select b.owner,b.object_nam...
分类:
数据库 时间:
2014-06-27 20:56:14
阅读次数:
255
SELECT*FROM sys.sysprocesses where spid>50 and blocked>0 --可以查看阻塞 SELECT SPID=p.spid, DBName =convert(CHAR(20),d.name), ProgramName =progra...
分类:
数据库 时间:
2014-06-26 23:44:59
阅读次数:
244
M:上回说的多线程的单例模式会了?z;略懂M:写一个吧package 单例模式;public class Singleton { private static Singleton instance=null; private Singleton() { Sys...
分类:
编程语言 时间:
2014-06-26 21:04:34
阅读次数:
307
1. 添加References PresentationCore PresentationFramework System.Xaml WindowsBase2. 修改AssemblyInfo.xsusing System.Windows;[assembly: System.Windows...
分类:
其他好文 时间:
2014-06-26 19:09:55
阅读次数:
139
1.命名空间xmlnsxmlns:x其只是MS的一个命名而已,没有任何特殊的意义xmlns:local="clr-namespace:myNamespace" --每个XAML元素都是一个CLR类型,通过自定义的命名空间,可以使用命名空间里的类xmlns:sys="clr-namespace:Sys...
分类:
其他好文 时间:
2014-06-26 18:49:56
阅读次数:
189
Warning: Cannot modify header information - headers already sent by出错的原因我在php程序的头部加了,header("cache-control:no-cache,must-revalidate");之后页面就出现上面的错误,看了N...
分类:
其他好文 时间:
2014-06-26 18:41:36
阅读次数:
167
先看语法:String.SubString(int index,int length) index:开始位置,从0开始 length:你要取的子字符串的长度例子: 1 using System; 2 using System.Collections.Generic; 3 using Sys...
分类:
其他好文 时间:
2014-06-26 18:31:49
阅读次数:
214
写这篇原创文章是因为看到了极客中的一篇文章《有趣各种编程语言实现2+2=5》,其中C语言是这样实现的:
int main() {
char __func_version__[] = “5″; // For source control
char b[]=”2″, a=2;
printf(“%d + %s = %s\n”, a, b, a+b);
return 0;
}
有些童鞋可能会说...
分类:
编程语言 时间:
2014-06-26 11:03:19
阅读次数:
282
最近有一个需求,就是控制系统的音量,我们都知道原理在mediaPlayer.framework框架下,有方法
// The current volume of playing music, in the range of 0.0 to 1.0.
// This property is deprecated -- use MPVolumeView for volume control instea...
分类:
其他好文 时间:
2014-06-26 10:44:33
阅读次数:
324
ORA-00937: 非单组分组函数错误
select count(*), t.user_name
from sys_user t, sys_department a, sys_dep_type d
where t.dep_id = a.dep_id
and a.dep_id = d.dep_id
and t.recd_is_del = 0
group by t.u...
分类:
其他好文 时间:
2014-06-26 08:07:37
阅读次数:
231