<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[newb921的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/newb921</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; newb921]]></copyright><item><title><![CDATA[oracle重建索引]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/25309379</link><guid>https://blog.youkuaiyun.com/newb921/article/details/25309379</guid><author>newb921</author><pubDate>Thu, 08 May 2014 15:27:47 +0800</pubDate><description><![CDATA[oracle重建索引
 (2011-08-12 16:48:16)
转载▼






标签： 

杂谈


分类： oracle






一：考虑重建索引的场合
1：表上频繁发生update,delete操作
2：表上发生了alter table ..move操作（move操作导致了rowid变化）


二：判断重建索引的标准
  索引重]]></description><category></category></item><item><title><![CDATA[深入理解重建索引]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/25308313</link><guid>https://blog.youkuaiyun.com/newb921/article/details/25308313</guid><author>newb921</author><pubDate>Thu, 08 May 2014 15:09:11 +0800</pubDate><description><![CDATA[深入理解重建索引(原创)






什么时候需要重建索引 


索引在普遍意义上能够给数据库带来带来提升，但索引的额外开销也是不容小视的，而索引的重建也是维护索引的重要工作之一。 经过维护的索引可带来以下好处：
1、CBO对于索引的使用可能会产生一个较小的成本值，从而在执行计划中选择使用索引。
2、使用索引扫描的查询扫描的物理索引块会减少，从而提高效率。
3、于需要缓存]]></description><category></category></item><item><title><![CDATA[SQL Server 批量插入数据的两种方法]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/22814103</link><guid>https://blog.youkuaiyun.com/newb921/article/details/22814103</guid><author>newb921</author><pubDate>Wed, 02 Apr 2014 17:42:19 +0800</pubDate><description><![CDATA[在SQL Server 中插入一条数据使用Insert语句，但是如果想要批量插入一堆数据的话，循环使用Insert不仅效率低，而且会导致SQL一系统性能问题。下面介绍SQL Server支持的两种批量数据插入方法：Bulk和表值参数(Table-Valued Parameters)。

运行下面的脚本，建立测试数据库和表值参数。





[c-sharp] view
 plai]]></description><category></category></item><item><title><![CDATA[解读awr报告]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/21975943</link><guid>https://blog.youkuaiyun.com/newb921/article/details/21975943</guid><author>newb921</author><pubDate>Mon, 24 Mar 2014 17:52:20 +0800</pubDate><description><![CDATA[﻿﻿
第一次看到awr报告，里面包含很多东西，完全不知道从哪里看起也不知道各项指标都是什么含义，从头到尾看了一遍，啥也没有看到，看了后面忘了前面的，花费一天的时间去熟悉它，在网上查资料对着报告一项项的熟悉了一遍





DB Name


DB Id


Instance


Inst num


Startup Time


Release

]]></description><category></category></item><item><title><![CDATA[感慨一下吵架]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/7311703</link><guid>https://blog.youkuaiyun.com/newb921/article/details/7311703</guid><author>newb921</author><pubDate>Fri, 02 Mar 2012 11:53:30 +0800</pubDate><description><![CDATA[昨天，又跟我那亲爱的老公吵架了，原因是，我买的菜太多了（我是想吃火锅不能太单一，事实证明我买的不是很多，吃的只剩下一种没吃光），调料也太多了（大瓶麻酱，大瓶豆腐乳，大瓶老陈醋），老公的意思是，就吃一顿小火锅，完全可以买一个调合好的火锅调料吗，必须承认，当时脑子短路，只是习惯自已调料了。
我是一下了班，欢天喜地的去买食材，一见了老公的面呢，特别高兴，没走几步路，老公就生气了，就开始数落我，就特生气]]></description><category></category></item><item><title><![CDATA[MySQL调优脚本tuning-primer.sh使用说明]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/7311696</link><guid>https://blog.youkuaiyun.com/newb921/article/details/7311696</guid><author>newb921</author><pubDate>Fri, 02 Mar 2012 11:36:41 +0800</pubDate><description><![CDATA[脚本支持my.cnf文件，可以把user, password, host, socket等连接参数放在~/.my.cnf文件里，如果使用了自定义的socket文件，请修改tuning-primer.sh文件中关于socket文件位置的变量。
运行 tuning-primer.sh显示说明




SLOW QUERIES

慢查询检查



SLOW QUERIESThe]]></description><category></category></item><item><title><![CDATA[MYSQL 字符集问题]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/7241514</link><guid>https://blog.youkuaiyun.com/newb921/article/details/7241514</guid><author>newb921</author><pubDate>Wed, 08 Feb 2012 10:24:12 +0800</pubDate><description><![CDATA[前一段时间，一直被mysql的字符集困扰，今天就这方面的知识总结一下.MySQL的字符集支持(Character Set Support)有两个方面：     字符集(Character set)和排序方式(Collation)。对于字符集的支持细化到四个层次:      服务器(server)，数据库(database)，数据表(table)和连接(connection)。1.MySQL默认字符]]></description><category></category></item><item><title><![CDATA[MySQL 字符串函数：字符串截取]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5842624</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5842624</guid><author>newb921</author><pubDate>Fri, 27 Aug 2010 09:50:00 +0800</pubDate><description><![CDATA[<br /> MySQL 字符串函数：字符串截取<br />[作/译者]：鹏城万里    [日期]：2008-09-19    [来源]：本站原创    [查看]: 5857 <br />【鹏城万里】 发表于 www.sqlstudy.comMySQL 字符串函数：字符串截取 <br />MySQL 字符串截取函数：left(), right(), substring(), substring_index()。还有 mid(), substr()。其中，mid(), substr() 等价于 substri]]></description><category></category></item><item><title><![CDATA[Bi Publisher -rtf文档中文字替换的用法－replace]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5816155</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5816155</guid><author>newb921</author><pubDate>Mon, 16 Aug 2010 17:07:00 +0800</pubDate><description><![CDATA[<br />将文档中部分文字替换为其它文字，在变量的域里，用replace就可以。<br /> <br /><?xdofx:replace(costright,'秀水宾馆','123')?><br /> <br />原文：山青水秀－秀水宾馆<br />替换后：山青水秀－123]]></description><category></category></item><item><title><![CDATA[儿子20岁的时候，我在干什么]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5804810</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5804810</guid><author>newb921</author><pubDate>Wed, 11 Aug 2010 17:21:00 +0800</pubDate><description><![CDATA[<br />有时候自己在想，孩子20了，我那时候在做什么呢？还像现在一样上班吗？老的快要不会动了，儿子上大学，不知道能不能给儿子帮忙了，儿子结婚，生孩子，能不能帮儿子看孩子还。现在儿子是姥姥在看<br /> <br />整体想过之后，觉得还是早结婚早生宝宝好，那样不耽误孩子长大，呵呵！！！<br /> <br /> ]]></description><category></category></item><item><title><![CDATA[BI publisher- 在超链接里引入变量]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5799458</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5799458</guid><author>newb921</author><pubDate>Mon, 09 Aug 2010 17:35:00 +0800</pubDate><description><![CDATA[<br />在超链接里引入变量<br /><?xdoxslt:current_date('ja-JP', 'Asia/Tokyo')?><br />结果：2010-08-09<br /><?xdoxslt:current_date('zh-CN', 'Asia/Shanghai')?><br />这是中国上海时区<br /><br />我们要在一个超级链接里传送这个日期变量，当前系统日期<br /><br /><?variable:gurDate;xdoxslt:current_date('zh-CN', ]]></description><category></category></item><item><title><![CDATA[bi publish图表，x轴y轴加说明（单位）－－chart]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5793291</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5793291</guid><author>newb921</author><pubDate>Fri, 06 Aug 2010 14:50:00 +0800</pubDate><description><![CDATA[bi publish图表，x轴y轴加说明（单位）－－chart
rtf 图表，chart设置图片格式]]></description><category></category></item><item><title><![CDATA[Running Totals--在RTF文档中，声明变量进行计算]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5785316</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5785316</guid><author>newb921</author><pubDate>Tue, 03 Aug 2010 15:16:00 +0800</pubDate><description><![CDATA[Running Totals--在RTF文档中，声明变量进行计算，将各种变量在文档中进行计算]]></description><category></category></item><item><title><![CDATA[If-then-Else Statements－－RTF文档]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5783223</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5783223</guid><author>newb921</author><pubDate>Mon, 02 Aug 2010 17:16:00 +0800</pubDate><description><![CDATA[帮助原文是这样写的：BI Publisher supports the common programming construct "if-then-else". This is extremely useful when you need to test a condition and conditionally show a result. For example:IF X=0 THEN
 Y=2
ELSE
 Y=3
END IFYou can also nest these statements]]></description><category></category></item><item><title><![CDATA[Choose Statements－－这个命令可对报表的每行进行选择性编辑]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5783157</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5783157</guid><author>newb921</author><pubDate>Mon, 02 Aug 2010 16:59:00 +0800</pubDate><description><![CDATA[Choose Statements－－这个命令可对报表的每行进行选择性编辑]]></description><category></category></item><item><title><![CDATA[宝宝去上幼儿园]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5646453</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5646453</guid><author>newb921</author><pubDate>Fri, 04 Jun 2010 08:56:00 +0800</pubDate><description><![CDATA[我家宝宝16个月就开始送去幼儿园
开始几天，还很高兴的去幼儿园，
谁知过了没几天，就不想去了，
一走到幼儿园附近就不想往前走，
哭哭闹闹，真叫人心疼，
姥姥一直在送与不送之间选择，
半个月后，还是选择继续送，
现在又交了一个月的费用，
就在昨天，宝宝生病了，有点发烧，
医生说是因为嗓子发炎引起的，
嗓子发炎，可能就是每天哭引起的，
哎，现在又开始在送与不送之间选择了，
不知]]></description><category></category></item><item><title><![CDATA[mysql 小技巧，字符集，环境变量]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5639246</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5639246</guid><author>newb921</author><pubDate>Tue, 01 Jun 2010 13:46:00 +0800</pubDate><description><![CDATA[<br />一、MySql，用cmd命令提示行连接数据库，发现查询数据库中的中文出现乱码，而数据库里面存的是utf8，都是正确的<br /> <br />于是上网搜索一下，<br />找到相关设置方法如下。<br /> <br />1、MySQL是有一些环境变量可以设置，<br />可输入：show variables;可查看当前的环境变量设置；<br /> <br />2、这些变量当中有一部分与字符相关的设置，<br />可输入：show variables like ´character%´;查看；<b]]></description><category></category></item><item><title><![CDATA[mysql 语法]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5280514</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5280514</guid><author>newb921</author><pubDate>Tue, 02 Feb 2010 14:15:00 +0800</pubDate><description><![CDATA[Transact_SQL小手册 *******************Transact_SQL********************--语 句                                功 能--数据操作SELECT      --从数据库表中检索数据行和列INSERT      --向数据库表添加新数据行DELETE      --从数据库表中删除数据行UPDATE]]></description><category></category></item><item><title><![CDATA[mysql 函数]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5280502</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5280502</guid><author>newb921</author><pubDate>Tue, 02 Feb 2010 14:12:00 +0800</pubDate><description><![CDATA[***function(/*常用函数*/)***----统计函数----AVG    --求平均值COUNT   --统计数目MAX    --求最大值MIN    --求最小值SUM    --求和--AVGuse panguselect avg(e_wage) as dept_avgWagefrom employeegroup by dept_id--MAX--求工资最高的员工姓名]]></description><category></category></item><item><title><![CDATA[解决mysql“Access denied for user]]></title><link>https://blog.youkuaiyun.com/newb921/article/details/5182502</link><guid>https://blog.youkuaiyun.com/newb921/article/details/5182502</guid><author>newb921</author><pubDate>Tue, 12 Jan 2010 18:18:00 +0800</pubDate><description><![CDATA[解决mysql“Access denied for user 我的系统是ubuntu6.06，最近新装好的mysql在进入mysql工具时，总是有错误提示:# mysql -uroot -pEnter password:ERROR 1045 (28000): Access denied for user root@localhost (using password: NO)使用网上]]></description><category></category></item></channel></rss>