﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-因为专注，所以专业-文章分类-数据库</title><link>http://www.blogjava.net/kevinzhan/category/36031.html</link><description>我的Java Blog
&lt;script src="http://www.google-analytics.com/urchin.js" type="text/javascript"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;
_uacct = "UA-6064162-2";
urchinTracker();
&lt;/script&gt;</description><language>zh-cn</language><lastBuildDate>Thu, 25 Aug 2011 05:12:48 GMT</lastBuildDate><pubDate>Thu, 25 Aug 2011 05:12:48 GMT</pubDate><ttl>60</ttl><item><title>Win7安装oracle10g出现oui.exe has stopped working解决方法</title><link>http://www.blogjava.net/kevinzhan/articles/356761.html</link><dc:creator>kevin.zhan</dc:creator><author>kevin.zhan</author><pubDate>Thu, 18 Aug 2011 02:02:00 GMT</pubDate><guid>http://www.blogjava.net/kevinzhan/articles/356761.html</guid><wfw:comment>http://www.blogjava.net/kevinzhan/comments/356761.html</wfw:comment><comments>http://www.blogjava.net/kevinzhan/articles/356761.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kevinzhan/comments/commentRss/356761.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kevinzhan/services/trackbacks/356761.html</trackback:ping><description><![CDATA[<span style="widows: 2; text-transform: none; text-indent: 0px; font: 14px/21px verdana, 'courier new'; white-space: normal; orphans: 2; letter-spacing: normal; color: rgb(0,0,0); word-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="line-height: 23px; background-color: rgb(238,238,238); font-family: Georgia, 'Times New Roman', Times, serif; color: rgb(68,68,68)" class="Apple-style-span"><a href="http://tallbirch.net/?p=208">转载自：http://tallbirch.net/?p=208</a></span><span style="line-height: 23px; background-color: rgb(238,238,238); font-family: Georgia, 'Times New Roman', Times, serif; color: rgb(68,68,68)" class="Apple-style-span"> 
<p style="padding-bottom: 0px; text-indent: 0px; margin: 0px 0px 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px">如果你在VISTA或WIN7安装Oracle for vista时，可能会出现oui.exe has stopped working的提示。解决方法是把安装文件放到C盘根目录下就可以了。我就是这么解决问题的。</p></span><span style="line-height: 23px; background-color: rgb(238,238,238); font-family: Georgia, 'Times New Roman', Times, serif; color: rgb(68,68,68)" class="Apple-style-span">
<p style="padding-bottom: 0px; text-indent: 0px; margin: 0px 0px 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px">原文：</p></span><span style="line-height: 23px; background-color: rgb(238,238,238); font-family: Georgia, 'Times New Roman', Times, serif; color: rgb(68,68,68)" class="Apple-style-span">
<p style="padding-bottom: 0px; text-indent: 0px; margin: 0px 0px 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px">If you<span class="Apple-converted-space">&nbsp;</span>are trying to install Oracle client onto a Microsoft Vista computer, there is a possibility after executing the setup program and waiting for a few seconds you will get a pop-up window stating that oui.exe has stopped working. After a few more seconds of &#8216;trying&#8217; to figure out what&#8217;s wrong, it stops &#8212; leaving you to click ok and wonder what happened.</p>
<p style="padding-bottom: 0px; text-indent: 0px; margin: 0px 0px 15px; padding-left: 0px; padding-right: 0px; padding-top: 0px">Well, I ran across a&nbsp;<a style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; color: rgb(28,155,220); text-decoration: underline; padding-top: 0px" href="http://forums.oracle.com/forums/thread.jspa?threadID=481661&amp;tstart=-1#2130631" target="_blank">random message</a>&nbsp;(thanks oracle forum user user599812) that suggested that if you move your oracle setup folder closer to the root C:\ folder, you might solve your problem. I am here to say that we had this problem, and moving the folder to C:\ solved the problem.</p></span></span><br class="Apple-interchange-newline" /><img src ="http://www.blogjava.net/kevinzhan/aggbug/356761.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kevinzhan/" target="_blank">kevin.zhan</a> 2011-08-18 10:02 <a href="http://www.blogjava.net/kevinzhan/articles/356761.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>每个分类最新几条的SQL实现</title><link>http://www.blogjava.net/kevinzhan/articles/299334.html</link><dc:creator>kevin.zhan</dc:creator><author>kevin.zhan</author><pubDate>Thu, 22 Oct 2009 05:07:00 GMT</pubDate><guid>http://www.blogjava.net/kevinzhan/articles/299334.html</guid><wfw:comment>http://www.blogjava.net/kevinzhan/comments/299334.html</wfw:comment><comments>http://www.blogjava.net/kevinzhan/articles/299334.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kevinzhan/comments/commentRss/299334.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kevinzhan/services/trackbacks/299334.html</trackback:ping><description><![CDATA[<br />
<p>
分类统计的时候，我们经常会碰到这样的需求，每个类按照一定顺序，取几条数据，然后在一起显示。这个问题的解决方法，我们通过搜索引擎，可以找到很多种，但是不是SQL语句过于复杂，就是在数据量非常庞大的时候，性能就成了问题。<br />
</p>
<p>数据结构：</p>
<p>&#160; &#160; create table tb(</p>
<p>&#160; &#160; &#160; &#160; count int not null,</p>
<p>&#160; &#160; &#160; &#160; type varchar(32) not null</p>
<p>&#160; &#160; )</p>
<p>解决方案：</p>
<p>&#160; &#160; select count, type from (select count, type, row_number() over(partition by type order type count desc) as rowindex from tb) t where rowindex &lt;= 10&#160;</p>
<img src ="http://www.blogjava.net/kevinzhan/aggbug/299334.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kevinzhan/" target="_blank">kevin.zhan</a> 2009-10-22 13:07 <a href="http://www.blogjava.net/kevinzhan/articles/299334.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Postgre SQL日期的比较效率很低.</title><link>http://www.blogjava.net/kevinzhan/articles/254125.html</link><dc:creator>kevin.zhan</dc:creator><author>kevin.zhan</author><pubDate>Tue, 10 Feb 2009 13:09:00 GMT</pubDate><guid>http://www.blogjava.net/kevinzhan/articles/254125.html</guid><wfw:comment>http://www.blogjava.net/kevinzhan/comments/254125.html</wfw:comment><comments>http://www.blogjava.net/kevinzhan/articles/254125.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kevinzhan/comments/commentRss/254125.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kevinzhan/services/trackbacks/254125.html</trackback:ping><description><![CDATA[在Postgre SQL做了一个日期比较的性能测试.<br />
结果:在Postgre SQL 中,日期的比较所耗的时间比字符串比较所耗的时间长.<br />
<br />
<img src ="http://www.blogjava.net/kevinzhan/aggbug/254125.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kevinzhan/" target="_blank">kevin.zhan</a> 2009-02-10 21:09 <a href="http://www.blogjava.net/kevinzhan/articles/254125.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>数据库的死锁是如何产生的</title><link>http://www.blogjava.net/kevinzhan/articles/241012.html</link><dc:creator>kevin.zhan</dc:creator><author>kevin.zhan</author><pubDate>Mon, 17 Nov 2008 10:33:00 GMT</pubDate><guid>http://www.blogjava.net/kevinzhan/articles/241012.html</guid><wfw:comment>http://www.blogjava.net/kevinzhan/comments/241012.html</wfw:comment><comments>http://www.blogjava.net/kevinzhan/articles/241012.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/kevinzhan/comments/commentRss/241012.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/kevinzhan/services/trackbacks/241012.html</trackback:ping><description><![CDATA[<p>简单地说，死锁的产生是由于两个或多个线程之前有循环相关性引起的。<br />
如运行事务1的线程T1具有了table1上的排它锁，运行事务2的线程T2有table2的排它锁，并且之后T2需要获取table1的资源。但是T1已经具有了table1的排它锁，所以T2在等待。当T1在使用table1还没有释放的同时，也需要获取table2的资源，这时死锁就产生了，因为table2被T2上了排它锁。</p>
<img src ="http://www.blogjava.net/kevinzhan/aggbug/241012.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/kevinzhan/" target="_blank">kevin.zhan</a> 2008-11-17 18:33 <a href="http://www.blogjava.net/kevinzhan/articles/241012.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>