<?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"
	>

<channel>
	<title>玉面飞龙的BLOG</title>
	<atom:link href="http://yumianfeilong.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yumianfeilong.com</link>
	<description>Oracle,Finance,Communication,Family,Hobby</description>
	<pubDate>Sun, 14 Mar 2010 14:16:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>10g VIP offine Intermittantly on vmware</title>
		<link>http://yumianfeilong.com/html/2010/03/14/415.html</link>
		<comments>http://yumianfeilong.com/html/2010/03/14/415.html#comments</comments>
		<pubDate>Sun, 14 Mar 2010 14:16:55 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=415</guid>
		<description><![CDATA[最近在vmware上安装10g oracle clusterware频频出现问题。一个问题是,安装完毕后,运行root.sh无法初始化OCR,后来set -x后发现是原来11g clusterware相关的文件没有删除干净,/etc/oracle目录有旧的ocr.loc和一个叫做sclcr的目录，删除后OK.
安装完毕后，两个虚拟机的VIP又非常的不稳定，经常自动Offline或者failover到另外的一个节点。
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: rc = 1, time = 5.305s
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/app/crs/oracle
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: cmd = /u01/app/crs/oracle/bin/racgeut -e _USR_ORA_DEBUG=0 54 /u01/app/crs/oracle/bin/racgvip check oradb31
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: rc = 1, time = 1.202s
[    RACG][1] [716836][1][ora.oradb31.vip]: end for resource = ora.oradb31.vip, action = start, [...]]]></description>
			<content:encoded><![CDATA[<p>最近在vmware上安装10g oracle clusterware频频出现问题。一个问题是,安装完毕后,<a href="http://www.itpub.net/thread-1277261-1-1.html">运行root.sh无法初始化OCR,</a>后来set -x后发现是原来11g clusterware相关的文件没有删除干净,/etc/oracle目录有旧的ocr.loc和一个叫做sclcr的目录，删除后OK.</p>
<p>安装完毕后，两个虚拟机的VIP又非常的不稳定，经常自动Offline或者failover到另外的一个节点。</p>
<blockquote><p>[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: rc = 1, time = 5.305s<br />
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/app/crs/oracle<br />
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: cmd = /u01/app/crs/oracle/bin/racgeut -e _USR_ORA_DEBUG=0 54 /u01/app/crs/oracle/bin/racgvip check oradb31<br />
[    RACG][1] [716836][1][ora.oradb31.vip]: clsrcexecut: rc = 1, time = 1.202s<br />
[    RACG][1] [716836][1][ora.oradb31.vip]: end for resource = ora.oradb31.vip, action = start, status = 1, time = 6.598s<br />
[    RACG][1] [786632][1][ora.oradb31.vip]: Invalid parameters, or failed to bring up VIP (host=oradb31)</p></blockquote>
<p>搜索metalink原来是因为<span style="font-family: helvetica;"><strong>Default Gateway </strong></span><span style="font-family: helvetica;"><strong> [ID 399213.1]</strong></span>的原因。因为是虚拟机，所以default gateway(比方说192.168.2.1)无法ping通。导致Oracle认为节点的VIP有问题，自动failover VIP。通过修改$ORA_CRS_HOME/bin/racgvip中默认的<span><span style="font-family: Courier New,Courier,mono;">DEFAULTGW为虚拟机的public IP解决。</span></span></p>
<p>奇怪是同样的IP设置，安装Oracle11gR1 Clusterware的时候就没有问题，或许检查VIP状态的机制有了改进。</p>
<p>BTW:在server上使用screen的时候出现了如下错误：Cannot open your terminal &#8216;/dev/pts/0&#8242; - please check. 万能的google告诉我: 可以使用script命令来记录这个终端会话,执行script /dev/null 然后就可以打开screen了</p>
<p><span id="more-415"></span></p>
<p><strong><a href="https://support.oracle.com/CSP/main/article?cmd=show&amp;id=298895.1&amp;type=NOT">NOTE:298895.1</a> - Modifying the default gateway address used by the Oracle 10g VIP</strong></p>
<p><strong><span style="font-family: helvetica;"><strong>VIP Going Offline Intermittantly - Slow Response from Default Gateway [ID 399213.1]</strong></span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/03/14/415.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>votedisk &#038; OCR maintains</title>
		<link>http://yumianfeilong.com/html/2010/03/04/414.html</link>
		<comments>http://yumianfeilong.com/html/2010/03/04/414.html#comments</comments>
		<pubDate>Thu, 04 Mar 2010 09:53:28 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=414</guid>
		<description><![CDATA[Votedisk  can’t be add &#38; remove while CRS is running, or else it would corrupt  something.
OCR can be added &#38; replaced while CRS is running.
 
ENV: Oracle Clusterware 10.2.0.4
Detailed  logfile:
 
While CRS is still  running…
 
# ./crsctl add css votedisk  /dev/rdsk/ c4t60060E80056F160000006F1600000669d0s1
Cluster is not in a ready  state for [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-weight: bold; font-size: 10pt; font-family: 'Courier New';">Votedisk  can’t be add &amp; remove while CRS is running, or else it would corrupt  something.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-weight: bold; font-size: 10pt; font-family: 'Courier New';">OCR can be added &amp; replaced while CRS is running.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span><span id="more-414"></span></p>
<p class="MsoNormal">ENV: Oracle Clusterware 10.2.0.4</p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Detailed  logfile:</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">While CRS is still  running…</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl add css votedisk  /dev/rdsk/ c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Cluster is not in a ready  state for online disk addition</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl add css votedisk  /dev/rdsk/ c4t60060E80056F160000006F1600000669d0s1   -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Now formatting voting disk:  /dev/rdsk/ c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="text-indent: 20pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">successful addition of  votedisk /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl query css  votedisk</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 0.     0     /dev/rdsk/c4t60060E80056F160000006F1600000469d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 1.     0     /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">located 2  votedisk(s).</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Looks good, continue add  another one.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl add css votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Cluster is not in a ready  state for online disk addition</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl add css votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1  -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Now formatting voting disk:  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">successful addition of  votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">It’s <strong><span style="font-weight: bold;">corrupted</span></strong>. Entry 1 and entry 2 both point  to “*869d0s1”.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl query css  votedisk</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 0.     0     /dev/rdsk/c4t60060E80056F160000006F1600000469d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 1.     0     /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 2.     0     /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">located 3  votedisk(s).</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Has to stop CRS on all  nodes.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl stop  crs</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Stopping resources. This  could take several minutes.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Successfully stopped CRS  resources.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Stopping  CSSD.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Shutting down CSS  daemon.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Shutdown request  successfully issued.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Then I want to delete  corrupted entry 1 and entry 2.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl delete css  votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Cluster is not in a ready  state for online disk removal</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl delete css  votedisk /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1  -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">no votedisk found matching  path specified  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">It shows “0” for entry 1 and  entry 2.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl query css  votedisk</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 0.     0     /dev/rdsk/c4t60060E80056F160000006F1600000469d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 1.     0     0</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 2.     0     0</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Add another 2 votedisk while  CRS is down.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl add css votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1  -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Now formatting voting disk:  /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">successful addition of  votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl add css votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1  -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Now formatting voting disk:  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">successful addition of  votedisk  /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl query css  votedisk</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 0.     0     /dev/rdsk/c4t60060E80056F160000006F1600000469d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 1.     0     0</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 2.     0     0</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 3.     0     /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 4.     0     /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">located 5  votedisk(s).</span></span></p>
<p class="MsoNormal" style="margin-left: 44pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Delete “0” votedisk. Looks  good.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl delete css  votedisk 0 -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">successful deletion of  votedisk 0.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl query css  votedisk</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 0.     0     /dev/rdsk/c4t60060E80056F160000006F1600000469d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 1.     0     0</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 2.     0     /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 3.     0     /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">located 4  votedisk(s).</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl delete css  votedisk 0 -force</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">successful deletion of  votedisk 0.</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./crsctl query css  votedisk</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 0.     0     /dev/rdsk/c4t60060E80056F160000006F1600000469d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 1.     0     /dev/rdsk/c4t60060E80056F160000006F1600000669d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> 2.     0     /dev/rdsk/c4t60060E80056F160000006F1600000869d0s1</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">located 3  votedisk(s).</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Want to add mirrored OCR  while CRS is down. It reports error “PROT-1”.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./ocrconfig -replace  ocrmirror  /dev/rdsk/c4t60060E80056F160000006F1600000669d0s5</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">PROT-1: Failed to initialize  ocrconfig</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">After start CRS on all  nodes. Mirrored OCR can be added.</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># ./ocrconfig -replace  ocrmirror  /dev/rdsk/c4t60060E80056F160000006F1600000669d0s5</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">#  ./ocrcheck</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">Status of Oracle Cluster  Registry is as follows :</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Version                  :          2</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Total space  (kbytes)     :    1151724</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Used space  (kbytes)      :       4608</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Available space  (kbytes) :    1147116</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> ID                       : 1986342521</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Device/File  Name         :  /dev/rdsk/c4t60060E80056F160000006F1600000469d0s5</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Device/File integrity check succeeded</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Device/File  Name         :  /dev/rdsk/c4t60060E80056F160000006F1600000669d0s5</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Device/File integrity check succeeded</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> Cluster registry  integrity check succeeded</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"> </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';"># cat  /var/opt/oracle/ocr.loc</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">#Device/file  getting  replaced by device /dev/rdsk/c4t60060E80056F160000006F1600000669d0s5 </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">ocrconfig_loc=/dev/rdsk/c4t60060E80056F160000006F1600000469d0s5</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">ocrmirrorconfig_loc=/dev/rdsk/c4t60060E80056F160000006F1600000669d0s5</span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">local_only=false# </span></span></p>
<p class="MsoNormal" style="margin-left: 22pt;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New';">[detached]</span></span></p>
<p class="MsoNormal"><span style="font-family: Courier New; color: blue; font-size: x-small;"><span style="font-size: 10pt; font-family: 'Courier New'; color: blue;"> </span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/03/04/414.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Bloom Box</title>
		<link>http://yumianfeilong.com/html/2010/02/25/413.html</link>
		<comments>http://yumianfeilong.com/html/2010/02/25/413.html#comments</comments>
		<pubDate>Thu, 25 Feb 2010 02:27:32 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[ELNINO]]></category>

		<category><![CDATA[新能源]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=413</guid>
		<description><![CDATA[高科技的能源产品，有氧气和天然气，就可以供给家庭或者办公室，甚至服务器用电，据说节约不少成本，很绿色。
Bloom&#8217;s fuel cell works like this: Oxygen is pumped in on one side and natural gas on the other. The two combine inside the cell to create a chemical reaction that produces electricity. No burning, no combustion, no power lines from outside.
fuel cell的internal如此，不管结果怎么样，有VC投钱就有大把的工作岗位。
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cbsnews.com/stories/2010/02/24/eveningnews/main6239941.shtml">高科技的能源产品</a>，有氧气和天然气，就可以供给家庭或者办公室，甚至服务器用电，据说节约不少成本，很绿色。</p>
<blockquote><p>Bloom&#8217;s fuel cell works like this: Oxygen is pumped in on one side and natural gas on the other. The two combine inside the cell to create a chemical reaction that produces electricity. No burning, no combustion, no power lines from outside.</p></blockquote>
<p><a href="http://americanhistory.si.edu/fuelcells/basics.htm">fuel cell</a>的internal如此，不管结果怎么样，有VC投钱就有大把的工作岗位。</p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/02/25/413.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>过年回家</title>
		<link>http://yumianfeilong.com/html/2010/02/11/412.html</link>
		<comments>http://yumianfeilong.com/html/2010/02/11/412.html#comments</comments>
		<pubDate>Thu, 11 Feb 2010 03:49:08 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Favorites]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=412</guid>
		<description><![CDATA[

过了年就不去上海了。在北京做remote DBA，基本上work@home。离老家近了，再也不用发愁过年回家的问题了。
]]></description>
			<content:encoded><![CDATA[<p><embed src="http://player.youku.com/player.php/sid/XMTUwNjYwNTky=/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"></embed></p>
<p><span id="more-412"></span></p>
<p>过了年就不去上海了。在北京做remote DBA，基本上work@home。离老家近了，再也不用发愁过年回家的问题了。</p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/02/11/412.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>说EXPDP无语</title>
		<link>http://yumianfeilong.com/html/2010/02/04/410.html</link>
		<comments>http://yumianfeilong.com/html/2010/02/04/410.html#comments</comments>
		<pubDate>Thu, 04 Feb 2010 08:45:09 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=410</guid>
		<description><![CDATA[说EXPDP无语，那是因为它完全不customer focus，特别是导出数据量很大表很多的schema的时候，经常&#8221;假寐&#8221;。
&#8220;假寐&#8221;就是假死,hang.
今天用expdp作用户级别的逻辑备份，该用户有2200多个表，导出文件共85G，没有使用并行大概花费了3个小时不到。
运行命令后的半个小时内，导出文件大小没有任何变化，察看active session，有个在长时间等待&#8221;wait for unread message on broadcast channel&#8221;，给人的感觉是hang住，不靠普。
后来准备开窗口使用传统的exp,继续观察expdp。&#8221;假寐&#8221;后,EXPDP先把最大的一个表给导出来了，后来又导出了几个10g的表。原来我没有碰见真死的bug。观察日志文件，expdp基本按照表从大到小进行数据导出。倒是比exp快，可惜用户体验不行。
详细命令和日志如下

yumianfeilong$&#62; more backup_expdp.log
Export: Release 10.2.0.4.0 - 64bit Production on Wednesday, 03 February, 2010 19:54:02
Copyright (c) 2003, 2007, Oracle.  All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
FLASHBACK automatically enabled to preserve [...]]]></description>
			<content:encoded><![CDATA[<p>说EXPDP无语，那是因为它完全不<strong>customer focus</strong>，特别是导出数据量很大表很多的schema的时候，经常&#8221;假寐&#8221;。<br />
&#8220;假寐&#8221;就是假死,hang.</p>
<p>今天用expdp作用户级别的逻辑备份，该用户有2200多个表，导出文件共85G，没有使用并行大概花费了3个小时不到。</p>
<p>运行命令后的半个小时内，导出文件大小没有任何变化，察看active session，有个在长时间等待&#8221;wait for unread message on broadcast channel&#8221;，给人的感觉是hang住，不靠普。</p>
<p>后来准备开窗口使用传统的exp,继续观察expdp。&#8221;假寐&#8221;后,EXPDP先把最大的一个表给导出来了，后来又导出了几个10g的表。原来我没有碰见真死的bug。观察日志文件，expdp基本按照表从大到小进行数据导出。倒是比exp快，可惜用户体验不行。</p>
<p>详细命令和日志如下</p>
<p><span id="more-410"></span></p>
<blockquote><p>yumianfeilong$&gt; more backup_expdp.log<br />
Export: Release 10.2.0.4.0 - 64bit Production on Wednesday,<strong> 03 February, 2010 19:54:02</strong><br />
Copyright (c) 2003, 2007, Oracle.  All rights reserved.<br />
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production<br />
With the Partitioning, OLAP, Data Mining and Real Application Testing options<br />
FLASHBACK automatically enabled to preserve database integrity.<br />
Starting &#8220;SCOTT&#8221;.&#8221;SYS_EXPORT_SCHEMA_01&#8243;:  SCOTT/******** schemas=SCOTT directory=EXPDP dumpfile=backup_expdp.dmp logfile=backup_expdp.log<br />
Estimate in progress using BLOCKS method&#8230;<br />
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA<br />
<strong>Total estimation using BLOCKS method: 122.4 GB</strong><br />
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA<br />
Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE<br />
Processing object type SCHEMA_EXPORT/TABLE/TABLE<br />
Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX<br />
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS<br />
Processing object type SCHEMA_EXPORT/TABLE/COMMENT<br />
Processing object type SCHEMA_EXPORT/VIEW/VIEW<br />
Processing object type SCHEMA_EXPORT/VIEW/GRANT/OWNER_GRANT/OBJECT_GRANT<br />
Processing object type SCHEMA_EXPORT/TABLE/TRIGGER<br />
Processing object type SCHEMA_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX<br />
Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS<br />
<strong>. . exported &#8220;SCOTT&#8221;.&#8221;TABLE725&#8243;                            11.39 GB 39455120 rows</strong><br />
<strong>. . exported &#8220;SCOTT&#8221;.&#8221;TABLE1085&#8243;                           10.87 GB  225445 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;adfadsfdsf&#8221;                  11.07 GB   43002 rows</strong><br />
. . exported &#8220;SCOTT&#8221;.&#8221;adfasdf&#8221;                            163.2 MB  640381 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;adfasdf&#8221;                            6.170 GB 5758755 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;adfasdf&#8221;                            4.362 GB 3667986 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;adfsdf&#8221;                            1.325 GB 39455120 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;werwer&#8221;                            1.303 GB 4759513 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;fadf&#8221;                            102.9 MB   58882 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;zzzzzzzzzzzz&#8221;                            21.27 MB   77610 rows<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
. . exported &#8220;SCOTT&#8221;.&#8221;xxxxxxxxxxx&#8221;                            381.5 MB 4443678 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;cccccccccc&#8221;                            314.1 MB   50703 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;vvvvvvvv&#8221;                  360.8 MB   19679 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;nnnnnnnnnn&#8221;                            199.3 MB   79876 rows<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
. . exported &#8220;SCOTT&#8221;.&#8221;mmmmmmmmmmmmm&#8221;                            55.57 MB    4719 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;jjjjjjjjjjjjjj&#8221;                            50.01 MB   27200 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;kkkkkkkkkkkkk&#8221;                            36.18 MB   14629 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;llllllll&#8221;                           49.89 MB  173582 rows<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
. . exported &#8220;SCOTT&#8221;.&#8221;ttttttttttttt&#8221;                  3.667 MB    5810 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;tttttttttttttt&#8221;                  3.843 MB   20287 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;ttttttttttttttt&#8221;                            2.710 MB   79876 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;tttttttttttttttttt&#8221;                            565.6 KB   16233 rows</p>
<p>. . exported &#8220;SCOTT&#8221;.&#8221;ahhhhhhhhhhhhhhh&#8221;                  1.826 MB   38701 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;qqqqqqqqqqqqqqqq&#8221;                  1.122 MB   65065 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;beeeeeeeeeee&#8221;                  1.122 MB   65065 rows</p>
<p>. . exported &#8220;SCOTT&#8221;.&#8221;Tttttttt1119&#8243;                           2.600 MB   12544 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;T515&#8243;                            1.810 MB   15267 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;T518&#8243;                            2.571 MB   34564 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;Tttttttttt668&#8243;                            1.937 MB    1339 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;Tttttttttttttt994&#8243;                            984.5 KB    1502 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;Taaaaaaa541&#8243;                            1.455 MB    1153 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;Taaaaaa593&#8243;                            1.189 MB     768 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;aaaaaaaaaaaaaaa&#8221;                          1.512 MB    3475 rows<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
. . exported &#8220;SCOTT&#8221;.&#8221;ABC&#8221;                             28.21 KB     177 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;jjjjjjjjjjjjj&#8221;                  761.1 KB   43002 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;yyyyyyyyyy&#8221;                  904.7 KB    3607 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;ffffffffffff&#8221;                           91.74 KB     797 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;wwwwwwwww&#8221;                           259.1 KB       1 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;rrrrrrrrrrrrrr&#8221;                 7.687 KB     140 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;ddddddddddddde&#8221;                 7.687 KB     140 rows<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<br />
. . exported &#8220;SCOTT&#8221;.&#8221;T991&#8243;                            12.60 KB       3 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;T993&#8243;                            38.60 KB     429 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;TTTTTTTT&#8221;                         0 KB       0 rows<br />
. . exported &#8220;SCOTT&#8221;.&#8221;bbbbbbbbbb&#8221;                        0 KB       0 rows<br />
&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<br />
Master table &#8220;SCOTT&#8221;.&#8221;SYS_EXPORT_SCHEMA_01&#8243; successfully loaded/unloaded<br />
******************************************************************************<br />
Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:<br />
/oracle/TRACE/archive/EXPDP/backup_expdp.dmp<br />
<strong>Job &#8220;SCOTT&#8221;.&#8221;SYS_EXPORT_SCHEMA_01&#8243; completed with 0 error(s) at 22:46:43 </strong></p></blockquote>
<p>单表expdp测试没有假死问题。</p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/02/04/410.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Oracle Online Demos</title>
		<link>http://yumianfeilong.com/html/2010/02/03/409.html</link>
		<comments>http://yumianfeilong.com/html/2010/02/03/409.html#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:09:37 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=409</guid>
		<description><![CDATA[Good Demo.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oracle.com/technology/obe/demos/admin/demos.html">Good Demo.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/02/03/409.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>享受生活和吃饱混天黑</title>
		<link>http://yumianfeilong.com/html/2010/01/19/407.html</link>
		<comments>http://yumianfeilong.com/html/2010/01/19/407.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 02:41:16 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[NoFeeling]]></category>

		<category><![CDATA[economy]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=407</guid>
		<description><![CDATA[蜗居便是吃饱混天黑。
事业有成+大房+二奶 便是享受生活。
周末去朋友家做客后的感想
如果你觉的时间过得快，便是吃饱混天黑。相反觉得慢的，便是享受生活。
]]></description>
			<content:encoded><![CDATA[<p>蜗居便是吃饱混天黑。<br />
事业有成+大房+二奶 便是享受生活。</p>
<blockquote><p>周末去朋友家做客后的感想</p></blockquote>
<p>如果你觉的时间过得快，便是吃饱混天黑。相反觉得慢的，便是享受生活。</p>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/01/19/407.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Change CRS Resource Dependcy in RAC</title>
		<link>http://yumianfeilong.com/html/2010/01/07/406.html</link>
		<comments>http://yumianfeilong.com/html/2010/01/07/406.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 08:40:10 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=406</guid>
		<description><![CDATA[CRS_STAT -p 可以看到资源之间的依赖性。可以通过crs_register来修改，控制crs_start -all的顺序。
./crs_stat -p ora.rac1.LISTENER_RAC1.lsnr &#62;&#62; /tmp/ora.rac1.LISTENER_RAC1.lsnr.cap
./crs_stat -p ora.rac2.LISTENER_RAC2.lsnr &#62;&#62; /tmp/ora.rac2.LISTENER_RAC2.lsnr.cap
./crs_stat -p ora.rac1.ASM1.asm &#62;&#62; /tmp/ora.rac1.ASM1.asm.cap
./crs_stat -p ora.rac2.ASM2.asm &#62;&#62; /tmp/ora.rac2.ASM2.asm.cap
./crs_stat -p ora.orcl.orcl1.inst &#62;&#62; /tmp/ora.orcl.orcl1.inst.cap
./crs_stat -p ora.orcl.orcl2.inst &#62;&#62; /tmp/ora.orcl.orcl2.inst.cap
&#8211;modify REQUIRED_RESOURCES item for all tempfiles.(多个dependence 资源用空格隔开)
./crs_register -u ora.rac1.LISTENER_RAC1.lsnr -dir /tmp
./crs_register -u ora.rac2.LISTENER_RAC2.lsnr -dir /tmp
./crs_register -u ora.rac1.ASM1.asm -dir /tmp
./crs_register -u ora.rac2.ASM2.asm -dir /tmp
./crs_register -u ora.orcl.orcl1.inst -dir /tmp
./crs_register -u [...]]]></description>
			<content:encoded><![CDATA[<p>CRS_STAT -p 可以看到资源之间的依赖性。可以通过<a href="http://www.filibeto.org/sun/lib/nonsun/oracle/10.2.0.1.0/B19306_01/rac.102/b14197/crsref.htm#i1018192">crs_register</a>来修改，控制crs_start -all的顺序。</p>
<blockquote><p>./crs_stat -p ora.rac1.LISTENER_RAC1.lsnr &gt;&gt; /tmp/ora.rac1.LISTENER_RAC1.lsnr.cap<br />
./crs_stat -p ora.rac2.LISTENER_RAC2.lsnr &gt;&gt; /tmp/ora.rac2.LISTENER_RAC2.lsnr.cap<br />
./crs_stat -p ora.rac1.ASM1.asm &gt;&gt; /tmp/ora.rac1.ASM1.asm.cap<br />
./crs_stat -p ora.rac2.ASM2.asm &gt;&gt; /tmp/ora.rac2.ASM2.asm.cap<br />
./crs_stat -p ora.orcl.orcl1.inst &gt;&gt; /tmp/ora.orcl.orcl1.inst.cap<br />
./crs_stat -p ora.orcl.orcl2.inst &gt;&gt; /tmp/ora.orcl.orcl2.inst.cap</p>
<p>&#8211;modify REQUIRED_RESOURCES item for all tempfiles.(多个dependence 资源用空格隔开)</p>
<p>./crs_register -u ora.rac1.LISTENER_RAC1.lsnr -dir /tmp<br />
./crs_register -u ora.rac2.LISTENER_RAC2.lsnr -dir /tmp<br />
./crs_register -u ora.rac1.ASM1.asm -dir /tmp<br />
./crs_register -u ora.rac2.ASM2.asm -dir /tmp<br />
./crs_register -u ora.orcl.orcl1.inst -dir /tmp<br />
./crs_register -u ora.orcl.orcl2.inst -dir /tmp</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/01/07/406.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Remove a node from Oracle10g RAC cluster and add back</title>
		<link>http://yumianfeilong.com/html/2010/01/07/405.html</link>
		<comments>http://yumianfeilong.com/html/2010/01/07/405.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 03:44:20 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=405</guid>
		<description><![CDATA[Document can be applied to 10gR1 and 10gR2. Keep for reference.

Removing a Node from a 10gR1 RAC Cluster [ID 269320.1]
Modified 27-MAY-2009     Type BULLETIN     Status PUBLISHED
Note:  This article is only relevant for 10gR1 RAC environments.
For 10gR2 RAC environments please follow the documented procedures in the manual:
Oracle? Database Oracle Clusterware and Oracle Real Application Clusters Administration and [...]]]></description>
			<content:encoded><![CDATA[<p>Document can be applied to 10gR1 and 10gR2. Keep for reference.</p>
<p><span id="more-405"></span></p>
<blockquote><p>Removing a Node from a 10gR1 RAC Cluster [ID 269320.1]<br />
Modified 27-MAY-2009     Type BULLETIN     Status PUBLISHED</p>
<p>Note:  This article is only relevant for 10gR1 RAC environments.</p>
<p>For 10gR2 RAC environments please follow the documented procedures in the manual:<br />
Oracle? Database Oracle Clusterware and Oracle Real Application Clusters Administration and Deployment Guide<br />
10g Release 2 (10.2)<br />
Part Number B14197-03</p>
<p>PURPOSE<br />
&#8212;&#8212;-</p>
<p>The purpose of this note is to provide the user with a  document that<br />
can be used as a guide to remove a cluster node from an Oracle 10g Real<br />
Applications environment.</p>
<p>SCOPE &amp; APPLICATION<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>This document can be used by DBAs and support analsyts who need to<br />
either remove a cluster node or assist another in removing a cluster<br />
node in a 10g Unix Real Applications environment.</p>
<p>REMOVING A NODE FROM A 10g RAC CLUSTER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>If you have to remove a node from a RAC 10g database, even if the node<br />
will no longer be available to the environment, there is a certain<br />
amount of cleanup that needs to be done.  The remaining nodes need to<br />
be informed of the change of status of the departing node.  If there are<br />
any steps that must be run on the node being removed and the node is no<br />
longer available those commands can be skipped.</p>
<p>The most important 3 steps that need to be followed are;</p>
<p>A.    Remove the instance using DBCA.<br />
B.    Remove the node from the cluster.<br />
C.    Reconfigure the OS and remaining hardware.</p>
<p>Here is a breakdown of the above steps.</p>
<p>A.    Remove the instance using DBCA.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>1.      Verify that you have a good backup of the OCR (Oracle Configuration<br />
Repository) using ocrconfig -showbackup.</p>
<p>2.    Run DBCA from one of the nodes you are going to keep.  Leave the<br />
database up and also leave the departing instance up and running.</p>
<p>3.    Choose &#8220;Instance Management&#8221;</p>
<p>4.    Choose &#8220;Delete an instance&#8221;</p>
<p>5.      On the next screen, select the cluster database from which you<br />
will delete an instance.  Supply the system privilege username<br />
and password.</p>
<p>6.    On the next screen, a list of cluster database instances will<br />
appear.  Highlight the instance you would like to delete then<br />
click next.</p>
<p>7.    If you have services configured, reassign the services.  Modify the<br />
services so that each service can run on one of the remaining<br />
instances.  Set &#8220;not used&#8221; for each service regarding the instance<br />
that is to be deleted.  Click Finish.</p>
<p>8.    If your database is in archive log mode you may encounter the<br />
following errors:<br />
ORA-350<br />
ORA-312<br />
This may occur because the DBCA cannot drop  current log, as<br />
it needs archiving.  This issue is fixed in tthehe 10.1.0.3<br />
patchset. But previous to this patchset you should click the<br />
ignore button and when the DBCA completes, manually archive<br />
the logs for the deleted instance and dropt the log group.</p>
<p>SQL&gt;  alter system archive log all;<br />
SQL&gt;  alter database drop logfile group 2;</p>
<p>9.    Verify that the dropped instance&#8217;s redo thread has been removed by<br />
querying v$log.  If for any reason the redo thread is not disabled<br />
then disable the thread.</p>
<p>SQL&gt; alter database disable thread 2;</p>
<p>10.     Verify that the instance was removed from the OCR (Oracle<br />
Configuration Repository) with the following commands:</p>
<p>srvctl config database -d &lt;db_name&gt;<br />
cd &lt;CRS_HOME&gt;/bin<br />
./crs_stat</p>
<p>11.    If this node had an ASM instance and the node will no longer be a<br />
part of the cluster you will now need to remove the ASM instance with:</p>
<p>srvctl stop asm -n &lt;nodename&gt;<br />
srvctl remove asm -n &lt;nodename&gt;</p>
<p>Verify that asm is removed with:</p>
<p>srvctl config asm -n &lt;nodename&gt;</p>
<p>B.    Remove the Node from the Cluster<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Once the instance has been deleted.  The process of removing the node<br />
from the cluster is a manual process. This is accomplished by running<br />
scripts on the deleted node to remove the CRS install, as well as<br />
scripts on the remaining nodes to update the node list.  The following<br />
steps assume that the node to be removed is still functioning.</p>
<p>1.    To delete node number 2 first stop and remove the nodeapps on the<br />
node you are removing.  Assuming that you have removed the ASM<br />
instance as the root user on a remaining node;</p>
<p># srvctl stop nodeapps -n &lt;nodename&gt;</p>
<p>2.      Run netca.  Choose &#8220;Cluster Configuration&#8221;.</p>
<p>3.    Only select the node you are removing and click next.</p>
<p>4.    Choose &#8220;Listener Configuration&#8221; and click next.</p>
<p>5.     Choose &#8220;Delete&#8221; and delete any listeners configured on the node<br />
you are removing.</p>
<p>6.      Run &lt;CRS_HOME&gt;/bin/crs_stat.  Make sure that all database<br />
resources are running on nodes that are going to be kept.  For<br />
example:</p>
<p>NAME=ora.&lt;db_name&gt;.db<br />
TYPE=application<br />
TARGET=ONLINE<br />
STATE=ONLINE on &lt;node2&gt;</p>
<p>Ensure that this resource is not running on a node that will be<br />
removed.  Use &lt;CRS_HOME&gt;/bin/crs_relocate to perform this.<br />
Example:</p>
<p>crs_relocate ora.&lt;db_name&gt;.db</p>
<p>7.     As the root user, remove the nodeapps on the node you are removing.</p>
<p># srvctl remove nodeapps -n &lt;nodename&gt;</p>
<p>8.    Next as the Oracle user run the installer with the<br />
updateNodeList option on any remaining node in the cluster.</p>
<p>a.  DISPLAY=ipaddress:0.0; export DISPLAY<br />
This should be set even though the gui does not run.</p>
<p>b.  $ORACLE_HOME/oui/bin/runInstaller -updateNodeList<br />
ORACLE_HOME=&lt;Oracle Home Location&gt; CLUSTER_NODES=&lt;node1&gt;,<br />
&lt;node3&gt;,&lt;node4&gt;</p>
<p>With this command we are defining the RDBMS $ORACLE_HOME&#8217;s that<br />
now are part of the cluster in the Oracle inventory.  If there is<br />
no $ORACLE_HOME this step can be skipped.</p>
<p>9.    Change to the root user to finish the removal on a node that<br />
is being removed.  This command will stop the CRS stack<br />
and delete the ocr.loc file on the node to be removed.  The<br />
nosharedvar option assumes the ocr.loc file is not on a shared<br />
file sytem.  If it does exist on a shared file system then<br />
specify sharedvar instead.  The nosharedhome option specifies<br />
that the CRS_HOME is on a local filesystem.  If the CRS_HOME is<br />
on a shared file system, specify sharedhome instead.<br />
Run the rootdelete.sh script from &lt;CRS_HOME&gt;/install.  Example:</p>
<p># cd &lt;CRS_HOME&gt;/install<br />
# ./rootdelete.sh local nosharedvar nosharedhome</p>
<p>10.    On a node that will be kept, the root user should run the<br />
rootdeletenode.sh script from the &lt;CRS_HOME&gt;/install directory.<br />
When running this script from the CRS home specify both the node<br />
name and the node number.  The node name and the node number are<br />
visiable in olsnodes -n.  Also do NOT put a space after the<br />
comma between the two.</p>
<p># olsnodes -n<br />
&lt;node1&gt;       1<br />
&lt;node2&gt;       2</p>
<p># cd &lt;CRS_HOME&gt;/install<br />
# ./rootdeletenode.sh &lt;node2name&gt;,2</p>
<p>11.    Confirm success by running OLSNODES.</p>
<p>&lt;CRS_HOME&gt;/bin&gt;: ./olsnodes -n<br />
&lt;node1&gt;          1</p>
<p>12.    Now switch back to the oracle user account and run the same<br />
runInstaller command as before.  Run it this time from the<br />
&lt;CRS_HOME&gt; instead of the ORACLE_HOME.  Specify all of the<br />
remaining nodes.</p>
<p>a.  DISPLAY=ipaddress:0.0; export DISPLAY</p>
<p>b.  &lt;CRS_HOME&gt;/oui/bin/runInstaller -updateNodeList<br />
ORACLE_HOME=&lt;CRS Home&gt; CLUSTER_NODES=&lt;node1&gt;,<br />
&lt;node3&gt;, &lt;node4&gt; CRS=TRUE</p>
<p>With this command we are defining the CRS HOME&#8217;s that now are<br />
part of the cluster in the Oracle inventory.</p>
<p>13.    Once the node updates are done you will need to manually delete<br />
the $ORACLE_HOME and $CRS_HOME from the node to be expunged,<br />
unless, of course, either of these is on a shared file system<br />
that is still being used.</p>
<p>a.  $ORACLE_HOME&gt;: rm -rf *<br />
b.  $CRS_HOME&gt; : rm -rf *   (as root)</p>
<p>14.    Next, as root, from the deleted node, verify that all init scripts<br />
and soft links are removed:</p>
<p>Sun:</p>
<p>rm /etc/init.d/init.cssd<br />
rm /etc/init.d/init.crs<br />
rm /etc/init.d/init.crsd<br />
rm /etc/init.d/init.evmd<br />
rm /etc/rc3.d/K96init.crs<br />
rm /etc/rc3.d/S96init.crs<br />
rm -Rf /var/opt/oracle/scls_scr<br />
rm -Rf /var/opt/oracle/oprocd</p>
<p>Linux:</p>
<p>rm -f /etc/init.d/init.cssd<br />
rm -f /etc/init.d/init.crs<br />
rm -f /etc/init.d/init.crsd<br />
rm -f /etc/init.d/init.evmd<br />
rm -f /etc/rc2.d/K96init.crs<br />
rm -f /etc/rc2.d/S96init.crs<br />
rm -f /etc/rc3.d/K96init.crs<br />
rm -f /etc/rc3.d/S96init.crs<br />
rm -f /etc/rc5.d/K96init.crs<br />
rm -f /etc/rc5.d/S96init.crs<br />
rm -Rf /etc/oracle/scls_scr</p>
<p>HP-UX:</p>
<p>rm /sbin/init.d/init.cssd<br />
rm /sbin/init.d/init.crs<br />
rm /sbin/init.d/init.crsd<br />
rm /sbin/init.d/init.evmd<br />
rm /sbin/rc3.d/K960init.crs<br />
rm /sbin/rc3.d/S960init.crs<br />
rm /sbin/rc2.d/K960init.crs<br />
rm /sbin/rc2.d/K001init.crs<br />
rm -Rf /var/opt/oracle/scls_scr<br />
rm -Rf /var/opt/oracle/oprocd</p>
<p>HP Tru64:</p>
<p>rm /sbin/init.d/init.cssd<br />
rm /sbin/init.d/init.crs<br />
rm /sbin/init.d/init.crsd<br />
rm /sbin/init.d/init.evmd<br />
rm /sbin/rc3.d/K96init.crs<br />
rm /sbin/rc3.d/S96init.crs<br />
rm -Rf /var/opt/oracle/scls_scr<br />
rm -Rf /var/opt/oracle/oprocd</p>
<p>IBM AIX:</p>
<p>rm /etc/init.cssd<br />
rm /etc/init.crs<br />
rm /etc/init.crsd<br />
rm /etc/init.evmd<br />
rm /etc/rc.d/rc2.d/K96init.crs<br />
rm /etc/rc.d/rc2.d/S96init.crs<br />
rm -Rf /etc/oracle/scls_scr<br />
rm -Rf /etc/oracle/oprocd</p>
<p>16.    You can also remove the /etc/oracle directory, the<br />
/etc/oratab file, and the Oracle inventory (if desired)</p>
<p>17.     To remove an ADDITIONAL ORACLE_HOME, ASM_HOME, or EM_HOME from the<br />
inventory on all remaining nodes, run the installer to update the<br />
node list.  Example (if removing node 2):</p>
<p>runInstaller -updateNodeList -local \<br />
ORACLE_HOME=$ORACLE_HOME CLUSTER_NODES=node1,node3,node4<br />
(If you are using private home installations, please ignore the &#8220;-local&#8221; flag.)</p>
<p>RELATED DOCUMENTS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Oracle? Real Application Clusters Administrator&#8217;s Guide 10g Release 1 (10.1)<br />
Part Number B10765-02<br />
Chapter 5<br />
Oracle Series/Oracle Database 10g High Availabilty Chapter 5 28-34.<br />
Note 239998.1<br />
Oracle Clusterware and RAC Admin and Deployment Guide - Ch. 10 and 11</p>
<p>Show Related Information Related<br />
Products</p>
<p>* Oracle Database Products &gt; Oracle Database &gt; Oracle Database &gt; Oracle Server - Enterprise Edition</p></blockquote>
<p>Below is steps to add removed instance back. Steps also apply to 10gR2 without big modification.</p>
<blockquote><p>http://www.oracle.com/technology/pub/articles/vallath-nodes.html</p>
<p>PURPOSE<br />
&#8212;&#8212;-</p>
<p>The purpose of this note is to provide the user with a document that<br />
can be used as a guide to add a cluster node from an Oracle 10g Real<br />
Applications environment.</p>
<p>SCOPE &amp; APPLICATION<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>This document can be used by DBAs and support analsyts who need to<br />
either add a cluster node or assist another in adding a cluster<br />
node in a 10g Unix Real Applications environment. If you are on<br />
10gR2 (10.2.0.2 or higher), please refer to the documentation for<br />
more updated steps.</p>
<p>ADDING A NODE TO A 10g RAC CLUSTER<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>The most important steps that need to be followed are;</p>
<p>A. Configure the OS and hardware for the new node.<br />
B. Add the node to the cluster.<br />
C. Add the RAC software to the new node.<br />
D. Reconfigure listeners for new node.<br />
E. Add instances via DBCA.</p>
<p>Here is a breakdown of the above steps.</p>
<p>A. Configure the OS and hardware for the new node.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Please consult with available OS vendor documentation for this step.</p>
<p>See Note 264847.1 for network requirements. Also verify that the OCR and<br />
voting files are visible from the new node with correct permissions.</p>
<p>B. Add the node to the cluster.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1. If the CRS Home is owned by root and you are on a version &lt; 10.1.0.4, change<br />
the ownership of the CRS Home directories on all nodes to the Oracle user<br />
so that OUI can read and write to these directories.<br />
2. Set the DISPLAY environment variable and run the addNode.sh script from<br />
$ORA_CRS_HOME/oui/bin on one of the existing nodes as the oracle user.<br />
Example:</p>
<p>DISPLAY=ipaddress:0.0; export DISPLAY<br />
cd $ORA_CRS_HOME/oui/bin<br />
./addNode.sh</p>
<p>3. The OUI Welcome screen will appear, click next.</p>
<p>4. On the &#8220;Specify Cluster Nodes to Add to Installation&#8221; screen, add the<br />
public and private node names (these should exist in /etc/hosts and<br />
should be pingable from each of the cluster nodes), click next.</p>
<p>5. The &#8220;Cluster Node Addition Summary&#8221; screen will appear, click next.</p>
<p>6. The &#8220;Cluster Node Addition Progress&#8221; screen will appear. You will<br />
then be prompted to run rootaddnode.sh as the root user. First verify<br />
that the CLSCFG information in the rootaddnode.sh script is correct.<br />
It should contain the new public and private node names and node<br />
numbers. Example:</p>
<p>$CLSCFG -add -nn &lt;node2&gt;,2 -pn &lt;node2-private&gt;,2 -hn &lt;node2&gt;,2</p>
<p>Then run the rootaddnode.sh script on the EXISTING node you ran the<br />
addNode.sh from. Example:</p>
<p>su root<br />
cd $ORA_CRS_HOME<br />
sh -x rootaddnode.sh</p>
<p>Once this is finished, click OK in the dialog box to continue.</p>
<p>7. At this point another dialog box will appear, this time you are<br />
prompted to run $ORA_CRS_HOME/root.sh on all the new nodes.<br />
If you are on version &lt; 10.1.0.4 then<br />
- Locate the highest numbered NEW cluster node using &#8220;$ORA_CRS_HOME/bin/olsnodes -n&#8221;.<br />
- Run the root.sh script on this highest numbered NEW cluster node.<br />
- Run the root.sh script on the rest of the NEW nodes in any order.<br />
For versions 10.1.0.4 and above the root scritps can be run on the NEW<br />
nodes in any order.</p>
<p>Example:</p>
<p>su root<br />
cd $ORA_CRS_HOME<br />
sh -x root.sh</p>
<p>If there are any problems with this step, refer to Note 240001.1</p>
<p>Once this is finished, click OK in the dialog box to continue.</p>
<p>8. After running the CRS root.sh on all new nodes, run<br />
$ORA_CRS_HOME/bin/racgons add_config rac2:4948<br />
from any node.</p>
<p>9. Next you will see the &#8220;End of Installation&#8221; screen. At this point you<br />
may exit the installer.</p>
<p>10. Change the ownership of all CRS Homes back to root.</p>
<p>C. Add the Oracle Database software (with RAC option) to the new node.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1. On a pre-existing node, cd to the $ORACLE_HOME/oui/bin directory and<br />
run the addNode.sh script. Example:</p>
<p>DISPLAY=ipaddress:0.0; export DISPLAY<br />
cd $ORACLE_HOME/oui/bin<br />
./addNode.sh</p>
<p>2. The OUI Welcome screen will appear, click next.</p>
<p>3. On the &#8220;Specify Cluster Nodes to Add to Installation&#8221; screen, specify<br />
the node you want to add, click next.</p>
<p>4. The &#8220;Cluster Node Addition Summary&#8221; screen will appear, click next.</p>
<p>5. The &#8220;Cluster Node Addition Progress&#8221; screen will appear. You will<br />
then be prompted to run root.sh as the root user.</p>
<p>su root<br />
cd $ORACLE_HOME<br />
./root.sh</p>
<p>Once this is finished, click OK in the dialog box to continue.</p>
<p>6. Next you will see the &#8220;End of Installation&#8221; screen. At this point you<br />
may exit the installer.</p>
<p>7. Cd to the $ORACLE_HOME/bin directory and run the vipca tool with the<br />
new nodelist. Example:</p>
<p>su root<br />
DISPLAY=ipaddress:0.0; export DISPLAY<br />
cd $ORACLE_HOME/bin<br />
./vipca -nodelist &lt;node1&gt;,&lt;node2&gt;</p>
<p>8. The VIPCA Welcome Screen will appear, click next.</p>
<p>9. Add the new node&#8217;s virtual IP information, click next.</p>
<p>10. You will then see the &#8220;Summary&#8221; screen, click finish.</p>
<p>11. You will now see a progress bar creating and starting the new CRS<br />
resources. Once this is finished, click ok, view the configuration<br />
results, and click on the exit button.</p>
<p>12. Verify that interconnect information is correct with:</p>
<p>oifcfg getif</p>
<p>If it is not correct, change it with:</p>
<p>oifcfg setif &lt;interface-name&gt;/&lt;subnet&gt;:&lt;cluster_interconnect|public&gt;</p>
<p>For example:</p>
<p>oifcfg setif -global eth1/10.10.10.0:cluster_interconnect</p>
<p>or</p>
<p>oifcfg setif -node &lt;nodename&gt; eth1/10.10.10.0:cluster_interconnect</p>
<p>D. Reconfigure listeners for new node.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>1. Run NETCA on the NEW node to verify that the listener is configured on<br />
the new node. Example:</p>
<p>DISPLAY=ipaddress:0.0; export DISPLAY<br />
netca</p>
<p>2. Choose &#8220;Cluster Configuration&#8221;, click next.</p>
<p>3. Select all nodes, click next.</p>
<p>4. Choose &#8220;Listener configuration&#8221;, click next.</p>
<p>5. Choose &#8220;Reconfigure&#8221;, click next.</p>
<p>6. Choose the listener you would like to reconfigure, click next.</p>
<p>7. Choose the correct protocol, click next.</p>
<p>8. Choose the correct port, click next.</p>
<p>9. Choose whether or not to configure another listener, click next.</p>
<p>10. You may get an error message saying, &#8220;The information provided for this<br />
listener is currently in use by another listener&#8230;&#8221;. Click yes to<br />
continue anyway.</p>
<p>11. The &#8220;Listener Configuration Complete&#8221; screen will appear, click next.</p>
<p>12. Click &#8220;Finish&#8221; to exit NETCA.</p>
<p>13. Run crs_stat to verify that the listener CRS resource was created.<br />
Example:</p>
<p>cd $ORA_CRSHOME/bin<br />
./crs_stat</p>
<p>14. The new listener will likely be offline. Start it by starting the<br />
nodeapps on the new node. Example:</p>
<p>srvctl start nodeapps -n &lt;newnode&gt;</p>
<p>15. Use crs_stat to confirm that all VIP&#8217;s, GSD&#8217;s, ONS&#8217;s, and listeners are<br />
ONLINE.</p>
<p>E. Add instances via DBCA. (for standby databases see section F)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1. To add new instances, launch DBCA from a pre-existing node. Example:</p>
<p>DISPLAY=ipaddress:0.0; export DISPLAY<br />
dbca</p>
<p>2. On the welcome screen, choose &#8220;Oracle Real Application Clusters&#8221;,<br />
click next.</p>
<p>3. Choose &#8220;Instance Management&#8221;, click next.</p>
<p>4. Choose &#8220;Add an Instance&#8221;, click next.</p>
<p>5. Choose the database you would like to add an instance to and specify<br />
a user with SYSDBA privileges, click next. Click next again&#8230;</p>
<p>6. Choose the correct instance name and node, click next.</p>
<p>7. Review the storage screen, click next.</p>
<p>8. Review the summary screen, click OK and wait a few seconds for the<br />
progress bar to start.</p>
<p>9. Allow the progress bar to finish. When asked if you want to perform<br />
another operation, choose &#8220;No&#8221; to exit DBCA.</p>
<p>10. To verify success, log into one of the instances and query from<br />
gv$instance, you should now see all nodes.</p>
<p>F. Adding Instances to the Standby Database<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1. If you are using a RAC primary, make sure the steps from section E have<br />
been performed. If you are using a single instance primary, add the redo<br />
log groups and threads to the primary database via &#8220;alter database&#8221;<br />
commands. Example commands:</p>
<p>alter database add logfile thread 2<br />
group 3  size 51200k,<br />
group 4  size 51200k;</p>
<p>alter database enable public thread 2;</p>
<p>2. Create a new standby controlfile from the primary database and copy it<br />
to the standby. Example commmand:</p>
<p>alter database create standby controlfile as &#8220;/u01/stby.ctl&#8221;;</p>
<p>3. Shut down the standby database, back up the existing standby<br />
controlfile on the standby database, and copy the new standby<br />
controlfile into place.</p>
<p>4. Adjust any init.ora or spfile parameters such as thread, instance_name,<br />
instance_number, local_listener, undo_tablespace, etc&#8230; for any new<br />
instances.</p>
<p>5. Recover the standby database.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/01/07/405.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>browse the hierarchy of ASM</title>
		<link>http://yumianfeilong.com/html/2010/01/01/408.html</link>
		<comments>http://yumianfeilong.com/html/2010/01/01/408.html#comments</comments>
		<pubDate>Fri, 01 Jan 2010 03:54:35 +0000</pubDate>
		<dc:creator>yumianfeilong</dc:creator>
		
		<category><![CDATA[Boring]]></category>

		<category><![CDATA[ASM]]></category>

		<guid isPermaLink="false">http://yumianfeilong.com/?p=408</guid>
		<description><![CDATA[From Oracle Database 10g Automatic Storage Management Technical Best Practices
SELECT concat(&#8217;+'&#124;&#124;gname, sys_connect_by_path(aname, &#8216;/&#8217;)) full_alias_path FROM
(SELECT g.name gname, a.parent_index pindex, a.name aname,
a.reference_index rindex FROM v$asm_alias a, v$asm_diskgroup g
WHERE a.group_number = g.group_number)
START WITH (mod(pindex, power(2, 24))) = 0
CONNECT BY PRIOR rindex = pindex;
]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.oracle.com/technology/products/database/asm/pdf/asm_10gr2_bestpractices%2009-07.pdf">Oracle Database 10g Automatic Storage Management Technical Best Practices</a></p>
<blockquote><p>SELECT concat(&#8217;+'||gname, sys_connect_by_path(aname, &#8216;/&#8217;)) full_alias_path FROM<br />
(SELECT g.name gname, a.parent_index pindex, a.name aname,<br />
a.reference_index rindex FROM v$asm_alias a, v$asm_diskgroup g<br />
WHERE a.group_number = g.group_number)<br />
START WITH (mod(pindex, power(2, 24))) = 0<br />
CONNECT BY PRIOR rindex = pindex;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yumianfeilong.com/html/2010/01/01/408.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
