- Oracle异常汇总
S等价交换S
ORA-00000toORA-00877ORA-00000:正常的成功的完成(操作)ORA-00000:normal,successfulcompletion原因1:正常执行完成。【部分验证】Normalexit.分析:此异常多数为程序没有执行SQL语句或者说成功执行完SQL语句,但人为或因逻辑有误,非要使用相关方法程序去获取Oracle的错误信息,得到此异常,实质是Oracle告知没有异常产生,
- 210313:clob类型的问题-异常信息处理-将Date日期类型转为自定义字符串-前端传来时间动态调度执行任务
弹钢琴的崽崽
一.clob类型的问题Oracle异常处理——ORA-01502:索引或这类索引的分区处于不可用状态上述问题出现的原因是我做了如下操作:把原本varchar类型的列,强行改成clob类型,直接改会报错,先把该列都置为null,改成long类型,就能改成clob类型;导致插入的时候报上述错误,只能把该表的数据保存,删除表,重新建表才解决了问题。那么如何能够不删除表的情况下把varchar类型修改为c
- Cause: java.sql.SQLTimeoutException: ORA-01013: 用户请求取消当前的操作
蚰蜒螟
java开发语言
##oracle异常排查###Cause:java.sql.SQLTimeoutException:ORA-01013:用户请求取消当前的操作;ORA-01013:用户请求取消当前的操作;nestedexceptionisjava.sql.SQLTimeoutException:ORA-01013:用户请求取消当前的操作原因:sql语句操作超时了,优化sql慢查询语句###Cause:java.s
- oracle异常:ORA-01144: 文件大小 (5242880 块) 超出 4194303 块的最大数的错误
System.out.print
oracle数据库
在对oracle数据库表空间进行扩容时报错可能扩容的大小>文件可设置最大值问题出现:1、查询表空间存储文件所在的位置:XXXX为表空间名字selecta.tablespace_name,total,free,total-freeused,a.file_namefrom(selecttablespace_name,sum(bytes)/1024/1024total,file_namefromdba_
- oracle异常:ORA-03297:文件包含在请求的 RESIZE 值以外使用的数据
System.out.print
oracle数据库
出现这个问题,主要是在对表空间扩容的时候,扩容的大小<实际数据文件大小1、扩容的语句alterdatabasedatafile'D:\APP\ADMINISTRATOR\ORADATA\ORCL\USER.DBF'resize2G;2、若何确定扩容大小是否比实际文件大根据路径找到文件,查看属性解决:增加数据文件altertablespaceUSERadddatafile'D:\APP\ADMINI
- JPA数据源Oracle异常记录
org0610
oracle数据库javaspring
代码执行异常ObjectOptimisticLockingFailureExceptionorg.springframework.orm.ObjectOptimisticLockingFailureException:Batchupdatereturnedunexpectedrowcountfromupdate[0];actualrowcount:0;expected:1;nestedexcept
- 2018-08-31-Oracle学习第五天
BALE_11
1、--异常处理(了解)--也就是,当发现有异常出现,则捕获提示。--预定义的Oracle异常,有异常名,有错误代码,有异常信息。--非预定义的Oracle异常,有错误代码,有异常信息,但是没有异常名字。--在实际开发中,我们的异常处理,一般情况下都是需要使用Java代码方式来处理。--因为我们学习的Java语言是面向对象的--Oracle数据库其实是一个关系型数据库,如果要操作的话,太麻烦了。-
- 总结:整理 oracle异常错误处理 .
悠悠倾我心
数据库oracle异常
5.1异常处理概念5.1.1预定义的异常处理5.1.2非预定义的异常处理5.1.3用户自定义的异常处理5.1.4用户定义的异常处理5.2异常错误传播5.2.1在执行部分引发异常错误5.2.2在声明部分引发异常错误5.3异常错误处理编程5.4在PL/SQL中使用SQLCODE,SQLERRM异常处理函数即使是写得最好的PL/SQL程序也会遇到错误或未预料到的事件。一个优秀的程序都应该能够正确处理各种
- Oracle错误处理机制
修行者 坚守者
oracle
Oracle异常处理概念5.1异常处理概念5.1.1预定义的异常处理5.1.2非预定义的异常处理5.1.3用户自定义的异常处理5.1.4用户定义的异常处理5.2异常错误传播5.2.1在执行部分引发异常错误5.2.2在声明部分引发异常错误5.3异常错误处理编程5.4在PL/SQL中使用SQLCODE,SQLERRM异常处理函数即使是写得最好的PL/SQL程序也会遇到错误或未预料到的事件。一个优秀的程
- oracle异常原因汇总
ooooo博ooooo
oracle数据库
1.ORA-01722:invalidnumber原因:(1)where后的条件比较两个值类型不一致一个为varchar一个为number,在连接查询编写连接条件时需要主要所比较的字段类型需要一致(2)函数参数不对sql查询结果拼接concat(ch1,ch2)只能拼接两个字符串如需要拼接多个可以进行嵌套函数2.ORA-00918:未明确定义列异常原因:select【表名】.*与嵌套的sql语句中
- Oracle异常date format picture ends before converting entire input string ora-01830oracle
movie__movie
oralce
Oracle利用to_date格式化日期然后进行比较的时候出现了这个异常to_date()格式化日期必须必须必须保证传入的字符串和要转换的格式精确匹配。前面若含有时分秒格式化的时候也必须含有。例如to_date(‘2015-12-1212:12:12’,'yyyy/mm/ddhh24:mi:ss')。
- Oracle异常
依恋_d554
只会处理抛出上面的异常/*createtypeemp_typeasobject(namevarchar2(10),salnumber(6,3));*/declarev_empemp_type;begin--v_emp:=emp_type('',0);v_emp.name:='dfd';exceptionwhenaccess_into_nullthendbms_output.put_line('请先
- oracle异常错误处理
Able张
Oracle
一、概述异常分成三大类:预定义异常、非预定义异常、自定义异常处理方法分为:直接抛出异常、内部块处理异常、游标处理异常预定义异常:由PL/SQL定义的异常。由于它们已在standard包中预定义了,因此,这些预定义异常可以直接在程序中使用,而不必再定义部分声明。非预定义异常:用于处理预定义异常所不能处理的Oracle错误。自定义异常:用户自定义的异常,需要在定义部分声明后才能在可执行部分使用。用户自
- 总结:整理 oracle异常错误处理
天蝎承载梦想
oracle开发oracle异常处理
5.1异常处理概念5.1.1预定义的异常处理5.1.2非预定义的异常处理5.1.3用户自定义的异常处理5.1.4用户定义的异常处理5.2异常错误传播5.2.1在执行部分引发异常错误5.2.2在声明部分引发异常错误5.3异常错误处理编程5.4在PL/SQL中使用SQLCODE,SQLERRM异常处理函数即使是写得最好的PL/SQL程序也会遇到错误或未预料到的事件。一个优秀的程序都应该能够正确处理各种
- oracle异常日志在哪,Oracle 11g 中告警日志的位置
半夏256
oracle异常日志在哪
首先介绍2个新名词AutomaticDiagnosticRepository(ADR)一个存放数据库诊断日志、跟踪文件的目录,称作ADRbase,对应初始化参数DIAGNOSTIC_DEST,如果设置了ORACLE_BASE环境变量,DIAGNOSTIC_DEST等于ORACLE_BASE,如果没有设置ORACLE_BASE,则等与ORACLE_HOME/log。SQL>showparameter
- JAVA代理读取oracle异常
penglf
SERVER维护oraclejavasessionprocessingjvmserver
DOMINO系统管理真是不好当啊,好像必须十八般武艺都具备了才有可能游刃有余。今天一个工程师写了支JAVA代理更新数据到orcle数据库,一启动HTTP任务就OVER了,执行语句如下:2006-12-2009:59:57HTTPJVM:oracle.jdbc.driver.OracleDriver2006-12-2009:59:57HTTPJVM:edu2006-12-2009:59:57HTTP
- Oracle报错:ORA-01034 或者 ORA-27101 终极解决办法(图文)
血煞长虹
#数据库-OracleJava编程开发数据库oraclesql
前言当我们的Oracle异常关闭或者其他情况,导致当我们用Plsql登录数据库时报以下错误:ORA-01034:ORACLEnotavailableORA-27101:sharedmemoryrealmdoesnotexist解决办法(以Oracle9i为例)1、开始菜单-->Oracle-OraHome90-->EnterpriseManagerConsole-->选择“独立启动”-->确定此时
- Java缓缓连接Oracle,对方向你吐了块红色
littlejava_
java面试开发语言
前言在线音乐戳我呀!音乐博客源码上线啦!前几篇讲了Docker的安装部署,操作算是比较简单的。(入门级)最近Oracle异常崩溃(原因不详,排查之后会跟朋友们说哦),导致Java程序被牵连,但今天的主题不是Oracle,而是Java。接下来将分享Java连接Oracle报错,一五一十盘出。Areyouready?欢迎来到我瑶族大部落~Java连接Oraclejava连接oracle失败部署到Doc
- 04 ORA系列:ORA-00984 列在此处不允许 SQL parse error location
Java仗剑走天涯
OracleORACLE
如果希望对常见的Oracle异常ORA报错解决方案有系统的了解,请看《ORACLE系列异常总结ORA》。createtablet_user(fidvarchar2(44)primarykey,unamevarchar2(50)notnull,upasswordvarchar2(50),uagenumber(2,0),uemailvarchar2(50));1.字符串使用双引号insertintot
- [异常解决]java.sql.SQLException: ORA-00947: not enough values
v墨竹v
异常解决
Oracle异常:向数据库插入数据时,抛出“java.sql.SQLException:ORA-00947:notenoughvalues”异常异常原因:修改了某表,增加了一个字段,然后相关代码忘记修改,导致异常一般insert语句省略了values前面的字段名,然后再新增字段后不修改代码就会导致此类问题
- Oracle异常ORA-00907:missing right parenthesis一种情况的解决(模糊查询)
Yuhang_Z
数据库
写Oracle的SQL语句时报了异常ORA-00907:missingrightparenthesis,缺失右侧括号,我的sql语句如下。检查后并没有发现括号缺失,最后问题解决,是模糊查询这里出的问题,模糊查询处改为如下这种形式,问题解决。like'%'||#{crmCustomerInfo}||'%'
- oracle异常处理00103 loop异常继续循环 异常处理选点
iteye_15526
loop循环希望异常处理后继续,异常处理选点很重要。CREATEORREPLACEPROCEDUREP_G_ZTE_CELL_SUM41(V_BEGININVARCHAR,V_ENDINVARCHAR)ASV_EXISTINT;V_TIME_BEGINDATE:=TO_DATE(V_BEGIN,'YYYY-MM-DDHH24');V_TIME_ENDDATE:=TO_DATE(V_END,'YYY
- oracle 异常关闭造成 -重启服务仍无法正常连接 -windows处理
jun10408
oracle数据恢复oracle
问题描述本地oracle用的好好地,突然之间发现无法连接了,并报TNS:无法连接到监听服务器...错误。问题起因本地oracle异常关闭,电脑异常关机,同时最近个人更新了域密码(IT公司都有自己的域网络,上过班的人都知道)。一添加windows用户入ORA_DBA用户组进入cmd,使用sqlplunolog,(enter),使用sys/passwordassysdba,(enter),提示显示OR
- Oracle异常处理—ORA-12514:监听程序当前无法识别连接描述符中请求的服务
我和1988
DataBase
iLife's博客http://blog.csdn.net/fei1502816最近几天刚学习oracle11g,安装完成之后直接使用,今天用PLSQL链接突然报错,报错代码为:ORA-12514:监听程序当前无法识别连接描述符中请求的服务。网上查了这种异常的解决办法,特在此记录。出现该问题一般有两种情况。第一种是在你安装完之后未配置监听(在此我暂时忘记安装完之后有没有配置监听);第二种是之前配置
- Oracle Error Handling(Oracle 异常处理)
桑汤奈伊伏
Oracle学习之路oracleExceptionOracle异常处理ErrorHandlingPLSQL
今天被企业导师要求在之前编写的存储过程中加入异常处理的语句,以增强代码的健壮性.研究了下Oracle11g官方文档,再做一个简单的实践就解决了.还是写个博客理理思路,毕竟好记性不如烂笔头.由于篇幅和时间关系,这里只结合部分实例对Oracle的异常处理做一个大概的介绍,想要完全完整学习Oracle异常处理请自行参阅Oracle11g官方文档.如果只是想快速上手异常处理,不想看概念,请直接查看本文实例
- 总结:整理 oracle异常错误处理
lhy2199
5.1异常处理概念5.1.1预定义的异常处理5.1.2非预定义的异常处理5.1.3用户自定义的异常处理5.1.4用户定义的异常处理5.2异常错误传播5.2.1在执行部分引发异常错误5.2.2在声明部分引发异常错误5.3异常错误处理编程5.4在PL/SQL中使用SQLCODE,SQLERRM异常处理函数即使是写得最好的PL/SQL程序也会遇到错误或未预料到的事件。一个优秀的程序都应该能够正确处理各种
- Oracle异常处理
神秘的凯
总结:整理oracle异常错误处理.2013-08-0718:00:48分类:Oracle5.1异常处理概念5.1.1预定义的异常处理5.1.2非预定义的异常处理5.1.3用户自定义的异常处理5.1.4用户定义的异常处理5.2异常错误传播5.2.1在执行部分引发异常错误5.2.2在声明部分引发异常错误5.3异常错误处理编程5.4在PL/SQL中使用SQLCODE,SQLERRM异常处理函数即使是写
- Oracle异常ORA-01502: 索引或这类索引的分区处于不可用状态
coupiaoze1188
原因:出现这个问题,可能有人move过表,或者disable过索引。1.altertablexxxxxxmovetablespacexxxxxxx命令后,索引就会失效。2.alterindexindex_nameunusable,命令使索引失效。解决办法:1.重建索引才是解决这类问题的完全的方法。alterindexindex_namerebuild(online);或者:alterindexin
- Oracle异常错误处理
风神修罗使
Oracle数据库
一、ORACLE提供异常情况(EXCEPTION)和异常处理(EXCEPTIONHANDLER)来实现错误处理。1.异常处理的概念。异常情况处理(EXCEPTION)是用来处理正常执行过程中未预料的事件,程序块的异常处理预定义的错误和自定义错误,由于PL/SQL程序块一旦产生异常而没有指出如何处理时,程序就会自动终止整个程序运行.2.异常处理的类型。预定义(Predefined)错误:ORACLE
- ORACLE 索引的三种状态: VALID、 N/A 、UNUSABLE
huayang183
ORACLE
valid:当前索引有效N/A:分区索引有效unusable:索引失效Oracle异常ORA-01502:索引或这类索引的分区处于不可用状态原因:出现这个问题,可能有人move过表,或者disable过索引。1.altertablexxxxxxmovetablespacexxxxxxx命令后,索引就会失效。2.alterindexindex_nameunusable,命令使索引失效。解决办法:1.
- 深入浅出Java Annotation(元注解和自定义注解)
Josh_Persistence
Java Annotation元注解自定义注解
一、基本概述
Annontation是Java5开始引入的新特征。中文名称一般叫注解。它提供了一种安全的类似注释的机制,用来将任何的信息或元数据(metadata)与程序元素(类、方法、成员变量等)进行关联。
更通俗的意思是为程序的元素(类、方法、成员变量)加上更直观更明了的说明,这些说明信息是与程序的业务逻辑无关,并且是供指定的工具或
- mysql优化特定类型的查询
annan211
java工作mysql
本节所介绍的查询优化的技巧都是和特定版本相关的,所以对于未来mysql的版本未必适用。
1 优化count查询
对于count这个函数的网上的大部分资料都是错误的或者是理解的都是一知半解的。在做优化之前我们先来看看
真正的count()函数的作用到底是什么。
count()是一个特殊的函数,有两种非常不同的作用,他可以统计某个列值的数量,也可以统计行数。
在统
- MAC下安装多版本JDK和切换几种方式
棋子chessman
jdk
环境:
MAC AIR,OS X 10.10,64位
历史:
过去 Mac 上的 Java 都是由 Apple 自己提供,只支持到 Java 6,并且OS X 10.7 开始系统并不自带(而是可选安装)(原自带的是1.6)。
后来 Apple 加入 OpenJDK 继续支持 Java 6,而 Java 7 将由 Oracle 负责提供。
在终端中输入jav
- javaScript (1)
Array_06
JavaScriptjava浏览器
JavaScript
1、运算符
运算符就是完成操作的一系列符号,它有七类: 赋值运算符(=,+=,-=,*=,/=,%=,<<=,>>=,|=,&=)、算术运算符(+,-,*,/,++,--,%)、比较运算符(>,<,<=,>=,==,===,!=,!==)、逻辑运算符(||,&&,!)、条件运算(?:)、位
- 国内顶级代码分享网站
袁潇含
javajdkoracle.netPHP
现在国内很多开源网站感觉都是为了利益而做的
当然利益是肯定的,否则谁也不会免费的去做网站
&
- Elasticsearch、MongoDB和Hadoop比较
随意而生
mongodbhadoop搜索引擎
IT界在过去几年中出现了一个有趣的现象。很多新的技术出现并立即拥抱了“大数据”。稍微老一点的技术也会将大数据添进自己的特性,避免落大部队太远,我们看到了不同技术之间的边际的模糊化。假如你有诸如Elasticsearch或者Solr这样的搜索引擎,它们存储着JSON文档,MongoDB存着JSON文档,或者一堆JSON文档存放在一个Hadoop集群的HDFS中。你可以使用这三种配
- mac os 系统科研软件总结
张亚雄
mac os
1.1 Microsoft Office for Mac 2011
大客户版,自行搜索。
1.2 Latex (MacTex):
系统环境:https://tug.org/mactex/
&nb
- Maven实战(四)生命周期
AdyZhang
maven
1. 三套生命周期 Maven拥有三套相互独立的生命周期,它们分别为clean,default和site。 每个生命周期包含一些阶段,这些阶段是有顺序的,并且后面的阶段依赖于前面的阶段,用户和Maven最直接的交互方式就是调用这些生命周期阶段。 以clean生命周期为例,它包含的阶段有pre-clean, clean 和 post
- Linux下Jenkins迁移
aijuans
Jenkins
1. 将Jenkins程序目录copy过去 源程序在/export/data/tomcatRoot/ofctest-jenkins.jd.com下面 tar -cvzf jenkins.tar.gz ofctest-jenkins.jd.com &
- request.getInputStream()只能获取一次的问题
ayaoxinchao
requestInputstream
问题:在使用HTTP协议实现应用间接口通信时,服务端读取客户端请求过来的数据,会用到request.getInputStream(),第一次读取的时候可以读取到数据,但是接下来的读取操作都读取不到数据
原因: 1. 一个InputStream对象在被读取完成后,将无法被再次读取,始终返回-1; 2. InputStream并没有实现reset方法(可以重
- 数据库SQL优化大总结之 百万级数据库优化方案
BigBird2012
SQL优化
网上关于SQL优化的教程很多,但是比较杂乱。近日有空整理了一下,写出来跟大家分享一下,其中有错误和不足的地方,还请大家纠正补充。
这篇文章我花费了大量的时间查找资料、修改、排版,希望大家阅读之后,感觉好的话推荐给更多的人,让更多的人看到、纠正以及补充。
1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。
2.应尽量避免在 where
- jsonObject的使用
bijian1013
javajson
在项目中难免会用java处理json格式的数据,因此封装了一个JSONUtil工具类。
JSONUtil.java
package com.bijian.json.study;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
- [Zookeeper学习笔记之六]Zookeeper源代码分析之Zookeeper.WatchRegistration
bit1129
zookeeper
Zookeeper类是Zookeeper提供给用户访问Zookeeper service的主要API,它包含了如下几个内部类
首先分析它的内部类,从WatchRegistration开始,为指定的znode path注册一个Watcher,
/**
* Register a watcher for a particular p
- 【Scala十三】Scala核心七:部分应用函数
bit1129
scala
何为部分应用函数?
Partially applied function: A function that’s used in an expression and that misses some of its arguments.For instance, if function f has type Int => Int => Int, then f and f(1) are p
- Tomcat Error listenerStart 终极大法
ronin47
tomcat
Tomcat报的错太含糊了,什么错都没报出来,只提示了Error listenerStart。为了调试,我们要获得更详细的日志。可以在WEB-INF/classes目录下新建一个文件叫logging.properties,内容如下
Java代码
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHa
- 不用加减符号实现加减法
BrokenDreams
实现
今天有群友发了一个问题,要求不用加减符号(包括负号)来实现加减法。
分析一下,先看最简单的情况,假设1+1,按二进制算的话结果是10,可以看到从右往左的第一位变为0,第二位由于进位变为1。
 
- 读《研磨设计模式》-代码笔记-状态模式-State
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
/*
当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类
状态模式主要解决的是当控制一个对象状态的条件表达式过于复杂时的情况
把状态的判断逻辑转移到表示不同状态的一系列类中,可以把复杂的判断逻辑简化
如果在
- CUDA程序block和thread超出硬件允许值时的异常
cherishLC
CUDA
调用CUDA的核函数时指定block 和 thread大小,该大小可以是dim3类型的(三维数组),只用一维时可以是usigned int型的。
以下程序验证了当block或thread大小超出硬件允许值时会产生异常!!!GPU根本不会执行运算!!!
所以验证结果的正确性很重要!!!
在VS中创建CUDA项目会有一个模板,里面有更详细的状态验证。
以下程序在K5000GPU上跑的。
- 诡异的超长时间GC问题定位
chenchao051
jvmcmsGChbaseswap
HBase的GC策略采用PawNew+CMS, 这是大众化的配置,ParNew经常会出现停顿时间特别长的情况,有时候甚至长到令人发指的地步,例如请看如下日志:
2012-10-17T05:54:54.293+0800: 739594.224: [GC 739606.508: [ParNew: 996800K->110720K(996800K), 178.8826900 secs] 3700
- maven环境快速搭建
daizj
安装mavne环境配置
一 下载maven
安装maven之前,要先安装jdk及配置JAVA_HOME环境变量。这个安装和配置java环境不用多说。
maven下载地址:http://maven.apache.org/download.html,目前最新的是这个apache-maven-3.2.5-bin.zip,然后解压在任意位置,最好地址中不要带中文字符,这个做java 的都知道,地址中出现中文会出现很多
- PHP网站安全,避免PHP网站受到攻击的方法
dcj3sjt126com
PHP
对于PHP网站安全主要存在这样几种攻击方式:1、命令注入(Command Injection)2、eval注入(Eval Injection)3、客户端脚本攻击(Script Insertion)4、跨网站脚本攻击(Cross Site Scripting, XSS)5、SQL注入攻击(SQL injection)6、跨网站请求伪造攻击(Cross Site Request Forgerie
- yii中给CGridView设置默认的排序根据时间倒序的方法
dcj3sjt126com
GridView
public function searchWithRelated() {
$criteria = new CDbCriteria;
$criteria->together = true; //without th
- Java集合对象和数组对象的转换
dyy_gusi
java集合
在开发中,我们经常需要将集合对象(List,Set)转换为数组对象,或者将数组对象转换为集合对象。Java提供了相互转换的工具,但是我们使用的时候需要注意,不能乱用滥用。
1、数组对象转换为集合对象
最暴力的方式是new一个集合对象,然后遍历数组,依次将数组中的元素放入到新的集合中,但是这样做显然过
- nginx同一主机部署多个应用
geeksun
nginx
近日有一需求,需要在一台主机上用nginx部署2个php应用,分别是wordpress和wiki,探索了半天,终于部署好了,下面把过程记录下来。
1. 在nginx下创建vhosts目录,用以放置vhost文件。
mkdir vhosts
2. 修改nginx.conf的配置, 在http节点增加下面内容设置,用来包含vhosts里的配置文件
#
- ubuntu添加admin权限的用户账号
hongtoushizi
ubuntuuseradd
ubuntu创建账号的方式通常用到两种:useradd 和adduser . 本人尝试了useradd方法,步骤如下:
1:useradd
使用useradd时,如果后面不加任何参数的话,如:sudo useradd sysadm 创建出来的用户将是默认的三无用户:无home directory ,无密码,无系统shell。
顾应该如下操作:
- 第五章 常用Lua开发库2-JSON库、编码转换、字符串处理
jinnianshilongnian
nginxlua
JSON库
在进行数据传输时JSON格式目前应用广泛,因此从Lua对象与JSON字符串之间相互转换是一个非常常见的功能;目前Lua也有几个JSON库,本人用过cjson、dkjson。其中cjson的语法严格(比如unicode \u0020\u7eaf),要求符合规范否则会解析失败(如\u002),而dkjson相对宽松,当然也可以通过修改cjson的源码来完成
- Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
yaerfeng1989
timerquartz定时器
原创整理不易,转载请注明出处:Spring定时器配置的两种实现方式OpenSymphony Quartz和java Timer详解
代码下载地址:http://www.zuidaima.com/share/1772648445103104.htm
有两种流行Spring定时器配置:Java的Timer类和OpenSymphony的Quartz。
1.Java Timer定时
首先继承jav
- Linux下df与du两个命令的差别?
pda158
linux
一、df显示文件系统的使用情况,与du比較,就是更全盘化。 最经常使用的就是 df -T,显示文件系统的使用情况并显示文件系统的类型。 举比例如以下: [root@localhost ~]# df -T Filesystem Type &n
- [转]SQLite的工具类 ---- 通过反射把Cursor封装到VO对象
ctfzh
VOandroidsqlite反射Cursor
在写DAO层时,觉得从Cursor里一个一个的取出字段值再装到VO(值对象)里太麻烦了,就写了一个工具类,用到了反射,可以把查询记录的值装到对应的VO里,也可以生成该VO的List。
使用时需要注意:
考虑到Android的性能问题,VO没有使用Setter和Getter,而是直接用public的属性。
表中的字段名需要和VO的属性名一样,要是不一样就得在查询的SQL中
- 该学习笔记用到的Employee表
vipbooks
oraclesql工作
这是我在学习Oracle是用到的Employee表,在该笔记中用到的就是这张表,大家可以用它来学习和练习。
drop table Employee;
-- 员工信息表
create table Employee(
-- 员工编号
EmpNo number(3) primary key,
-- 姓