<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>newhappy的专栏 - 数据库</title><link>http://blog.csdn.net/newhappy2008/category/380916.aspx</link><description>Oracle数据库相关资料</description><dc:language>zh-CN</dc:language><lastUpdateTime>Tue, 22 Apr 2008 20:04:06 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>newhappy</dc:creator><title>ORA-04031错误分析和解决 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316058.aspx</link><pubDate>Tue, 22 Apr 2008 20:04:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316058.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316058.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316058.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316058.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316058</trackback:ping><description>ORA-04031错误分析和解决 

查询v$shared_pool_reserved视图可以判断共享池问题的引发原因：




SQL&gt;select FREE_SPACE,AVG_FREE_SIZE,USED_SPACE,AVG_USED_SIZE,REQUEST_FAILURES,LAST_FAILURE_SIZE from v$shared_pool_reserved;


FREE_SPACE AVG_FREE_SIZE USED_SPACE AVG_USED_SIZE REQUEST_FAILURES LAST_FAILURE_SIZE

---------- ------------- ---------- ------------- ---------------- -----------------
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316058.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>索引的选择性</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316056.aspx</link><pubDate>Tue, 22 Apr 2008 20:02:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316056.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316056.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316056.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316056.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316056</trackback:ping><description>索引的选择性是指索引列中不同值的数目与表中记录数的比。如果一个表中有2000条记
录，表索引列有1980个不同的值，那么这个索引的选择性就是1980/2000=0.99。&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316056.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>oracle中用户连接相关</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316052.aspx</link><pubDate>Tue, 22 Apr 2008 19:59:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316052.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316052.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316052.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316052.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316052</trackback:ping><description>查看用户连接

断掉某一连接

查看连接ip
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316052.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>使用Java实现在SQLserver中实现图片的存储</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316050.aspx</link><pubDate>Tue, 22 Apr 2008 19:58:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316050.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316050.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316050.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316050.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316050</trackback:ping><description>使用Java实现在SQLserver中实现图片的存储&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316050.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>FIRST_ROWS优化模式语言排序模糊匹配问题 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316044.aspx</link><pubDate>Tue, 22 Apr 2008 19:57:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316044.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316044.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316044.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316044.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316044</trackback:ping><description>标题比较长，不过只有这样才能把问题描述清楚。

问题详细描述为，在FIRST_ROWS优化模式下，将会话排序和比较方式设置为语义模式，即忽略大小写模式，对字段进行LIKE模糊查询，可能导致错误的结果。
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316044.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>在Oracle中进行大小写不敏感的查询 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316038.aspx</link><pubDate>Tue, 22 Apr 2008 19:55:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316038.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316038.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316038.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316038.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316038</trackback:ping><description>在Oracle中，命令和对象名称都是大小写不敏感的，因为Oracle在处理语句时，将所有的名称和命令全部转化为大写。

但是对于字符串中的字符，无论是比较还是排序，都是大小写敏感的。这在Oracle是默认方式，但不是唯一的方式。

&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316038.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>安装SQLSERVER2000时出现以前的某个程序安装已在安装计算机上创建挂起的文件操作 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316028.aspx</link><pubDate>Tue, 22 Apr 2008 19:52:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316028.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316028.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316028.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316028.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316028</trackback:ping><description>安装SQLSERVER2000时出现以前的某个程序安装已在安装计算机上创建挂起的文件操作 

以前装过sql server，后来删掉。现在重装，却出现“以前的某个程序安装已在安装计算机上创建挂起的文件操作。运行安装程序之前必须重新启动计算机”错误。无法进行下去。 参考网上资料，总算搞定。
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316028.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>一次NBU备份错误诊断</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316022.aspx</link><pubDate>Tue, 22 Apr 2008 19:50:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316022.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2316022.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/22/2316022.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2316022.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2316022</trackback:ping><description>在对系统进行例行检查的时候，发现日常备份失败。

