﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alex的个人Blog &#187; Oracle</title>
	<atom:link href="http://www.gemini5201314.net/category/oracle/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gemini5201314.net</link>
	<description>关注数据仓库,商业智能和八卦</description>
	<lastBuildDate>Mon, 28 Nov 2011 12:04:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>测验Oracle 的小游戏</title>
		<link>http://www.gemini5201314.net/oracle/%e6%b5%8b%e9%aa%8coracle-%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f.html</link>
		<comments>http://www.gemini5201314.net/oracle/%e6%b5%8b%e9%aa%8coracle-%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f.html#comments</comments>
		<pubDate>Fri, 03 Apr 2009 07:19:37 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/oracle/%e6%b5%8b%e9%aa%8coracle-%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f.html</guid>
		<description><![CDATA[在eddie award 站点上看到的,&#160;&#160; http://www.db-quest.com/ http://awads.net/wp/2009/03/25/play-this-game-to-find-out-if-you-are-the-smartest-database-professional-in-the-world/ &#160; 非常多的oracle ace 组织的一个游戏，测试你是不是最聪明的DBA , 目前我答的题目已经涉及到操作系统，oracle , 普通的sql 知识, pl/sql , 系统架构，我挂的很早，估计后面应该还有更专业的，比如备份，rac , dw 等等，第一次玩，第一关就挂了，完全没搞清楚怎么回事，时间限制太强了，一个题读一遍没懂，第二篇读完就没时间了，一定要非常熟（或者靠运气）, 第二次打到第四关, &#160; 你要是能进前10 就可以提一个问题，最高的那个1M , 佩服呀，关键是时间限制非常强，完全不给时间你想，神经要蹦的很紧. 目前56k 就可以进前10 ，应该还算不BT ， 最后那个小人做一个手枪的动作（上图左上方），让我想起了boston legel s4e17 最高院之战，Jerry 说I lost my cherry , 然后Allen 走出办公室的时候回了一个手枪的动作.&#160; 无限怀念呀. &#160; 各位推荐给Oracle DBA 的好友吧，如果有高分数，拿来炫耀一下，他上面有challenge a friend 选项嘛.]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/%e6%b5%8b%e9%aa%8coracle-%e7%9a%84%e5%b0%8f%e6%b8%b8%e6%88%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle OLAP 使用mv 刷新Cube</title>
		<link>http://www.gemini5201314.net/oracle/oracle-olap-%e4%bd%bf%e7%94%a8mv-%e5%88%b7%e6%96%b0cube.html</link>
		<comments>http://www.gemini5201314.net/oracle/oracle-olap-%e4%bd%bf%e7%94%a8mv-%e5%88%b7%e6%96%b0cube.html#comments</comments>
		<pubDate>Sat, 07 Mar 2009 08:18:16 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[OLAP]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[mv]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/?p=1148</guid>
		<description><![CDATA[在上一篇文章中介绍了oracle 11g 中的部分olap 新功能，这篇介绍如何使用mv 刷新cube 的数据. 默认的如果你创建了一个cube ,cube 里面的数据只有在你手工执行 dbms_cube.build(‘&#60;cube_name&#62;’) 才会刷新. &#160; 比如你在前面已经建立好了global 的price_cube , 并且执行了第一次dbms_cube.build(‘price_cube’) 你才能查询到数据. 比如执行以下sql: select * from table(cube_table(&#8216;price_cube&#8217;)) where product=&#8217;ITEM_ENVY STD&#8217;&#160; and time=&#8217;MONTH_1998.01&#8242;; 此时输出如下 (注意大小写，下划线和空格): unit_cost&#160;&#160;&#160; unit_price&#160;&#160;&#160; time&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; product 3346.85&#160;&#160;&#160;&#160; 3480.92&#160;&#160;&#160;&#160;&#160;&#160; MONTH_1998.01&#160;&#160;&#160;&#160; ITEM_ENVY STD 现在我们手工更新price_fact 表的这条数据（price_cube 的实际数据来源）, update price_fact set unit_price=9999 where month_id=1998.01 and item_id=&#8217;ENVY STD&#8217;; 1 rows updated 现在重新查看price_cube 的数据，你会发现跟刚才的一样, [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/oracle-olap-%e4%bd%bf%e7%94%a8mv-%e5%88%b7%e6%96%b0cube.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 11g OLAP 新功能简介</title>
		<link>http://www.gemini5201314.net/oracle/oracle-11g-olap-%e6%96%b0%e5%8a%9f%e8%83%bd%e7%ae%80%e4%bb%8b.html</link>
		<comments>http://www.gemini5201314.net/oracle/oracle-11g-olap-%e6%96%b0%e5%8a%9f%e8%83%bd%e7%ae%80%e4%bb%8b.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 06:03:00 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[OLAP]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[awm]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/?p=1142</guid>
		<description><![CDATA[oracle 11g 在数据仓库方面也有不少新功能，尤其是新的多维数据集组织的cube (也就是常说的MOLAP). 在开始本文之前，建议先查看otn 上关于介绍oracle 11g 新功能的data warehouse 部分，由oracle ace 总监Arup Nanda 写的， 目前otn 的中文站点已经有翻译版的, 地址如下: http://www.oracle.com/technology/global/cn/pub/articles/oracle-database-11g-top-features/11g-dw-olap.html?_template=/ocom/print 这篇文章主要介绍上面这篇文章中的一些实验和没有覆盖到的地方. (记住一定先看上面这篇文章) &#160; 导入数据 首先从http://www.oracle.com/technology/products/bi/olap/doc_sample_schemas/global_11g_schema.zip 下载它的示例数据， 之后使用一个具有DBA 权限的用户建立global 用户，用户名一定要是global (除非你修改里面的一些脚本), 执行 SQL&#38;gt; @global_11g_install 它会要求你输入system 的密码和你希望global 用户的密码 之后就会导入global schema . 一共8个表，默认应该是成功并且没有警告的. 不要执行第二个脚本 global_11g_create_cubes.sql, 虽然它global_11g_readme.html 说明里说要执行第二个脚本，但这个脚本有问题，会失败. 执行了也没关系. 使用AWM 伴随oracle 11g 发布的还有一个AWM (Analysis Workspace Manager) 工具，版本为11.1.0.7 ,&#160; 这是个JAVA 工具，需要JDK 5.0 [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/oracle-11g-olap-%e6%96%b0%e5%8a%9f%e8%83%bd%e7%ae%80%e4%bb%8b.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dynamic sampling 和 multi-column statistics</title>
		<link>http://www.gemini5201314.net/oracle/dynamic-sampling-%e5%92%8c-multi-column-statistics.html</link>
		<comments>http://www.gemini5201314.net/oracle/dynamic-sampling-%e5%92%8c-multi-column-statistics.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 09:11:52 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[oracle optimise 11g hints]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/?p=274</guid>
		<description><![CDATA[oracle 在11g 中引入了新的multi-column statistics 以解决在多个列上过滤数据出现的无法预测潜在的数据分布而产生错误的执行计划的情况, 在11g 之前如果想比较准确的预测多个列上数据过滤的sql 执行计划是否够好可以使用hints /*+ dynamic_sampling(table_name integer)*/ , 比如一个人的出生月份可以是1-12月任意一个,而他可能的星座也可能是12星座的任意一个,如果问一个人出生于12月又是双鱼的可能性是多少, 数学概率上就应该是1/12*1/12 = 1/144 , 但是双鱼座要么是2月要么是三月,所以实际某个人既出生于某一个月又是某个星座的概率应该是2/12 = 1/6 , 如果让数据库知道两个列以上的这种潜在的关系就可以让数据库选择更好的执行计划. 在otn 上看到文章描写dynamic sampling 和multi-column statistics 的,所以做了以下实验. create table dynsample (c1 number,c2 number,c3 number,c4 number,c5 number,c6 number); begin &#160; for i in 1..5 loop &#160;&#160;&#160; for j in 1..10000 loop &#160;&#160;&#160;&#160;&#160; insert into dynsample [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/dynamic-sampling-%e5%92%8c-multi-column-statistics.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle 所有的hints</title>
		<link>http://www.gemini5201314.net/oracle/oracle-%e6%89%80%e6%9c%89%e7%9a%84hints.html</link>
		<comments>http://www.gemini5201314.net/oracle/oracle-%e6%89%80%e6%9c%89%e7%9a%84hints.html#comments</comments>
		<pubDate>Sun, 04 Jan 2009 06:56:49 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/?p=183</guid>
		<description><![CDATA[oracle 10g 有64个hints , 11g 增加到71 个, 下表中红色的代表已经过时的, 粗体的是11g 新增, CBO 中RULE hints 当然也不算了. Optimization Goals and Approaches (2) Access Path Hints (17) Other (20) Join Operation (7) ALL_ROWS FIRST_ROWS RULE CLUSTER FULL HASH INDEX NO_INDEX INDEX_ASC INDEX_DESC INDEX_COMBINE INDEX_JOIN INDEX_FFS INDEX_SS INDEX_SS_ASC INDEX_SS_DESC NATIVE_FULL_OUTER_JOIN NO_NATIVE_FULL_OUTER_JOIN NO_INDEX_FFS NO_INDEX_SS APPEND NOAPPEND CACHE NOCACHE CURSOR_SHARING_EXACT DRIVING_SITE DYNAMIC_SAMPLING [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/oracle-%e6%89%80%e6%9c%89%e7%9a%84hints.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Developer 的几个小技巧</title>
		<link>http://www.gemini5201314.net/oracle/sql-developer-%e7%9a%84%e5%87%a0%e4%b8%aa%e5%b0%8f%e6%8a%80%e5%b7%a7.html</link>
		<comments>http://www.gemini5201314.net/oracle/sql-developer-%e7%9a%84%e5%87%a0%e4%b8%aa%e5%b0%8f%e6%8a%80%e5%b7%a7.html#comments</comments>
		<pubDate>Sun, 04 Jan 2009 06:41:40 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/?p=181</guid>
		<description><![CDATA[录制脚本并回放 , 比较适合用于重复的工作. From the JDeveloper 10g (10.1.3) Documentation: To define accelerators for recording and playing back: 1. From the main menu, choose Tools then choose Preferences. 2. In the Preferences dialog, select the Accelerators node. 3. On the Accelerators page, in the Category list select Code Editor. 4. In the Actions list, select Macro [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/sql-developer-%e7%9a%84%e5%87%a0%e4%b8%aa%e5%b0%8f%e6%8a%80%e5%b7%a7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>oracle 分页排序的两种方式</title>
		<link>http://www.gemini5201314.net/oracle/oracle-%e5%88%86%e9%a1%b5%e6%8e%92%e5%ba%8f%e7%9a%84%e4%b8%a4%e7%a7%8d%e6%96%b9%e5%bc%8f.html</link>
		<comments>http://www.gemini5201314.net/oracle/oracle-%e5%88%86%e9%a1%b5%e6%8e%92%e5%ba%8f%e7%9a%84%e4%b8%a4%e7%a7%8d%e6%96%b9%e5%bc%8f.html#comments</comments>
		<pubDate>Mon, 22 Dec 2008 13:24:43 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.gemini5201314.net/?p=144</guid>
		<description><![CDATA[我们都知道oracle&#160; 的rownum 是一个伪列, 它会在select 之后就产生, 先于from xxx (更加不用说where xxx 和 order , group 了) , 所以如果你不排序的话,下面这种典型的oracle 分页语句是可以的: 1 2 3 4 5 SELECT * FROM &#160; &#40;SELECT t.*,rownum row_num FROM mytable t &#41; b &#160; WHERE b.row_num BETWEEN 1 AND 10 或者也可以是Hibernate 里面严格的 大于 小于格式 , 记得一定要先小于. 1 2 3 4 5 SELECT * FROM [...]]]></description>
		<wfw:commentRss>http://www.gemini5201314.net/oracle/oracle-%e5%88%86%e9%a1%b5%e6%8e%92%e5%ba%8f%e7%9a%84%e4%b8%a4%e7%a7%8d%e6%96%b9%e5%bc%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

