<?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>My Crusade &#187; Oracle</title>
	<atom:link href="http://www.jarodwang.cn/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jarodwang.cn</link>
	<description>For the future we believe in.</description>
	<lastBuildDate>Tue, 07 Sep 2010 05:42:38 +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>Introduction to Oracle Application Express</title>
		<link>http://www.jarodwang.cn/2009/11/14/intro-to-oracle-apex/</link>
		<comments>http://www.jarodwang.cn/2009/11/14/intro-to-oracle-apex/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 04:14:13 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[APEX]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=310</guid>
		<description><![CDATA[最近打算写一个给小组内部成员使用的 Web 应用，作为一个不太精通 Web 编程的 Oracle 员工来说，Oracle Application Express (Oracle APEX) 是一个不错的选择，而且 Oracle 自己的许多内部和外部网站也都是用它来开发的。 Oracle APEX，以前称为 HTML DB，是一个集成在 Oracle 数据库中的快速 Web 应用开发工具。“集成在 Oracle 数据库中”是 Oracle APEX 的一个非常重要的特点，它意味着只要是安装了 Oracle 数据库，那么你就拥有了使用 Oracle APEX 开发 Web 应用的充分条件（当然了，你还需要一个浏览器来作为客户端）。另外，Oracle APEX 是 Oracle 数据库的一个默认组件，那么“它的生命周期完全和数据库等同，因而可以保证时间上的投入不会很快过时。此外，对于很多非 IT 企业而言，几乎可以完全摆脱对第三方 Web 应用开发商的依赖。默认的 Theme 已经可以满足绝大部分需求，只需要少量的修改，即可媲美专业网站。不论从员工价值提升，还是企业管理成本上说，都非常有益。” 稍微了解一下 Oracle APEX 的架构就可以知道，它与 Oracle 数据库的结合之紧密。原来所有的 Web 页面都是通过 Oracle APEX 引擎读取和渲染存储在数据库表中的数据而来。而当你建立或者扩展一个应用时，Oracle [...]]]></description>
			<content:encoded><![CDATA[<p>最近打算写一个给小组内部成员使用的 Web 应用，作为一个不太精通 Web 编程的 Oracle 员工来说，<a href="http://www.oracle.com/technology/products/database/application_express/index.html" target="_blank">Oracle Application Express</a><span> </span>(Oracle APEX) 是一个不错的选择，而且 Oracle 自己的许多内部和外部网站也都是用它来开发的。</p>
<p>Oracle APEX，以前称为 HTML DB，是一个集成在 Oracle 数据库中的快速 Web 应用开发工具。“集成在 Oracle 数据库中”是 Oracle APEX 的一个非常重要的特点，它意味着只要是安装了 Oracle 数据库，那么你就拥有了使用 Oracle APEX 开发 Web 应用的充分条件（当然了，你还需要一个浏览器来作为客户端）。另外，Oracle APEX 是 Oracle 数据库的一个默认组件，那么<a href="http://www.orafans.org/archives/432" target="_blank">“<span id="expand_article_112721737">它的生命周期完全和数据库等同，因而可以保证时间上的投入不会很快过时。此外，对于很多非 IT 企业而言，几乎可以完全摆脱对第三方 Web 应用开发商的依赖。默认的 Theme 已经可以满足绝大部分需求，只需要少量的修改，即可媲美专业网站。不论从员工价值提升，还是企业管理成本上说，都非常有益。”</span></a></p>
<p><span>稍微了解一下 Oracle APEX 的架构就可以知道，它与 Oracle 数据库的结合之紧密。原来所有的 Web 页面都是通过 Oracle APEX 引擎读取和渲染存储在数据库表中的数据而来。而当你建立或者扩展一个应用时，Oracle APEX 则将建立或者修改相应的元数据到数据库表中，而当应用运行时，Oracle APEX 又将负责读取元数据和显示。令人惊讶的是，甚至连 Oracle APEX 自身也不过是由数据库中的 215+ 的表和 200+ 的 PL/SQL 对象所组成。</span></p>
<p><span>而由 Oracle APEX 的架构，我们也不难想象，为什么使用 Oracle APEX 来开发 Web 应用程序，所需的只是基本的 HTML、Javascript 和 SQL、PL/SQL 知识，由此也可见 Oracle APEX 的学习门槛是非常低的。</span></p>
<p><span>参考（英文）：</span></p>
<p><a href="http://www.oracle.com/technology/products/database/application_express/html/what_is_apex.html" target="_blank">What is Oracle Application Express?</a></p>
<p><a href="http://www.oracle.com/technology/documentation/apex.html" target="_blank">Oracle Application Express 文档</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2009/11/14/intro-to-oracle-apex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10g OCP preparation</title>
		<link>http://www.jarodwang.cn/2008/12/20/10g-ocp-preparation/</link>
		<comments>http://www.jarodwang.cn/2008/12/20/10g-ocp-preparation/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 13:57:16 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OCP]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=190</guid>
		<description><![CDATA[CONTROL_FILE_RECORD_KEEP_TIME specifies the minimum number of days before a reusable record in the control file can be reused. DB_FLASHBACK_RETENTION_TARGET specifies the upper limit (in minutes) on how far back in time the database may be flashed back. How far back one can flashback a database depends on how much flashback data Oracle has kept in [...]]]></description>
			<content:encoded><![CDATA[<p>CONTROL_FILE_RECORD_KEEP_TIME specifies the minimum number of days before a reusable record in the control file can be reused.</p>
<p>DB_FLASHBACK_RETENTION_TARGET specifies the upper limit (in minutes) on how far back in time the database may be flashed back. How far back one can flashback a database depends on how much flashback data Oracle has kept in the flash recovery area.</p>
<p>By default, the change tracking file is created as an Oracle managed file in DB_CREATE_FILE_DEST.</p>
<p>Oracle Database provides database resource management capability through its Database Resource Manager. The main goal of the Database Resource Manager is to give the Oracle Database server more control over resource management decisions, thus circumventing problems resulting from inefficient operating system management.</p>
<p>DBVERIFY is an external command-line utility that performs a physical data structure integrity check. It can be used on offline or online databases, as well on backup files. You use DBVERIFY primarily when you need to ensure that a backup database (or datafile) is valid before it is restored, or as a diagnostic aid when you have encountered data corruption problems.</p>
<p>You must have a flash recovery area enabled, because flashback logs can only be stored in the flash recovery area. For Real Application Clusters databases, the flash recovery area must be stored in a clustered file system or in ASM.</p>
<p>When flashback is enabled or when there are guaranteed restore points, the background process RVWR writes flashback data to flashback database logs in the flash recovery area.</p>
<p>Database Resource Manager (DRM) allocates resources among resource consumer groups based on a resource plan. A resource plan consists of resource plan directives that specify how resources should be distributed among the groups. Resource consumer groups are categories to which user sessions can be assigned. These groups can then be allocated resources through plan directives.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/12/20/10g-ocp-preparation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10g OCA preparation</title>
		<link>http://www.jarodwang.cn/2008/11/16/10g-oca-preparation/</link>
		<comments>http://www.jarodwang.cn/2008/11/16/10g-oca-preparation/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 07:47:53 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OCP]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=126</guid>
		<description><![CDATA[Oracle 10g supports five levels of incremental backups, from 0 to 4. An incremental backup at level 0 is considered a baseline backup; it is the equivalent of a full backup and contains all data blocks in the datafile(s) that are backed up. WITH GRANT OPTION Specify WITH GRANT OPTION to enable the grantee to [...]]]></description>
			<content:encoded><![CDATA[<p>Oracle 10g supports five levels of incremental backups, from 0 to 4. An incremental backup at level 0 is considered a baseline backup; it is the equivalent of a full backup and contains all data blocks in the datafile(s) that are backed up.</p>
<p>WITH GRANT OPTION<br />
Specify WITH GRANT OPTION to enable the grantee to grant the object privileges  to other users and roles.</p>
<p>Use the MERGE statement to select rows from one or more sources for update or insertion into a table or view. You can specify conditions to determine whether to update or insert into the target table or view.</p>
<p>An inconsistent backup, also known as an online backup, is performed while the database is open and available to users. The backup is inconsistent because the SCN in the control file is most likely out of synch with the SCN in the header of the datafiles. Inconsistent backups require recovery when they are used for recovering from a media failure, but keep availability high because the database is open while the backup is performed.</p>
<p>REMAP_SCHEMA=source_schema:target_schema</p>
<p>Loads all objects from the source schema into a target schema.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/11/16/10g-oca-preparation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>11107 Patch Set for HP-UX Itanium is released</title>
		<link>http://www.jarodwang.cn/2008/10/16/11107-patch-set-for-hp-ux-itanium-is-released/</link>
		<comments>http://www.jarodwang.cn/2008/10/16/11107-patch-set-for-hp-ux-itanium-is-released/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 06:12:50 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[HP-UX]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=118</guid>
		<description><![CDATA[As you can see from above screenshot of MetaLink, 11.1.0.7.0 Patch Set for ORACLE Database Server for HP-UX Itanium is released on 06-OCT-2008. And I&#8217;m so proud to make contribution to this release. Cheers!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jarodwang.cn/wordpress/wp-content/uploads/2008/10/11107forhpi.jpg"><img class="aligncenter size-full wp-image-119" title="11107forhpi" src="http://www.jarodwang.cn/wordpress/wp-content/uploads/2008/10/11107forhpi.jpg" alt="" width="578" height="391" /></a></p>
<p>As you can see from above screenshot of MetaLink, 11.1.0.7.0 Patch Set for ORACLE Database Server for HP-UX Itanium is released on 06-OCT-2008.</p>
<p>And I&#8217;m so proud to make contribution to this release. Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/10/16/11107-patch-set-for-hp-ux-itanium-is-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Wait Interface 2</title>
		<link>http://www.jarodwang.cn/2008/09/27/oracle-wait-interface-2/</link>
		<comments>http://www.jarodwang.cn/2008/09/27/oracle-wait-interface-2/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 06:59:36 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=112</guid>
		<description><![CDATA[V$SYSTEM_EVENT视图 V$SYSTEM_EVENT视图显示了数据库实例（instance）启动以来所有会话（session）所遇到的所有等待事件的累计统计信息（aggregated statistics）。 SQL&#62; desc v$system_event Name                                      Null?    Type &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- EVENT                                              VARCHAR2(64) TOTAL_WAITS                                  NUMBER TOTAL_TIMEOUTS                            NUMBER TIME_WAITED                                   NUMBER AVERAGE_WAIT                                 NUMBER TIME_WAITED_MICRO                       NUMBER TOTAL_WAITS_FG                              NUMBER TOTAL_TIMEOUTS_FG                        NUMBER TIME_WAITED_FG                               NUMBER AVERAGE_WAIT_FG                            NUMBER TIME_WAITED_MICRO_FG                   NUMBER EVENT_ID                                           NUMBER WAIT_CLASS_ID                                  NUMBER WAIT_CLASS#                                      NUMBER WAIT_CLASS                                       VARCHAR2(64) 其中EVENT列包含了等待事件的名称，TOTAL_WAITS列包含了会话等待该事件的次数。TIME_WAITED显示了等待该事件所花费的总时间。 V$SESSION_EVENT视图 V$SESSION_EVENT视图显示了当前连接到实例上的所有会话的等待事件的累计统计信息。 SQL&#62; desc v$session_event Name                                      Null?    Type &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; SID                                                   NUMBER EVENT                                              [...]]]></description>
			<content:encoded><![CDATA[<p>V$SYSTEM_EVENT视图</p>
<p>V$SYSTEM_EVENT视图显示了数据库实例（instance）启动以来所有会话（session）所遇到的所有等待事件的累计统计信息（aggregated statistics）。</p>
<p>SQL&gt; desc v$system_event<br />
Name                                      Null?    Type<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
EVENT                                              VARCHAR2(64)<br />
TOTAL_WAITS                                  NUMBER<br />
TOTAL_TIMEOUTS                            NUMBER<br />
TIME_WAITED                                   NUMBER<br />
AVERAGE_WAIT                                 NUMBER<br />
TIME_WAITED_MICRO                       NUMBER<br />
TOTAL_WAITS_FG                              NUMBER<br />
TOTAL_TIMEOUTS_FG                        NUMBER<br />
TIME_WAITED_FG                               NUMBER<br />
AVERAGE_WAIT_FG                            NUMBER<br />
TIME_WAITED_MICRO_FG                   NUMBER<br />
EVENT_ID                                           NUMBER<br />
WAIT_CLASS_ID                                  NUMBER<br />
WAIT_CLASS#                                      NUMBER<br />
WAIT_CLASS                                       VARCHAR2(64)</p>
<p>其中EVENT列包含了等待事件的名称，TOTAL_WAITS列包含了会话等待该事件的次数。TIME_WAITED显示了等待该事件所花费的总时间。</p>
<p>V$SESSION_EVENT视图</p>
<p>V$SESSION_EVENT视图显示了当前连接到实例上的所有会话的等待事件的累计统计信息。</p>
<p>SQL&gt; desc v$session_event<br />
Name                                      Null?    Type<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
SID                                                   NUMBER<br />
EVENT                                              VARCHAR2(64)<br />
TOTAL_WAITS                                  NUMBER<br />
TOTAL_TIMEOUTS                            NUMBER<br />
TIME_WAITED                                   NUMBER<br />
AVERAGE_WAIT                                 NUMBER<br />
MAX_WAIT                                         NUMBER<br />
TIME_WAITED_MICRO                        NUMBER<br />
EVENT_ID                                          NUMBER<br />
WAIT_CLASS_ID                                 NUMBER<br />
WAIT_CLASS#                                     NUMBER<br />
WAIT_CLASS                                      VARCHAR2(64)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/09/27/oracle-wait-interface-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Wait Interface 1</title>
		<link>http://www.jarodwang.cn/2008/09/23/oracle-wait-interface-1/</link>
		<comments>http://www.jarodwang.cn/2008/09/23/oracle-wait-interface-1/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 09:45:17 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=108</guid>
		<description><![CDATA[V$EVENT_NAME视图 V$EVENT_NAME视图并不是一个动态视图，它的内容不会随着时间的推移而变化。它是一个包含了你的数据库实例所定义的所有等待事件（wait events）的名字的参考视图。等待事件的数量随着数据库版本的不同而不同，并且也依赖于所安装的数据库选项（option）： $ sqlplus / as sysdba SQL*Plus: Release 11.1.0.6.0 &#8211; Production on Tue Sep 23 01:33:39 2008 Copyright (c) 1982, 2007, Oracle.  All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 &#8211; 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options SQL&#62; desc [...]]]></description>
			<content:encoded><![CDATA[<p>V$EVENT_NAME视图</p>
<p>V$EVENT_NAME视图并不是一个动态视图，它的内容不会随着时间的推移而变化。它是一个包含了你的数据库实例所定义的所有等待事件（wait events）的名字的参考视图。等待事件的数量随着数据库版本的不同而不同，并且也依赖于所安装的数据库选项（option）：</p>
<p>$ sqlplus / as sysdba</p>
<p>SQL*Plus: Release 11.1.0.6.0 &#8211; Production on Tue Sep 23 01:33:39 2008</p>
<p>Copyright (c) 1982, 2007, Oracle.  All rights reserved.</p>
<p>Connected to:<br />
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 &#8211; 64bit Production<br />
With the Partitioning, Real Application Clusters, OLAP, Data Mining<br />
and Real Application Testing options</p>
<p>SQL&gt; desc v$event_name<br />
Name                                      Null?    Type<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
EVENT#                                             NUMBER<br />
EVENT_ID                                          NUMBER<br />
NAME                                                VARCHAR2(64)<br />
PARAMETER1                                     VARCHAR2(64)<br />
PARAMETER2                                     VARCHAR2(64)<br />
PARAMETER3                                     VARCHAR2(64)<br />
WAIT_CLASS_ID                                 NUMBER<br />
WAIT_CLASS#                                    NUMBER<br />
WAIT_CLASS                                      VARCHAR2(64)</p>
<p>SQL&gt; select count(*) from v$event_name;</p>
<p>COUNT(*)<br />
&#8212;&#8212;&#8212;-<br />
961</p>
<p>一个简单的COUNT(*)就可以告诉你你的数据库中定义了多少个等待事件。</p>
<p>每个等待事件拥有最多3个属性（attributes），它们分别被记录在PARAMETER1，PARAMETER2和PARAMETER3列中。同时，这3列的值也将会显示在V$SESSION_WAIT视图的P1TEXT，P2TEXT和P3TEXT列中。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/09/23/oracle-wait-interface-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle OpenWorld 2008 is coming</title>
		<link>http://www.jarodwang.cn/2008/09/20/oracle-openworld-2008-is-coming/</link>
		<comments>http://www.jarodwang.cn/2008/09/20/oracle-openworld-2008-is-coming/#comments</comments>
		<pubDate>Sat, 20 Sep 2008 03:35:28 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[OpenWorld]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=105</guid>
		<description><![CDATA[Oracle OpenWorld 2008 will be held from September 21 to September 25 in San Francisco. And here is the agenda. This year, there are 4 members of our group (in OARDC Shenzhen) have the opportuinity to participate this world&#8217;s largest conference for Oracle customers and technologists. But for me, I think I have to wait [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oracle.com/openworld/2008/index.html" target="_blank">Oracle OpenWorld 2008</a> will be held from September 21 to September 25 in San Francisco. And <a href="http://www.oracle.com/openworld/2008/agenda.html" target="_blank">here</a> is the agenda.</p>
<p>This year, there are 4 members of our group (in OARDC Shenzhen) have the opportuinity to participate this world&#8217;s largest conference for Oracle customers and technologists. But for me, I think I have to wait for OpenWorld 2009 or 2010 <img src='http://www.jarodwang.cn/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/09/20/oracle-openworld-2008-is-coming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OCFS2 Installation</title>
		<link>http://www.jarodwang.cn/2008/09/07/ocfs2-installation/</link>
		<comments>http://www.jarodwang.cn/2008/09/07/ocfs2-installation/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 14:16:39 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAC]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[OCFS2]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=83</guid>
		<description><![CDATA[OCFS2 (Oracle Cluster File System 2)是由Oracle开发的通用集群文件系统，是一个以GPLv2许可发布的开放源代码项目。由于OCFS2是Cluster-aware的，所以很自然的可以作为RAC的存储的选择之一（其他的选择还有裸设备和ASM）。但是必须指出的是，Oracle home和datafile（还有redo log，archive log，control file，以及Clusterware的OCR和Voting Disks）不能放在同一个OCFS2 volume上。 最近尝试了一下将Oracle Clusterware 11gR1的OCR和VD放在OCFS2上，这里记录一下OCFS2的安装过程。 首先是确定所使用的Linux的发行版本（distribution），内核版本（version）和风格（flavor），处理器架构： # cat /etc/redhat-release Enterprise Linux Enterprise Linux AS release 4 (October Update 5) # uname -r 2.6.9-67.0.4.0.2.ELsmp # uname -p i686 可以看到这里我使用的是Oracle Enterprise Linux 4u5（可以认为是等同于Red Hat Enterprise Linux 4u5），内核版本是2.6.9-67.0.4.0.2，内核风格是smp，处理器架构是i686（也就是x86）。 接下来按照上面的信息去下载相应的OCFS2和OCFS2 Tools（包括ocfs2-tools和ocfs2console）的RPM包。 # wget -c http://oss.oracle.com/projects/ocfs2/dist/files/RedHat/RHEL4/i386/1.2.9-1/2.6.9-67.0.4.EL/ocfs2-2.6.9-67.0.4.ELsmp-1.2.9-1.el4.i686.rpm # wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2-tools-1.2.7-1.el4.i386.rpm [...]]]></description>
			<content:encoded><![CDATA[<p><a title="OCFS2" href="http://oss.oracle.com/projects/ocfs2/" target="_blank">OCFS2</a> (Oracle Cluster File System 2)是由Oracle开发的通用集群文件系统，是一个以GPLv2许可发布的开放源代码项目。由于OCFS2是Cluster-aware的，所以很自然的可以作为RAC的存储的选择之一（其他的选择还有裸设备和ASM）。但是必须指出的是，Oracle home和datafile（还有redo log，archive log，control file，以及Clusterware的OCR和Voting Disks）<strong>不能</strong>放在同一个OCFS2 volume上。</p>
<p>最近尝试了一下将<a title="Oracle Clusterware" href="http://www.oracle.com/technology/products/database/clusterware/index.html" target="_blank">Oracle Clusterware</a> 11gR1的OCR和VD放在OCFS2上，这里记录一下OCFS2的安装过程。</p>
<p>首先是确定所使用的Linux的发行版本（distribution），内核版本（version）和风格（flavor），处理器架构：</p>
<p># cat /etc/redhat-release<br />
Enterprise Linux Enterprise Linux AS release 4 (October Update 5)</p>
<p># uname -r<br />
2.6.9-67.0.4.0.2.ELsmp</p>
<p># uname -p<br />
i686</p>
<p>可以看到这里我使用的是<a title="Oracle Enterprise Linux" href="http://www.oracle.com/technologies/linux/index.html" target="_blank">Oracle Enterprise Linux</a> 4u5（可以认为是等同于Red Hat Enterprise Linux 4u5），内核版本是2.6.9-67.0.4.0.2，内核风格是smp，处理器架构是i686（也就是x86）。</p>
<p>接下来按照上面的信息去下载相应的OCFS2和<a title="OCFS2 Tools" href="http://oss.oracle.com/projects/ocfs2-tools/" target="_blank">OCFS2 Tools</a>（包括ocfs2-tools和ocfs2console）的RPM包。</p>
<pre># wget -c http://oss.oracle.com/projects/ocfs2/dist/files/RedHat/RHEL4/i386/1.2.9-1/2.6.9-67.0.4.EL/ocfs2-2.6.9-67.0.4.ELsmp-1.2.9-1.el4.i686.rpm
# wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2-tools-1.2.7-1.el4.i386.rpm
# wget -c http://oss.oracle.com/projects/ocfs2-tools/dist/files/RedHat/RHEL4/i386/1.2.7-1/ocfs2console-1.2.7-1.el4.i386.rpm</pre>
<p>删除掉现有的老版本的OCFS2相关RPM包：</p>
<pre># rpm -qa | grep ocfs | xargs rpm -e</pre>
<p>依次安装刚刚下载的3个RPM：</p>
<pre># rpm -ivh ocfs2-tools-1.2.7-1.el4.i386.rpm
# rpm -ivh ocfs2console-1.2.7-1.el4.i386.rpm
# rpm -ivh --nodeps ocfs2-2.6.9-67.0.4.ELsmp-1.2.9-1.el4.i686.rpm</pre>
<p>注意安装OCFS2 RPM时需要加上“&#8211;nodeps”选项。</p>
<p>这里还有一个问题，上面安装的OCFS2 RPM的内核版本（2.6.9-67.0.4）与我所使用的Linux的内核版本（2.6.9-67.0.4.0.2）并不完全一致，所以还需要进行下面的额外工作：</p>
<pre># cp -r /lib/modules/2.6.9-67.0.4.ELsmp/kernel/fs/* /lib/modules/2.6.9-67.0.4.0.2.ELsmp/kernel/fs</pre>
<p>至此，OCFS2的安装已经完成。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/09/07/ocfs2-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Product Strategy</title>
		<link>http://www.jarodwang.cn/2008/06/13/one-product-strategy/</link>
		<comments>http://www.jarodwang.cn/2008/06/13/one-product-strategy/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 13:18:56 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=60</guid>
		<description><![CDATA[Complete Complete product portfolio Open Open standard and open source Integrated Integrated products]]></description>
			<content:encoded><![CDATA[<p><strong>Complete</strong></p>
<p>Complete product portfolio</p>
<p><strong>Open</strong></p>
<p>Open standard and open source</p>
<p><strong>Integrated</strong></p>
<p>Integrated products</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/06/13/one-product-strategy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data Guard concepts</title>
		<link>http://www.jarodwang.cn/2008/06/09/data-guard-concepts/</link>
		<comments>http://www.jarodwang.cn/2008/06/09/data-guard-concepts/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 03:09:25 +0000</pubDate>
		<dc:creator>jarodwang</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Data Guard]]></category>

		<guid isPermaLink="false">http://www.jarodwang.cn/?p=56</guid>
		<description><![CDATA[A Data Guard configuration consists of one production database and one or more standby databases. The database in a Data Guard configuration are connected by Oracle Net and may be dispersed geographically. There are no restrictions on where the databases are located, provided they can communicate with each other. You can manage primary and standby [...]]]></description>
			<content:encoded><![CDATA[<p>A <strong>Data Guard configuration</strong> consists of one production database and one or more standby databases. The database in a Data Guard configuration are connected by Oracle Net and may be dispersed geographically. There are no restrictions on where the databases are located, provided they can communicate with each other.</p>
<p>You can manage primary and standby databases using the SQL command-line interface or the Data Guard broker interfaces, including a command-line interface DGMGRL and a graphical user interface that is integrated in Oracle Enterprise Manager.</p>
<p><strong>Primay Database</strong></p>
<p>A Data Guard configuration contains one production database, also referred to as the primary database, that functions in the primary role. This is the database that is accessed by most of your applications.</p>
<p>The primary database can be either a single-instance Oracle database or an Oracle Real Application Clusters (RAC) database.</p>
<p><strong>Standby Databases</strong></p>
<p>A standby database is <strong>a transactionally consistent copy</strong> of the primary database. Using a backup copy of the primary database, you can create up to 9 standby databases and incorporate them in a Data Guard configuration. Once created, Data Guard automatically maintains each standby database by transmitting <strong>redo</strong> data from the primary database and then applying the redo to the standby database.</p>
<p>Similar to a primary database, a standby database can be either a single-instance Oracle database or an Oracle RAC database.</p>
<p>The types of standby databases are as follows:</p>
<ul>
<li>Physical standby database</li>
<li>Logical standby database</li>
<li>Snapshot standby database</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jarodwang.cn/2008/06/09/data-guard-concepts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
