奔走青春,让自己无限遐想......'s profile奔走青春的日子PhotosBlogListsMore ![]() | Help |
|
|
奔走青春的日子青春是一部诰命的史书 有健壮的马匹和驼队 有长风嘶啸 ;青春推开窗 有流淌不尽的清流 恣意几曲酒醉的探戈 ;青春该有一只洞箫 去冻开白雪皑皑的梅花的骨头 ;青春解读千万种风情 而后奏唱出桃红柳绿 蜂鸣蝶咏。 5/21/2009 runstats脚本下面是thoms kyte的runstats脚本,为了便于运行先付权给user
grant select on sys.v_$timer to user1; grant select on v_$mystat to user1; grant select on sys.v_$statname to user1; grant select on sys.v_$latch to user1; 脚本:
create or replace view stats create global temporary table run_stats create or replace package runstats as g_start number; g_run1 number; g_run2 number; procedure rs_start is begin delete from run_stats; insert into run_stats select 'before', stats.* from stats; g_start := dbms_utility.get_time; end; procedure rs_middle is begin g_run1 := (dbms_utility.get_time-g_start); insert into run_stats select 'after 1', stats.* from stats; g_start := dbms_utility.get_time; end; procedure rs_stop(p_difference_threshold in number default 0) is begin g_run2 := (dbms_utility.get_time-g_start); --add a line here to avoid ora-20000 dbms_output.enable(480000); dbms_output.put_line ( 'Run1 ran in ' || g_run1 || ' hsecs' ); dbms_output.put_line ( 'Run2 ran in ' || g_run2 || ' hsecs' ); dbms_output.put_line ( 'run 1 ran in ' || round(g_run1/g_run2*100,2) || '% of the time' ); dbms_output.put_line( chr(9) ); insert into run_stats select 'after 2', stats.* from stats; dbms_output.put_line ( rpad( 'Name', 30 ) || lpad( 'Run1', 12 ) || lpad( 'Run2', 12 ) || lpad( 'Diff', 12 ) ); for x in ( select rpad( a.name, 30 ) || to_char( b.value-a.value, '999,999,999' ) || to_char( c.value-b.value, '999,999,999' ) || to_char( ( (c.value-b.value)-(b.value-a.value)), '999,999,999' ) data from run_stats a, run_stats b, run_stats c where a.name = b.name and b.name = c.name and a.runid = 'before' and b.runid = 'after 1' and c.runid = 'after 2' -- and (c.value-a.value) > 0 and abs( (c.value-b.value) - (b.value-a.value) ) > p_difference_threshold order by abs( (c.value-b.value)-(b.value-a.value)) ) loop dbms_output.put_line( x.data ); end loop; dbms_output.put_line( chr(9) ); dbms_output.put_line ( 'Run1 latches total versus runs -- difference and pct' ); dbms_output.put_line ( lpad( 'Run1', 12 ) || lpad( 'Run2', 12 ) || lpad( 'Diff', 12 ) || lpad( 'Pct', 10 ) ); for x in ( select to_char( run1, '999,999,999' ) || to_char( run2, '999,999,999' ) || to_char( diff, '999,999,999' ) || to_char( round( run1/run2*100,2 ), '99,999.99' ) || '%' data from ( select sum(b.value-a.value) run1, sum(c.value-b.value) run2, sum( (c.value-b.value)-(b.value-a.value)) diff from run_stats a, run_stats b, run_stats c where a.name = b.name and b.name = c.name and a.runid = 'before' and b.runid = 'after 1' and c.runid = 'after 2' and a.name like 'LATCH%' ) ) loop dbms_output.put_line( x.data ); end loop; end; end; / 12/4/2007 相思意 卜算子
——李之仪 我住长江头, 君住长江尾。 日日思君不见君, 共饮长江水。 此水几时休,
此恨何时已。 只愿君心似我心, 不负相思意。 冬季总是让人憔悴,看着大风刮过卷起我无数的忧愁。
有一首邓丽君唱的曲子《相思意》,细细听是宋代李之仪的《卜算子》, 摘录下来。,“我住江之头,君住江之尾”,这天涯相隔距离是那样的遥远, 然而时空是阻隔不了思念,朝也盼来暮也思,浓浓的相思跃然纸上,唯有眼前长江水, 也只能从“共饮长江水”中得到慰藉。思念是如此的深。 朝朝代代有无数的悲欢离合,直到今日我们也如此。为了工作生存我们必须外出拼搏, 虽然有电话可是还是不能团聚。每当我在厦门走出飞机的那刻都是那么的激动,家的感觉油然而生。 不知我的朋友们,你们是否在正在挂念着你的另一半呢? 这里的“此水几时休, 此恨何时已”也是一样的痴情,但另人感叹的是, 诗歌哀而不伤用长江水把彼此的思念连接在一起,斗转星移,不会改变。 经历了许多的人生际遇,现在再读它,再看世的变幻悲欢,难免也感叹啊。 11/27/2007 又一年冬季 又是一年的冬季,天变凉了。
厦门的天开始刮风,人都穿上厚衣服。
已经习惯了饭后到花园散步,今天突然意识到已经是冬季了。
回想一下往年的冬季我都在干什么?
中学时候忙读书,冬季印象最深的是运动会,那时候我是多么的瘦阿,哈哈。
大学时候忙恋爱,冬季日子都是被浓浓的爱情滋味所包围。
工作时候忙事业,冬季的日子基本是在北京度过,印象最多的就是熬夜奋战突击问题。
今年,工作以后第一次在厦门过,突然感觉不到冬季的存在。今天晚霞很美,火一样的热情。
但愿这个冬季能给我不一样的感受。也祝愿我所有的朋友们一切都好。 11/19/2007 时光小记 从桂林回来一直想找时间把一些好看的照片放上来,可惜马上就被项目给占有了,今天好不容易抽出空间,竟然发现照片在存储卡里面,只好传了几张。桂林好山好水好歌,游玩四天,流连忘返。一晃有快过去1月了,新项目给我很多机会和挑战,也逐步使我有了一些对人对事的看法,项目估计要忙到年后三月,争取有时间多思考。天一下变凉了许多,本还有对深秋的惆怅瞬间变成了过冬的准备,想想也是,多愁善感何不比直来面对来的复杂,生活的压力下,还是不要愁了:) |
|
|||
|
|