﻿<?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-重明鸟-随笔分类-Database</title><link>http://www.blogjava.net/allen-zhe/category/24756.html</link><description>&lt;script src="http://www.clocklink.com/embed.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" language="JavaScript"&gt;obj=new Object;obj.clockfile="5010-black.swf";obj.TimeZone="China_Beijing";obj.width=222;obj.height=66;obj.wmode="transparent";showClock(obj);&lt;/script&gt;

</description><language>zh-cn</language><lastBuildDate>Mon, 26 Jul 2010 08:35:28 GMT</lastBuildDate><pubDate>Mon, 26 Jul 2010 08:35:28 GMT</pubDate><ttl>60</ttl><item><title>SQL Server数据库性能优化之索引篇</title><link>http://www.blogjava.net/allen-zhe/archive/2010/07/23/326966.html</link><dc:creator>小立飞刀</dc:creator><author>小立飞刀</author><pubDate>Fri, 23 Jul 2010 09:45:00 GMT</pubDate><guid>http://www.blogjava.net/allen-zhe/archive/2010/07/23/326966.html</guid><wfw:comment>http://www.blogjava.net/allen-zhe/comments/326966.html</wfw:comment><comments>http://www.blogjava.net/allen-zhe/archive/2010/07/23/326966.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/allen-zhe/comments/commentRss/326966.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/allen-zhe/services/trackbacks/326966.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 近期项目需要，做了一段时间的SQL Server性能优化，遇到了一些问题，也积累了一些经验，现总结一下，与君共享。SQL Server性能优化涉及到许多方面，如良好的系统和数据库设计，优质的SQL编写，合适的数据表索引设计，甚至各种硬件因素：网络性能、服务器的性能、操作系统的性能，甚至网卡、交换机等。这篇文章主要讲到如何改善索引，还将有另一篇讨论如何改善SQL语句。&nbsp;&nbsp;<a href='http://www.blogjava.net/allen-zhe/archive/2010/07/23/326966.html'>阅读全文</a><img src ="http://www.blogjava.net/allen-zhe/aggbug/326966.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/allen-zhe/" target="_blank">小立飞刀</a> 2010-07-23 17:45 <a href="http://www.blogjava.net/allen-zhe/archive/2010/07/23/326966.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SQL Server数据库性能优化之SQL语句篇</title><link>http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.html</link><dc:creator>小立飞刀</dc:creator><author>小立飞刀</author><pubDate>Fri, 23 Jul 2010 05:27:00 GMT</pubDate><guid>http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.html</guid><wfw:comment>http://www.blogjava.net/allen-zhe/comments/326927.html</wfw:comment><comments>http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/allen-zhe/comments/commentRss/326927.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/allen-zhe/services/trackbacks/326927.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 近期项目需要，做了一段时间的SQL Server性能优化，遇到了一些问题，也积累了一些经验，现总结一下，与君共享。SQL Server性能优化涉及到许多方面，如良好的系统和数据库设计，优质的SQL编写，合适的数据表索引设计，甚至各种硬件因素：网络性能、服务器的性能、操作系统的性能，甚至网卡、交换机等。这篇文章主要讲到如何改善SQL语句，还将有另一篇讨论如何改善索引。&nbsp;&nbsp;<a href='http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.html'>阅读全文</a><img src ="http://www.blogjava.net/allen-zhe/aggbug/326927.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/allen-zhe/" target="_blank">小立飞刀</a> 2010-07-23 13:27 <a href="http://www.blogjava.net/allen-zhe/archive/2010/07/23/326927.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>又見“ORA-01461: 仅可以为插入 LONG 列的 LONG 值赋值”！</title><link>http://www.blogjava.net/allen-zhe/archive/2008/05/06/198627.html</link><dc:creator>小立飞刀</dc:creator><author>小立飞刀</author><pubDate>Tue, 06 May 2008 02:30:00 GMT</pubDate><guid>http://www.blogjava.net/allen-zhe/archive/2008/05/06/198627.html</guid><wfw:comment>http://www.blogjava.net/allen-zhe/comments/198627.html</wfw:comment><comments>http://www.blogjava.net/allen-zhe/archive/2008/05/06/198627.html#Feedback</comments><slash:comments>4</slash:comments><wfw:commentRss>http://www.blogjava.net/allen-zhe/comments/commentRss/198627.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/allen-zhe/services/trackbacks/198627.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Keywords: Spring LOB<br>当我对Oracle数据库中的CLOB字段进入insert或update操作的时候，后台出现 java.sql.SQLException:   ORA-01461: 仅可以为插入 LONG 列的 LONG 值赋值。这个错误的特點是，当插入的数据长度小於1000字節或者大於2000字節時都不會報錯，一旦插入的数据长度在1000 ~ 2000之間時就會報錯。經過google一番之後，ORA-01461錯誤是一個經典問題了，有人認為是CLOB字段本身的問題，有人認為更換驅動即可解決這個問題。事實真的如此嗎？這裡給出了詳細的解決方法。&nbsp;&nbsp;<a href='http://www.blogjava.net/allen-zhe/archive/2008/05/06/198627.html'>阅读全文</a><img src ="http://www.blogjava.net/allen-zhe/aggbug/198627.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/allen-zhe/" target="_blank">小立飞刀</a> 2008-05-06 10:30 <a href="http://www.blogjava.net/allen-zhe/archive/2008/05/06/198627.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>怎样去除Oracle数据库中字段的回车换行符</title><link>http://www.blogjava.net/allen-zhe/archive/2007/08/22/138670.html</link><dc:creator>小立飞刀</dc:creator><author>小立飞刀</author><pubDate>Wed, 22 Aug 2007 09:57:00 GMT</pubDate><guid>http://www.blogjava.net/allen-zhe/archive/2007/08/22/138670.html</guid><wfw:comment>http://www.blogjava.net/allen-zhe/comments/138670.html</wfw:comment><comments>http://www.blogjava.net/allen-zhe/archive/2007/08/22/138670.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.blogjava.net/allen-zhe/comments/commentRss/138670.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/allen-zhe/services/trackbacks/138670.html</trackback:ping><description><![CDATA[
		<strong>问题：</strong>怎样去除Oracle数据库中字段的回车换行符和空格符，以便在前台显示？<br /><br /><strong>解决办法：</strong><br /><br />·通过SQL（治本）<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #0000ff">update</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">table</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">set</span><span style="COLOR: #000000"> fa</span><span style="COLOR: #808080">=</span><span style="COLOR: #ff00ff">replace</span><span style="COLOR: #000000">(fa,chr(</span><span style="FONT-WEIGHT: bold; COLOR: #800000">13</span><span style="COLOR: #000000">),</span><span style="COLOR: #ff0000">''</span><span style="COLOR: #000000">) ; </span><span style="COLOR: #008080">--</span><span style="COLOR: #008080">- 除去回车符</span><span style="COLOR: #008080"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span><span style="COLOR: #0000ff">update</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">table</span><span style="COLOR: #000000"> </span><span style="COLOR: #0000ff">set</span><span style="COLOR: #000000"> fa</span><span style="COLOR: #808080">=</span><span style="COLOR: #ff00ff">replace</span><span style="COLOR: #000000">(fa,</span><span style="COLOR: #ff0000">'</span><span style="COLOR: #ff0000"> </span><span style="COLOR: #ff0000">'</span><span style="COLOR: #000000">,</span><span style="COLOR: #ff0000">''</span><span style="COLOR: #000000">) ; </span><span style="COLOR: #008080">--</span><span style="COLOR: #008080">- 除去空格符</span><span style="COLOR: #008080"><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span></div><br />·通过代码（治标）<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /><span style="COLOR: #000000">fixedString </span><span style="COLOR: #000000">=</span><span style="COLOR: #000000"> string.replaceAll(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">\n</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">).replaceAll(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">chr(13)</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">).replaceAll(</span><span style="COLOR: #000000">"</span><span style="COLOR: #000000"> </span><span style="COLOR: #000000">"</span><span style="COLOR: #000000">, </span><span style="COLOR: #000000">""</span><span style="COLOR: #000000">);</span></div><br /><br />                                                                                      <font color="#a52a2a"><strong>THE END</strong></font><br /><img src ="http://www.blogjava.net/allen-zhe/aggbug/138670.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/allen-zhe/" target="_blank">小立飞刀</a> 2007-08-22 17:57 <a href="http://www.blogjava.net/allen-zhe/archive/2007/08/22/138670.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>当遇到“数据大小超出此类型的最大值”和“仅可以为插入 LONG 列的 LONG 值赋值”时...</title><link>http://www.blogjava.net/allen-zhe/archive/2007/08/09/135472.html</link><dc:creator>小立飞刀</dc:creator><author>小立飞刀</author><pubDate>Thu, 09 Aug 2007 05:50:00 GMT</pubDate><guid>http://www.blogjava.net/allen-zhe/archive/2007/08/09/135472.html</guid><wfw:comment>http://www.blogjava.net/allen-zhe/comments/135472.html</wfw:comment><comments>http://www.blogjava.net/allen-zhe/archive/2007/08/09/135472.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/allen-zhe/comments/commentRss/135472.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/allen-zhe/services/trackbacks/135472.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: “ORA-01461: 仅可以为插入 LONG 列的 LONG 值赋值”<br>和<br>“java.sql.SQLException: 数据大小超出此类型的最大值: ...”&nbsp;&nbsp;<a href='http://www.blogjava.net/allen-zhe/archive/2007/08/09/135472.html'>阅读全文</a><img src ="http://www.blogjava.net/allen-zhe/aggbug/135472.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/allen-zhe/" target="_blank">小立飞刀</a> 2007-08-09 13:50 <a href="http://www.blogjava.net/allen-zhe/archive/2007/08/09/135472.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>当遇到areasQueries无法装载（Oracle）的错误时...</title><link>http://www.blogjava.net/allen-zhe/archive/2007/08/09/135467.html</link><dc:creator>小立飞刀</dc:creator><author>小立飞刀</author><pubDate>Thu, 09 Aug 2007 05:30:00 GMT</pubDate><guid>http://www.blogjava.net/allen-zhe/archive/2007/08/09/135467.html</guid><wfw:comment>http://www.blogjava.net/allen-zhe/comments/135467.html</wfw:comment><comments>http://www.blogjava.net/allen-zhe/archive/2007/08/09/135467.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/allen-zhe/comments/commentRss/135467.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/allen-zhe/services/trackbacks/135467.html</trackback:ping><description><![CDATA[    安装Oracle 9i时遇到了这个areasQueries无法装载的错误，这个时候一定不要慌（当时在给客户装DB，出了一头的汗 -_-!!），百度一下就知道了，是<strong>Oracle的安装目录中带有中文字符造成的</strong>！<br />    解决的办法很简单，<strong>去掉安装路径里的中文</strong>！<br />    所以，以后一定要注意安装oracle时，<strong>源程序的路径一定不要有中文</strong>。特此提醒自己和遇到同样问题的各位大虾。<br /><br /><br />                                                                                     <font color="#a52a2a"><strong>THE END</strong></font><img src ="http://www.blogjava.net/allen-zhe/aggbug/135467.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/allen-zhe/" target="_blank">小立飞刀</a> 2007-08-09 13:30 <a href="http://www.blogjava.net/allen-zhe/archive/2007/08/09/135467.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>