&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2316022.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>MySQL主从复制中关于AUTO_INCREMENT的奇怪问题 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313242.aspx</link><pubDate>Mon, 21 Apr 2008 21:58:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313242.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313242.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313242.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313242.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313242</trackback:ping><description>昨天修改一个表的字段，发现主从复制同步失效了，但同步进程没有出错，mysql日志也没有出错，仔细查找了一下原因，发现是新增的自增主键字段的起始值在主从库上不一致，导致按主键更新数据时无法在从库找到对应记录。事情经过如下：

表table1（主库为innodb类型，从库为MyISAM类型），有一自增主键pid，现将pid改成非自增，非主键，另外增加一自增主键。
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313242.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>使用SQL_TRACE进行数据库诊断</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313237.aspx</link><pubDate>Mon, 21 Apr 2008 21:57:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313237.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313237.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313237.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313237.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313237</trackback:ping><description>SQL_TRACE是Oracle提供的用于进行SQL跟踪的手段，是强有力的辅助诊断工具.在日常的数据库问题诊断和解决中，SQL_TRACE是非常常用的方法。
本文就SQL_TRACE的使用作简单探讨，并通过具体案例对sql_trace的使用进行说明.&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313237.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>数据仓库开发难点有哪些？</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313234.aspx</link><pubDate>Mon, 21 Apr 2008 21:55:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313234.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313234.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313234.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313234.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313234</trackback:ping><description>数据仓库开发难点有哪些？
最近有朋友在问，数据仓库开发的难点有哪些？

做了几年的数据仓库，谈数据仓库技术难点，我个人觉得没有，什么大数据量查询及处理，数据仓库ETL过程，这些都不是难点，
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313234.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>一次数据库的简单性能优化</title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313175.aspx</link><pubDate>Mon, 21 Apr 2008 21:34:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313175.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313175.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313175.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313175.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313175</trackback:ping><description>一次数据库的简单性能优化:
增加INDEX表空间,增大在线归档日志组文件,增大在物理内存允许范围内sag_target,增大log_buffer


=========================================================
1、建立专用Index表空间
=========================================================
CREATE TABLESPACE INDX DATAFILE 
'/home/oracle/oracle/product/10.2.0/oradata/gdimp/INDEX.dbf' SIZE 5120M AUTOEXTEND OFF
LOGGING
ONLINE
PERMANENT
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313175.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>物化视图comlete刷新会产生大量的日志 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313166.aspx</link><pubDate>Mon, 21 Apr 2008 21:31:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313166.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313166.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313166.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313166.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313166</trackback:ping><description>我这几天每隔5分钟去完全刷新一下物化视图,竟然发现每3个小时就产生3G的归档日志,搞得我得经常去删除日志,后改成快速刷新后,日志大大减少! &lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313166.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>ORA-12052,不能建立快速刷新物化视图的解决 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313144.aspx</link><pubDate>Mon, 21 Apr 2008 21:26:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313144.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313144.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313144.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313144.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313144</trackback:ping><description>ORA-12052,不能建立快速刷新物化视图的解决 

SQL&gt; CREATE MATERIALIZED VIEW mv_vcard_last_hlrlist refresh fast as
select vcard.username,
vcard.nick_name,vcard.pcode,hlrlist.region,
vcard.birth_year, vcard.icon, vcard.descr, last.state,
vcard.HLR_CITY, vcard.BIRTH_MONTH, vcard.BIRTH_DAY
&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313144.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>newhappy</dc:creator><title>Windows操作系统kill Oracle线程的实施方案 </title><link>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313137.aspx</link><pubDate>Mon, 21 Apr 2008 21:23:00 GMT</pubDate><guid>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313137.aspx</guid><wfw:comment>http://blog.csdn.net/newhappy2008/comments/2313137.aspx</wfw:comment><comments>http://blog.csdn.net/newhappy2008/archive/2008/04/21/2313137.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/newhappy2008/comments/commentRss/2313137.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313137</trackback:ping><description>实施步骤：

1. 更改init参数resource_limit为TRUE;重新启动数据库；

2. 更改用户概要文件profile的“空闲连接时间”；

3. 在数据库中查询session状态是“SNIPE”的，通过操作系统orakill命令清除；

4.定义windows执行计划，执行kill_session_sql.bat脚本。

&lt;img src ="http://blog.csdn.net/newhappy2008/aggbug/2313137.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>