异常处理
一、预定义异常:
Dup_val_on_index:试图向唯一索引列插入重复值,相当于建立了一个唯一索引 然后再向这个索引的列中插入一条重复的数据就会异常。
Invalid_cursors:试图进行非法的游标操作
Invalid_number : 试图将字符串转换为数字
no_data_found : select into 语句没有返回任何记录
Too_many_rows ...
分类:
其他好文 时间:
2014-08-19 09:27:03
阅读次数:
210
一、检查系统版本是否手工升级[root@station253~]#uname-rlinux的内核版本号
2.6.32-358.el6.x86_64
[root@station253~]#cat/proc/version
Linuxversion2.6.32-358.el6.x86_64
[root@station253~]#cat/etc/issue系统安装时默认的发行版本
CentOSrelease6.4(Final)
[root@statio..
分类:
其他好文 时间:
2014-08-17 17:10:18
阅读次数:
404
更新了安卓SDK后,有时候Unity编译失失败,报错类似Error building Player: Win32Exception: ApplicationName='D:/Program Files/adt-bundle-windows-x86_64-20140702/sdk\tools\zipa...
分类:
移动开发 时间:
2014-08-17 15:29:12
阅读次数:
343
在使用ab做压力测试的时候发现当并发设置为1000以上的时候就出现[root@DB~]#ab-n10000-c1500http://192.168.100.208/
ThisisApacheBench,Version2.3<$Revision:655654$>
Copyright1996AdamTwiss,ZeusTechnologyLtd,http://www.zeustech.net/
LicensedtoTheApacheSoftware..
分类:
其他好文 时间:
2014-08-14 20:58:29
阅读次数:
227
题目地址:HDU 1086
就这么一道仅仅判断线段相交的题目写了2k多B的代码。。是不是有点浪费。。。但是我觉得似乎哪里也优化不了了。。。。
判断线段相交就是利用的叉积。假如现在两条线段分别是L1和L2,先求L1和L2两个端点与L1的某个端点的向量的叉积,如果这两个的叉积的乘积小于0的话,说明L1在是在L2两个端点之间的,但此时并不保证一定相交。此时需要用同样的方法去判断L2是否在L1的两个端...
分类:
其他好文 时间:
2014-08-13 22:30:37
阅读次数:
307
今天实施同事报现场有一个节点无法访问,把现场的weblogic日志拿回来,显示如下:
<Unable to create a server socket for...
分类:
编程语言 时间:
2014-08-13 18:45:57
阅读次数:
259
Insertion Sort is a simple sorting technique which was covered in previous challenges. Sometimes, arrays may be too large for us to wait around for in...
分类:
其他好文 时间:
2014-08-12 18:13:14
阅读次数:
404
Solution:Apparently, I am too naive and I think too few. Here's the detailed solution.What is our chat server?This is something you should discuss wit...
分类:
其他好文 时间:
2014-08-12 05:53:23
阅读次数:
210
Overflow
Write a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the result of the expression is too large to be rep...
分类:
其他好文 时间:
2014-08-09 21:35:29
阅读次数:
321
在我们用WCF传输数据的时候,如果启用默认配置,传输的数据量过大,经常会出这个错误。WCF包含服务端与客户端,所以这个错误可能出现在服务端返回数据给客户端,或客户端传数据给服务端时。1.服务端返回数据给客户端报错在客户端配置文件中,主要是配置maxReceivedMessageSize ...
分类:
其他好文 时间:
2014-08-08 15:23:46
阅读次数:
202