??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品无码久久一区二区,国产成人亚洲毛片,亚洲精品国产国语http://www.tkk7.com/icewee/category/49013.htmlThere is nothing too difficult if you put your heart into it.zh-cnTue, 01 Apr 2014 04:16:31 GMTTue, 01 Apr 2014 04:16:31 GMT60ORA-01438: value larger than specified precision allowed for this column & Could not synchronize database state with sessionhttp://www.tkk7.com/icewee/archive/2014/03/28/411644.htmlIceWeeIceWeeFri, 28 Mar 2014 10:54:00 GMThttp://www.tkk7.com/icewee/archive/2014/03/28/411644.htmlhttp://www.tkk7.com/icewee/comments/411644.htmlhttp://www.tkk7.com/icewee/archive/2014/03/28/411644.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/411644.htmlhttp://www.tkk7.com/icewee/services/trackbacks/411644.html有段日子没做记录了,q段日子一直在排雷Q前人埋下的隐患代码Q或者直接说bugQ,今天q个雯我排了将q大半天Q因为是正式上线的系l,只能看后台日志,不能调试Q打印出的异怿息不完整Q种U的条g不充分,D问题很难定位。标题上的两个异常,W一个一看就明白是插入的数值大于数据库字段长度Q第二个多是因ؓNumbercd的字D导_比如_ֺ不?/span>
publicstaticvoid main(String[] args) { double a =10; double b =0; double c =0; double m = a/c; double n = b/c; System.out.println(m); System.out.println(n); }
被除数非Ӟ除数为零做除法的l果是字W串“Infinity”Q翻译成中文是“无限”Q你的中学数学老师可能说过Q?br />被除CؓӞ除数为零做触发的l果是字W串“NaN”Q即不是有效的数字?br /> 是q个“Infinity”p了我一天的时间才定位。下面详q问题定位的Ҏ?br /> 异常1QORA-01438: value larger than specified precision allowed for this column 了解Ҏ据库的打g看就知道插入的数Dq了表字D长度,但你知道是哪个表哪个字段吗?我不知道Q于是网上查阅了下,Oracle数据库服务器在Linux上?br /> 命o行登陆到数据库所在服务器Q进入Oracle的安装目录,假设?opt/oracle/ q入到如下目录:/opt/oracle/admin/实例?udump 中间的数据库实例名根据实际情况修改,udump目录下会有一堆的.trc文gQ这些文件记录了所有操作当前数据库出现异常的堆栈信息。ؓ了定位问题,我将该目录下的所?trc文g都删除了Q当Ӟ删除之前把udump目录整个备䆾了)Q再q行一ơ系l的业务操作Q查看一下udump目录Q发现立ȝ成一个新 ?trc文gQ打开查看Q内容片D)Q?br />
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0- 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options ORACLE_HOME =/u01/app/oracle/product/10.2/db_1 System name: AIX Node name: gsdj1 Release:1 Version:6 Machine: 00CFD4644C00 Instance name: bjwd1 Redo thread mounted by this instance:1 Oracle process number:132 Unix process pid:48300280, image: oracle@gsdj1 *** SERVICE NAME:(bjwd) 2014-03-2816:48:05.683 *** SESSION ID:(2969.43961) 2014-03-2816:48:05.683 ***2014-03-2816:48:05.683 ksedmp: internal or fatal error ORA-01438: value larger than specified precision allowed for this column Current SQL statement for this session: insert into CP_TEMP_STOCKTRAN (APPLY_ID, ALIEN, CER_TYPE, CER_NO, TRANS_AM, TRANS_AM_PR, TRANS_TYPE, TRANS_DATE, ENDORSOR, BLIC_TYPE, ALIEN_ID, ENDORSOR_ID, STOCKTRAN_ID) values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13)
异常2Q?nbsp;Could not synchronize database state with session 之前也搜索过q个异常Q多数是׃Numbercd的字D导致。冷静的思考一下,q_我们在做表设计时Q会把文字类型的字段讄大一些,Numbercd的精度也会根据实际业务进行设计,但往往Numbercd的字D|Ҏ出问题: 1、如果将非Number值插入该字段Q比如字W串 2、如果插入的数值精度过多,如字D设计Number(10,2)Q也是最大支?为整数和两位数Q要插入34.121313׃p|
]]>Debian |络讄以及非法x后无法联|?connect: network is unreachablehttp://www.tkk7.com/icewee/archive/2014/01/24/409301.htmlIceWeeIceWeeFri, 24 Jan 2014 02:50:00 GMThttp://www.tkk7.com/icewee/archive/2014/01/24/409301.htmlhttp://www.tkk7.com/icewee/comments/409301.htmlhttp://www.tkk7.com/icewee/archive/2014/01/24/409301.html#Feedback0http://www.tkk7.com/icewee/comments/commentRss/409301.htmlhttp://www.tkk7.com/icewee/services/trackbacks/409301.html
|络配置Q?/span> 临时Q重?/span>丢失Q?/span>
ifconfig eth0 192.168.1.xxx netmask 255.255.xxx.0
怹Q重启有效)
vi /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.1.xxx netmask 255.255.xxx.0 network 192.168.1.1 broadcast 192.168.1.255 gateway 192.168.1.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 202.106.196.115
REPOS="$1" REV="$2" USER="$3" PROPNAME="$4" ACTION="$5" if [ "$ACTION" = "M" -a "$PROPNAME" = "svn:log" ]; then exit 0; fi echo "Changing revision properties other than svn:log is prohibited" >&2 exit 0
以下为文件内容: ### This file controls the configuration of the svnserve daemon, if you ### use it to allow access to this repository. (If you only allow ### access through http: and/or file: URLs, then this file is ### irrelevant.)
[general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults # 未授权配|ؓ止讉KnoneQ已授权配置为可以读写write anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. # 用户数据库文Ӟ配置授权用户Q当前用的文g是和svnserve.conf在相同目录下的passwd文gQ也可以指定其他l对路径文gQ如Q?home/svn/passwd password-db = passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file's location is relative to the the ### directory containing this file. If you don't specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. # 授权文gQ配|如同用户配|?/span> authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid. # realm = My First Repository
[sasl] ### This option specifies whether you want to use the Cyrus SASL ### library for authentication. Default is false. ### This section will be ignored if svnserve is not built with Cyrus ### SASL support; to check, run 'svnserve --version' and look for a line ### reading 'Cyrus SASL authentication is available.' # use-sasl = true ### These options specify the desired strength of the security layer ### that you want SASL to provide. 0 means no encryption, 1 means ### integrity-checking only, values larger than 1 are correlated ### to the effective key length for encryption (e.g. 128 means 128-bit ### encryption). The values below are the defaults. # min-encryption = 0 # max-encryption = 256
保存 # ctrl + o 回R
退?/span> # ctrl + x
配置用户 # nano passwd
以下为文件内容: ### This file is an example password file for svnserve. ### Its format is similar to that of svnserve.conf. As shown in the ### example below it contains one section labelled [users]. ### The name and password for each user follow, one account per line.
增加用户IceWeeQ密码也为IceWeeQ?号两侧需要有I格Q保?ctrl + o 回R)退?ctrl + x)
配置讉K权限 # nano authz
以下为文件内容: ### This file is an example authorization file for svnserve. ### Its format is identical to that of mod_authz_svn authorization ### files. ### As shown below each section defines authorizations for the path and ### (optional) repository specified by the section name. ### The authorizations follow. An authorization line can refer to: ### - a single user, ### - a group of users defined in a special [groups] section, ### - an alias defined in a special [aliases] section, ### - all authenticated users, using the '$authenticated' token, ### - only anonymous users, using the '$anonymous' token, ### - anyone, using the '*' wildcard. ### ### A match can be inverted by prefixing the rule with '~'. Rules can ### grant read ('r') access, read-write ('rw') access, or no access ### ('').
[aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
]]>Linux VNC服务安装与配|?/title>http://www.tkk7.com/icewee/archive/2013/02/22/395594.htmlIceWeeIceWeeFri, 22 Feb 2013 09:46:00 GMThttp://www.tkk7.com/icewee/archive/2013/02/22/395594.htmlhttp://www.tkk7.com/icewee/comments/395594.htmlhttp://www.tkk7.com/icewee/archive/2013/02/22/395594.html#Feedback1http://www.tkk7.com/icewee/comments/commentRss/395594.htmlhttp://www.tkk7.com/icewee/services/trackbacks/395594.html一、Redhat上VNC Server配置 本文以当前Linuxpȝ未安装VNC服务器ؓ基本Q如果已安装误q第1节!
前提Q?/strong> 1.q接C联网Q将使用yum在线安装VNC服务?/span> 2. 认 SSH 在运?/span> 1.安装 TigerVNC Server
# yum search tigervnc-server
q回大概如下内容Q?/span>
tigervnc-server.x86_64 : A TigerVNC Server tigervnc-server-applet.noarch : Java TigerVNC Viewer applet for TigerVNC Server tigervnc-server-module.x86._64 : TigerVNC Mode to Xorg ...
W一行即是我们要安装的VNS服务器,W二行是客户端,执行
# yum install tigervnc-server.x86_64
回R后会有一ơ安装确认,输入y后回车即可安装,安装完毕后返回到命o行输入光标,执行
# vncserver
会提C入验证密码,臛_6位,该密码是客户端连接时用到的?/span>
2.配置囑Ş界面 修改配置文gQ激zd形界面,执行命oQ?/span>
# vi /root/.vnc/xstartup
注释掉这?/span>
#twm & // 注释该行
末尾增加一?/span>
gnome-session & // 增加该行
保存退?/span>
3.启动VNC服务 执行命o
# /etc/init.d/vncserver start
?/span>
# service vncserver start
启动后提C:
Starting VNC server: no displays configured [FAILED]
发现有一?/span> -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT 复制它把22Ҏ8080q加该行后面保存退出!
创徏理员用?/strong>
# ./add-user.sh
What type of user do you wish to add? a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a):
回R
Enter the details of the new user to add. Realm (ManagementRealm) : //回RQ默?br />Username : // 理员用户名Q如Qadmin Password : // 理员密码,如:jboss Re-enter Password : // 重复密码