Thursday, June 24. 2010

Jira中日期的设定(转)

Jira中修改日期需要分别修改Java和Javascript日期格式,配置文件是WEB-INF/classes/jira-application.properties,配置项及格式如下:

# jira.date.picker.java.format = d/MMM/yy #修改js中的日期格式
jira.date.picker.java.format = yyyy/MM/dd
# jira.date.picker.javascript.format = %e/%b/%y #修改js中的日期格式
jira.date.picker.javascript.format = %Y/%e/%d



date 命令可以用来显示和设置系统的日期和时间。其后可以带表示显示数据格式的参数,这些参数可以让你灵活的显示当前的时间格式:
%a:星期中每日名字的缩写
%A:星期中每日名字的全拼
%b:月份名的缩写
%B:月份名的全拼
%c:针对具体国家的日期和时间格式
%d:月中的某天,取值为01-31
%D:以格式%m%d%y表示的日期
%e:月中的某天,取值为1-31
%h:月份名的缩写(%b的别名)
%H:小时,取值为00-23
%I:小时,取值为01-12
%j:一年中的某天,取值为001-366
%m:一年中的某月,取值为01-12
%M:分钟,取值为00-59
%n:插入一个换行符
%p:包含午前或午后指示符的字符串(默认值为AM或PM)
%r:时间,格式为%I:%M:%S:%p
%R:时间,格式为%H:%M
%S:秒,取值为00-59
%t:插入一个制表符
%T:时间,格式为%H:%M:%S
%U:一年中的某星期(星期天为每星期的第一天),取值为00-53
%w:一年中的某天,星期天用0表示
%W:一年中的某星期(星期一为每星期的第一天),取值为00-53
%x:针对具体国家的日期格式
%X:针对具体国家的时间格式
%y:一个世纪中的某年,取值为0-99
%Y:年,其格式为ccyy(4个数字)
%Z:时区名

for example: #date '+DATE:%m/%d/%y%nTIME:%H:%M:%S'

显示为:DATE:05/17/04
TIME:09:32:02
Monday, March 29. 2010

SVN的钩子用起来太简单了

在repository目录下有一个hook目录,里面创建以事件名称为名的脚本文件即可,例如post-commit,pre-commit等。svn会向该脚本传递一些参数,具体信息可以参照各个事件钩子的模板文件。

我利用post-commit事件触发了一个更新changelog的脚本,实现了自动更新。

Saturday, September 12. 2009

高版本客户端exp导出Oracle数据报错ORA-00904及EXP-00008

Cause
This is an expected behaviour.

The version of the Export utility must be equal to the earliest version of the source or target database. Here, the source database is based on release 10.2.0.3.0 and hence the export client has to be a version 10.2.0.3.0.

An export client of a later release cannot be used for the following reasons:

The export utility is continuously accessing dictionary objects such as SYS.EXU9LOB.
Starting with release 10.2.0.4.0 we introduced additional columns such as 'IFREEPOOL'. This column is not available in 10.2.0.3.0 and hence the client cannot handle this and ORA-00904/EXP-00008 appears.

Client 10.2.0.4.0 is not supported to export from 10.2.0.3.0 database.

FIX

The version of the Export utility must be equal to the earliest version of the source or target database.

我译成中文了。想看中文点进去。
更多内容…

Wednesday, March 25. 2009

oracle连接数修改方法

1、使用sqlplus连接到数据库
sqlplus "sys@orcl as sysdba"

2、创建pfile
然后输入命令create pfile from spfile
该命令将根据数据库实例orcl的二进制配置文件(默认为SPFILEORCL.ORA)创建文本文件INITorcl.ORA
然后修改INITorcl.ORA中的processes和sessions两个配置,应该按照sessions=processes*1.1+5的规则配置,如processes若配置为100,则sessions应配置为115。

3、根据修改过的pfile创建spfile
若数据库正在运行,则无法直接覆盖正在被使用的spfile,这时候应该先将spfile保存到一个临时文件名。在sqlplus中执行
create spfile='tempspfile' from pfile;
这将创建tempspfile文件

4、停止数据库并使用临时spfile替换spfile

5、启动数据库,完成。

配置文件位于$ORACLE_HOME/database目录下

Monday, December 1. 2008

synonym的作用主要是什么?


create a synonym eliminates the need to qualify the object name with the schema.
建立一个同义词可以排除一个对象名字的限制
如果你的数据库有多个用户,USER_A要访问USER_B的TABLE1,只能使用USER_B.TABLE1
建一个同义词abc指向USER_B.TABLE1,那你就可以select * from abc了,而且public的同义词会直接出现在所有用户的面前,开发不就方便多了
Indeed it's more convenient. But it comes with performance penalty. Steve Adams had a newsletter on his site www.ixora.com.au demonstrating this adverse effect.

In a nutshell, private synonyms are OK to use if you really want to. Avoid public synonyms whenever you can.

Yong Huang
(Page 1 of 4, totalling 17 entries) » next page

Categories

All categories

Calendar

« 2010 年 September »
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Archives

Quicksearch

友情链接

Syndicate This Blog

XML RSS 1.0 feed
XML RSS 2.0 feed

Blog Administration

Open login screen

访问统计

Locations of visitors to this page
The articles in this sites are copyrighted, except those marked as reshipped
MII Record: 05029638