<?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>惜分飞 &#187; EXADATA</title>
	<atom:link href="https://www.xifenfei.com/category/database/oracle/exadata/feed" rel="self" type="application/rss+xml" />
	<link>https://www.xifenfei.com</link>
	<description>提供7*24专业数据库(Oracle,SQL Server,MySQL,PostgreSQL等)恢复和技术支持@Tel:17813235971</description>
	<lastBuildDate>Sun, 22 Nov 2026 15:21:14 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>exadata换flash卡的一些操作</title>
		<link>https://www.xifenfei.com/2024/06/xd-flash.html</link>
		<comments>https://www.xifenfei.com/2024/06/xd-flash.html#comments</comments>
		<pubDate>Fri, 21 Jun 2024 14:37:04 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>
		<category><![CDATA[xd换flash卡]]></category>
		<category><![CDATA[重建flashcache]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=10805</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2024/06/xd-flash.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2024/06/xd-flash.html" target="_blank">exadata换flash卡的一些操作</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>客户有一套oracle exadata x3-2的1/4配置（采用高容量磁盘）的机器，反馈由于flash卡异常导致性能很慢,通过临时关闭异常卡所在机器业务恢复正常<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2024/06/xd_flash_error.png"><img src="https://www.xifenfei.com/wp-content/uploads/2024/06/xd_flash_error.png" alt="xd_flash_error" width="995" height="677" class="alignnone size-full wp-image-10806" /></a><br />
<hr />
相关版本信息</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# imageinfo

Kernel version: 2.6.32-400.11.1.el5uek #1 SMP Thu Nov 22 03:29:09 PST 2012 x86_64
Cell version: OSS_11.2.3.2.1_LINUX.X64_130109
Cell rpm version: cell-11.2.3.2.1_LINUX.X64_130109-1

Active image version: 11.2.3.2.1.130109
Active image activated: 2013-06-27 02:24:19 -0700
Active image status: success
Active system partition on device: /dev/md6
Active software partition on device: /dev/md8

In partition rollback: Impossible

Cell boot usb partition: /dev/sdm1
Cell boot usb version: 11.2.3.2.1.130109

Inactive image version: 11.2.3.2.0.120713
Inactive image activated: 2012-10-14 06:46:16 -0700
Inactive image status: success
Inactive system partition on device: /dev/md5
Inactive software partition on device: /dev/md7

[root@oa0cel03 ~]# cellcli
CellCLI: Release 11.2.3.2.1 - Production on Thu Jun 20 18:28:37 CST 2024

Copyright (c) 2007, 2012, Oracle.  All rights reserved.
Cell Efficiency Ratio: 3,617

CellCLI&gt; list cell detail
	 name:              	 oa0cel03
	 bbuTempThreshold:  	 60
	 bbuChargeThreshold:	 800
	 bmcType:           	 IPMI
	 cellVersion:       	 OSS_11.2.3.2.1_LINUX.X64_130109
	 cpuCount:          	 24
	 diagHistoryDays:   	 7
	 fanCount:          	 8/8
	 fanStatus:         	 normal
	 flashCacheMode:    	 WriteBack
	 id:                	 1238FM507A
	 interconnectCount: 	 3
	 interconnect1:     	 bondib0
	 iormBoost:         	 0.0
	 ipaddress1:        	 192.168.10.5/22
	 kernelVersion:     	 2.6.32-400.11.1.el5uek
	 locatorLEDStatus:  	 off
	 makeModel:         	 Oracle Corporation SUN FIRE X4270 M3 SAS
	 metricHistoryDays: 	 7
	 notificationMethod:	 snmp
	 notificationPolicy:	 critical,warning,clear
	 offloadEfficiency: 	 3,616.5
	 powerCount:        	 2/2
	 powerStatus:       	 normal
	 releaseVersion:    	 11.2.3.2.1
	 releaseTrackingBug:	 14522699
	 snmpSubscriber:    	 host=oa0db02.qhsrmyy.com,port=3872,community=cell
	                    	 host=oa0db01.qhsrmyy.com,port=3872,community=cell
	 status:            	 online
	 temperatureReading:	 28.0
	 temperatureStatus: 	 normal
	 upTime:            	 0 days, 3:49
	 cellsrvStatus:     	 running
	 msStatus:          	 running
	 rsStatus:          	 running

</pre>
<p>客户第一次换盘之后，依旧有性能问题，先把griddisk给inactive</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e list metriccurrent attributes name,metricvalue where name like \'FC_BY_DIRTY.*\'
	 FC_BY_DIRTY	 38,820 MB
[root@oa0cel03 ~]# cellcli -e &quot;alter flashcache all flush&quot;
Flash cache on FD_00_oa0cel03 successfully altered
Flash cache on FD_01_oa0cel03 successfully altered
Flash cache on FD_02_oa0cel03 successfully altered
Flash cache on FD_03_oa0cel03 successfully altered
Flash cache on FD_04_oa0cel03 successfully altered
Flash cache on FD_05_oa0cel03 successfully altered
Flash cache on FD_06_oa0cel03 successfully altered
Flash cache on FD_07_oa0cel03 successfully altered
Flash cache on FD_09_exastlx01 successfully altered
Flash cache on FD_10_exastlx01 successfully altered
Flash cache on FD_11_oa0cel03 skipped because FD_11_oa0cel03 is degraded
Flash cache on FD_12_oa0cel03 successfully altered
Flash cache on FD_13_oa0cel03 successfully altered
Flash cache on FD_14_oa0cel03 successfully altered
Flash cache on FD_15_oa0cel03 successfully altered
[root@oa0cel03 ~]# cellcli -e list metriccurrent attributes name,metricvalue where name like \'FC_BY_DIRTY.*\'
	 FC_BY_DIRTY	 0.000 MB
[root@oa0cel03 ~]# cellcli -e &quot;alter griddisk all inactive&quot;
GridDisk DATA_oa0_CD_00_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_01_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_02_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_03_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_04_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_05_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_06_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_07_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_08_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_09_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_10_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_11_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_02_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_03_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_04_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_05_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_06_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_07_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_08_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_09_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_10_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_11_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_00_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_01_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_02_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_03_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_04_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_05_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_06_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_07_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_08_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_09_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_10_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_11_oa0cel03 successfully altered
[root@oa0cel03 ~]# cellcli -e list griddisk
	 DATA_oa0_CD_00_oa0cel03	 inactive
	 DATA_oa0_CD_01_oa0cel03	 inactive
	 DATA_oa0_CD_02_oa0cel03	 inactive
	 DATA_oa0_CD_03_oa0cel03	 inactive
	 DATA_oa0_CD_04_oa0cel03	 inactive
	 DATA_oa0_CD_05_oa0cel03	 inactive
	 DATA_oa0_CD_06_oa0cel03	 inactive
	 DATA_oa0_CD_07_oa0cel03	 inactive
	 DATA_oa0_CD_08_oa0cel03	 inactive
	 DATA_oa0_CD_09_oa0cel03	 inactive
	 DATA_oa0_CD_10_oa0cel03	 inactive
	 DATA_oa0_CD_11_oa0cel03	 inactive
	 DBFS_DG_CD_02_oa0cel03  	 inactive
	 DBFS_DG_CD_03_oa0cel03  	 inactive
	 DBFS_DG_CD_04_oa0cel03  	 inactive
	 DBFS_DG_CD_05_oa0cel03  	 inactive
	 DBFS_DG_CD_06_oa0cel03  	 inactive
	 DBFS_DG_CD_07_oa0cel03  	 inactive
	 DBFS_DG_CD_08_oa0cel03  	 inactive
	 DBFS_DG_CD_09_oa0cel03  	 inactive
	 DBFS_DG_CD_10_oa0cel03  	 inactive
	 DBFS_DG_CD_11_oa0cel03  	 inactive
	 RECO_oa0_CD_00_oa0cel03	 inactive
	 RECO_oa0_CD_01_oa0cel03	 inactive
	 RECO_oa0_CD_02_oa0cel03	 inactive
	 RECO_oa0_CD_03_oa0cel03	 inactive
	 RECO_oa0_CD_04_oa0cel03	 inactive
	 RECO_oa0_CD_05_oa0cel03	 inactive
	 RECO_oa0_CD_06_oa0cel03	 inactive
	 RECO_oa0_CD_07_oa0cel03	 inactive
	 RECO_oa0_CD_08_oa0cel03	 inactive
	 RECO_oa0_CD_09_oa0cel03	 inactive
	 RECO_oa0_CD_10_oa0cel03	 inactive
	 RECO_oa0_CD_11_oa0cel03	 inactive
[root@oa0cel03 ~]#  cellcli -e list griddisk attributes name,asmmodestatus,asmdeactivationoutcome 
	 DATA_oa0_CD_00_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_01_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_02_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_03_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_04_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_05_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_06_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_07_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_08_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_09_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_10_oa0cel03	 OFFLINE	 Yes
	 DATA_oa0_CD_11_oa0cel03	 OFFLINE	 Yes
	 DBFS_DG_CD_02_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_03_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_04_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_05_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_06_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_07_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_08_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_09_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_10_oa0cel03  	 OFFLINE	 Yes
	 DBFS_DG_CD_11_oa0cel03  	 OFFLINE	 Yes
	 RECO_oa0_CD_00_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_01_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_02_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_03_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_04_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_05_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_06_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_07_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_08_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_09_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_10_oa0cel03	 OFFLINE	 Yes
	 RECO_oa0_CD_11_oa0cel03	 OFFLINE	 Yes
</pre>
<p>客户继续换卡尝试，最终确认4号卡槽损坏，放弃这个槽位重建flashcache</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e list celldisk
	 CD_00_oa0cel03	 normal
	 CD_01_oa0cel03	 normal
	 CD_02_oa0cel03	 normal
	 CD_03_oa0cel03	 normal
	 CD_04_oa0cel03	 normal
	 CD_05_oa0cel03	 normal
	 CD_06_oa0cel03	 normal
	 CD_07_oa0cel03	 normal
	 CD_08_oa0cel03	 normal
	 CD_09_oa0cel03	 normal
	 CD_10_oa0cel03	 normal
	 CD_11_oa0cel03	 normal
	 FD_00_oa0cel03	 not present
	 FD_01_oa0cel03	 not present
	 FD_02_oa0cel03	 not present
	 FD_03_oa0cel03	 not present
	 FD_04_oa0cel03	 normal
	 FD_05_oa0cel03	 normal
	 FD_06_oa0cel03	 normal
	 FD_07_oa0cel03	 normal
	 FD_08_oa0cel03	 normal
	 FD_09_oa0cel03	 normal
	 FD_10_oa0cel03	 normal
	 FD_10_exastlx01 normal
	 FD_12_oa0cel03	 normal
	 FD_13_oa0cel03	 normal
	 FD_14_oa0cel03	 normal
	 FD_15_oa0cel03	 normal
</pre>
<p>这个里面FD_10_exastlx01名字是以前老的卡上面留下来的,太影响视觉感官了，删除重建</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e drop celldisk FD_10_exastlx01
CellDisk FD_10_exastlx01 successfully dropped
[root@oa0cel03 ~]# cellcli -e create celldisk all flashdisk
CellDisk FD_11_oa0cel03 successfully created
[root@oa0cel03 ~]# cellcli -e list celldisk
	 CD_00_oa0cel03	 normal
	 CD_01_oa0cel03	 normal
	 CD_02_oa0cel03	 normal
	 CD_03_oa0cel03	 normal
	 CD_04_oa0cel03	 normal
	 CD_05_oa0cel03	 normal
	 CD_06_oa0cel03	 normal
	 CD_07_oa0cel03	 normal
	 CD_08_oa0cel03	 normal
	 CD_09_oa0cel03	 normal
	 CD_10_oa0cel03	 normal
	 CD_11_oa0cel03	 normal
	 FD_00_oa0cel03	 not present
	 FD_01_oa0cel03	 not present
	 FD_02_oa0cel03	 not present
	 FD_03_oa0cel03	 not present
	 FD_04_oa0cel03	 normal
	 FD_05_oa0cel03	 normal
	 FD_06_oa0cel03	 normal
	 FD_07_oa0cel03	 normal
	 FD_08_oa0cel03	 normal
	 FD_09_oa0cel03	 normal
	 FD_10_oa0cel03	 normal
	 FD_11_oa0cel03	 normal
	 FD_12_oa0cel03	 normal
	 FD_13_oa0cel03	 normal
	 FD_14_oa0cel03	 normal
	 FD_15_oa0cel03	 normal
</pre>
<p>删除flashlog和flashcache</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e drop flashlog
Flash log oa0cel03_FLASHLOG successfully dropped
[root@oa0cel03 ~]# 
[root@oa0cel03 ~]# 
[root@oa0cel03 ~]# 
[root@oa0cel03 ~]# cellcli -e drop flashcache
Flash cache oa0cel03_FLASHCACHE successfully dropped
</pre>
<p>尝试重建flashlog和flashcache</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e create flashlog all size=512M
Flash log oa0cel03_FLASHLOG successfully created, but the following cell disks were degraded because their 
statuses are not normal: FD_00_oa0cel03, FD_01_oa0cel03, FD_02_oa0cel03, FD_03_oa0cel03
</pre>
<p>由于有一些celldisk实际硬盘不存在，无法直接创建成功，需要删除对应的celldisk</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e drop celldisk FD_00_oa0cel03

CELL-04519: Cannot complete the drop of cell disk: FD_00_oa0cel03. Received error: 
CELL-04516: LUN Object cannot be obtained for cell disk: FD_00_oa0cel03 
Cell disks not dropped: FD_00_oa0cel03 

--强制删除
[root@oa0cel03 ~]# cellcli -e drop celldisk FD_00_oa0cel03  force

CellDisk FD_00_oa0cel03 successfully dropped
[root@oa0cel03 ~]# cellcli -e drop celldisk FD_01_oa0cel03  force
CellDisk FD_01_oa0cel03 successfully dropped
[root@oa0cel03 ~]# cellcli -e drop celldisk FD_02_oa0cel03  force
CellDisk FD_02_oa0cel03 successfully dropped
[root@oa0cel03 ~]# cellcli -e drop celldisk FD_03_oa0cel03  force
CellDisk FD_03_oa0cel03 successfully dropped
[root@oa0cel03 ~]# cellcli -e list celldisk
	 CD_00_oa0cel03	 normal
	 CD_01_oa0cel03	 normal
	 CD_02_oa0cel03	 normal
	 CD_03_oa0cel03	 normal
	 CD_04_oa0cel03	 normal
	 CD_05_oa0cel03	 normal
	 CD_06_oa0cel03	 normal
	 CD_07_oa0cel03	 normal
	 CD_08_oa0cel03	 normal
	 CD_09_oa0cel03	 normal
	 CD_10_oa0cel03	 normal
	 CD_11_oa0cel03	 normal
	 FD_04_oa0cel03	 normal
	 FD_05_oa0cel03	 normal
	 FD_06_oa0cel03	 normal
	 FD_07_oa0cel03	 normal
	 FD_08_oa0cel03	 normal
	 FD_09_oa0cel03	 normal
	 FD_10_oa0cel03	 normal
	 FD_11_oa0cel03	 normal
	 FD_12_oa0cel03	 normal
	 FD_13_oa0cel03	 normal
	 FD_14_oa0cel03	 normal
	 FD_15_oa0cel03	 normal
</pre>
<p>创建flashlog和flashcache</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e create flashlog all size=512M
Flash log oa0cel03_FLASHLOG successfully created
[root@oa0cel03 ~]# cellcli -e list flashlog detail
	 name:              	 oa0cel03_FLASHLOG
	 cellDisk:               …………
	 creationTime:      	 2024-06-21T18:20:51+08:00
	 degradedCelldisks: 	 
	 effectiveSize:     	 384M
	 efficiency:        	 100.0
	 id:                	 f3ab3882-fa03-4f49-b0ca-879ef3f2ac05
	 size:              	 384M
	 status:            	 normal
[root@oa0cel03 ~]# cellcli -e create flashcache all
Flash cache oa0cel03_FLASHCACHE successfully created
[root@oa0cel03 ~]# cellcli -e list flashcache detail
	 name:              	 oa0cel03_FLASHCACHE
	 cellDisk:          	 …………
	 creationTime:      	 2024-06-21T18:21:24+08:00
	 degradedCelldisks: 	 
	 effectiveCacheSize:	 1116.5625G
	 id:                	 2195ac46-3021-461f-a6d5-5f64ff1da546
	 size:              	 1116.5625G
	 status:            	 normal
[root@oa0cel03 ~]#  cellcli -e list cell detail | grep flashCacheMode
	 flashCacheMode:    	 WriteBack
</pre>
<p>active griddisk，把这个cell的griddisk加入到asm磁盘组中</p>
<pre class="brush: bash; title: ; notranslate">
[root@oa0cel03 ~]# cellcli -e &quot;alter griddisk all active&quot;
GridDisk DATA_oa0_CD_00_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_01_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_02_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_03_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_04_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_05_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_06_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_07_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_08_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_09_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_10_oa0cel03 successfully altered
GridDisk DATA_oa0_CD_11_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_02_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_03_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_04_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_05_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_06_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_07_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_08_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_09_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_10_oa0cel03 successfully altered
GridDisk DBFS_DG_CD_11_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_00_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_01_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_02_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_03_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_04_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_05_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_06_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_07_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_08_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_09_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_10_oa0cel03 successfully altered
GridDisk RECO_oa0_CD_11_oa0cel03 successfully altered
[root@oa0cel03 ~]# cellcli -e list griddisk attributes name,asmmodestatus,asmdeactivationoutcome,status
	 DATA_oa0_CD_00_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_01_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_02_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_03_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_04_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_05_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_06_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_07_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_08_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_09_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_10_oa0cel03	 SYNCING	 Yes	 active
	 DATA_oa0_CD_11_oa0cel03	 SYNCING	 Yes	 active
	 DBFS_DG_CD_02_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_03_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_04_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_05_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_06_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_07_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_08_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_09_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_10_oa0cel03  	 ONLINE 	 Yes	 active
	 DBFS_DG_CD_11_oa0cel03  	 ONLINE 	 Yes	 active
	 RECO_oa0_CD_00_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_01_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_02_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_03_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_04_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_05_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_06_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_07_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_08_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_09_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_10_oa0cel03	 SYNCING	 Yes	 active
	 RECO_oa0_CD_11_oa0cel03	 SYNCING	 Yes	 active
[root@oa0cel03 ~]# cellcli -e list metriccurrent attributes name,metricvalue where name like \'FC_BY_DIRTY.*\'
	 FC_BY_DIRTY	 585 MB
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/cellcli%e5%91%bd%e4%bb%a4%e7%ae%80%e4%bb%8b.html" rel="bookmark" class="crp_title">cellcli命令简介</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/12/ora-15411.html" rel="bookmark" class="crp_title">ORA-15411: Failure groups in disk group DATA have different number of disks.</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/12/xd-recovery.html" rel="bookmark" class="crp_title">Oracle Exadata坏盘导致磁盘组无法mount恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/oracle-12c-pdb%e9%83%a8%e5%88%86%e5%8a%9f%e8%83%bd%e6%b5%8b%e8%af%95.html" rel="bookmark" class="crp_title">ORACLE 12C PDB部分功能测试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/12/_dropped_0001_data-recovery.html" rel="bookmark" class="crp_title">asm磁盘类似_DROPPED_0001_DATA名称故障处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/ora-00313%e5%92%8cora-00313%e5%a4%84%e7%90%86.html" rel="bookmark" class="crp_title">数据库open状态下日志异常处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/09/oracle-recovery-tool-ora-00279-ora-00289-ora-00280.html" rel="bookmark" class="crp_title">Oracle Recovery Tools解决ORA-00279 ORA-00289 ORA-00280故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/obet-offline-datafile.html" rel="bookmark" class="crp_title">obet一键恢复offline数据文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/02/dul%e5%a4%84%e7%90%86%e5%88%86%e5%8c%ba%e8%a1%a8.html" rel="bookmark" class="crp_title">dul处理分区表</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/06/force-open-dm.html" rel="bookmark" class="crp_title">达梦数据库redo异常强制拉库</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/10/dd-npohasd.html" rel="bookmark" class="crp_title">11.2 crs启动超时dd  npohasd 处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/oracle%e5%9c%a8%e7%ba%bf%e5%88%87%e6%8d%a2undo%e8%a1%a8%e7%a9%ba%e9%97%b4.html" rel="bookmark" class="crp_title">ORACLE在线切换undo表空间</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2024/06/xd-flash.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推荐Exadata相关Blog网站</title>
		<link>https://www.xifenfei.com/2014/03/%e6%8e%a8%e8%8d%90exadata%e7%9b%b8%e5%85%b3blog%e7%bd%91%e7%ab%99.html</link>
		<comments>https://www.xifenfei.com/2014/03/%e6%8e%a8%e8%8d%90exadata%e7%9b%b8%e5%85%b3blog%e7%bd%91%e7%ab%99.html#comments</comments>
		<pubDate>Sun, 16 Mar 2014 11:28:00 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=5207</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2014/03/%e6%8e%a8%e8%8d%90exadata%e7%9b%b8%e5%85%b3blog%e7%bd%91%e7%ab%99.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2014/03/%e6%8e%a8%e8%8d%90exadata%e7%9b%b8%e5%85%b3blog%e7%bd%91%e7%ab%99.html" target="_blank">推荐Exadata相关Blog网站</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>周末无意中发现朋友的网站上多了很多关于Exadata的资料,转载一些Exadata各个版本的硬件配置,以便不时之需.<br />
<a href="http://www.lunar2013.com?p=745" title="Exadata X4-2 满配的硬件配置(Full Rack，高容量)" target="_blank">Exadata X4-2 满配的硬件配置(Full Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=746" title="Exadata X4-2 满配的硬件配置(Full Rack，高性能)" target="_blank">Exadata X4-2 满配的硬件配置(Full Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=748" title="Exadata X4-2 二分之一配的硬件配置(1/2 Rack，高性能)" target="_blank">Exadata X4-2 二分之一配的硬件配置(1/2 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=747" title="Exadata X4-2 二分之一配的硬件配置(1/2 Rack，高容量)" target="_blank">Exadata X4-2 二分之一配的硬件配置(1/2 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=749" title="Exadata X4-2 四分之一配的硬件配置(1/4 Rack，高性能)" target="_blank">Exadata X4-2 四分之一配的硬件配置(1/4 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=750" title="Exadata X4-2 四分之一配的硬件配置(1/4 Rack，高容量)" target="_blank">Exadata X4-2 四分之一配的硬件配置(1/4 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=744" title="Exadata X4-2 八分之一配的硬件配置(1/8 Rack，高性能)" target="_blank">Exadata X4-2 八分之一配的硬件配置(1/8 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=729" title="Exadata X4-2 八分之一配的硬件配置(1/8 Rack，高容量)" target="_blank">Exadata X4-2 八分之一配的硬件配置(1/8 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=769" title="Exadata X3-2 满配的硬件配置(Full Rack，高容量)" target="_blank">Exadata X3-2 满配的硬件配置(Full Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=773" title="Exadata X3-2 满配的硬件配置(Full Rack，高性能)" target="_blank">Exadata X3-2 满配的硬件配置(Full Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=775" title="Exadata X3-2 二分之一配的硬件配置(1/2 Rack，高容量)" target="_blank">Exadata X3-2 二分之一配的硬件配置(1/2 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=777" title="Exadata X3-2 二分之一配的硬件配置(1/2 Rack，高性能)" target="_blank">Exadata X3-2 二分之一配的硬件配置(1/2 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=779" title="Exadata X3-2 四分之一配的硬件配置(1/4 Rack，高容量)" target="_blank">Exadata X3-2 四分之一配的硬件配置(1/4 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=781" title="Exadata X3-2 四分之一配的硬件配置(1/4 Rack，高性能)" target="_blank">Exadata X3-2 四分之一配的硬件配置(1/4 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=730" title="Exadata X3-2 八分之一配的硬件配置(1/8 Rack，高容量)" target="_blank">Exadata X3-2 八分之一配的硬件配置(1/8 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=764" title="Exadata X3-2 八分之一配的硬件配置(1/8 Rack，高性能)" target="_blank">Exadata X3-2 八分之一配的硬件配置(1/8 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=714" title="Exadata X2-2 满配的硬件配置(Full Rack，高容量)" target="_blank">Exadata X2-2 满配的硬件配置(Full Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=717" title="Exadata X2-2 满配的硬件配置(Full Rack，高性能)" target="_blank">Exadata X2-2 满配的硬件配置(Full Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=719" title="Exadata X2-2 二分之一配的硬件配置(1/2 Rack，高容量)" target="_blank">Exadata X2-2 二分之一配的硬件配置(1/2 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=721" title="Exadata X2-2 二分之一配的硬件配置(1/2 Rack，高性能)" target="_blank">Exadata X2-2 二分之一配的硬件配置(1/2 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=723" title="Exadata X2-2 四分之一配的硬件配置(1/4 Rack，高容量)" target="_blank">Exadata X2-2 四分之一配的硬件配置(1/4 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=725" title="Exadata X2-2 四分之一配的硬件配置(1/4 Rack，高性能)" target="_blank">Exadata X2-2 四分之一配的硬件配置(1/4 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=837" title="Exadata V2 满配的硬件配置(Full Rack，高容量)" target="_blank">Exadata V2 满配的硬件配置(Full Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=835" title="Exadata V2 满配的硬件配置(Full Rack，高性能)" target="_blank">Exadata V2 满配的硬件配置(Full Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=833" title="Exadata V2 二分之一配的硬件配置(1/2 Rack，高容量)" target="_blank">Exadata V2 二分之一配的硬件配置(1/2 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=831" title="Exadata V2 二分之一配的硬件配置(1/2 Rack，高性能)" target="_blank">Exadata V2 二分之一配的硬件配置(1/2 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=822" title="Exadata V2 四分之一配的硬件配置(1/4 Rack，高容量)" target="_blank">Exadata V2 四分之一配的硬件配置(1/4 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=818" title="Exadata V2 四分之一配的硬件配置(1/4 Rack，高性能)" target="_blank">Exadata V2 四分之一配的硬件配置(1/4 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=855" title="Exadata V1 满配的硬件配置(Full Rack，高容量)" target="_blank">Exadata V1 满配的硬件配置(Full Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=853" title="Exadata V1 满配的硬件配置(Full Rack，高性能)" target="_blank">Exadata V1 满配的硬件配置(Full Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=851" title="Exadata V1 二分之一配的硬件配置(1/2 Rack，高容量)" target="_blank">Exadata V1 二分之一配的硬件配置(1/2 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=849" title="Exadata V1 二分之一配的硬件配置(1/2 Rack，高性能)" target="_blank">Exadata V1 二分之一配的硬件配置(1/2 Rack，高性能)</a><br />
<a href="http://www.lunar2013.com?p=847" title="Exadata V1 四分之一配的硬件配置(1/4 Rack，高容量)" target="_blank">Exadata V1 四分之一配的硬件配置(1/4 Rack，高容量)</a><br />
<a href="http://www.lunar2013.com?p=839" title="Exadata V1 四分之一配的硬件配置(1/4 Rack，高性能)" target="_blank">Exadata V1 四分之一配的硬件配置(1/4 Rack，高性能)</a><br />
推荐<a href="http://www.lunar2013.com" title="Lunar的oracle实验室" target="_blank">Lunar的oracle实验室</a>&#8212;国内少有的xd相关Blog</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/oracle-database-online-documentation.html" rel="bookmark" class="crp_title">Oracle Database Online Documentation</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/05/oracle-23ai-release-schedule.html" rel="bookmark" class="crp_title">Oracle 发布计划&#8212;包含Oracle 23ai版本</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/12/oracle-dul%e6%b1%87%e6%80%bb.html" rel="bookmark" class="crp_title">ORACLE DUL汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/02/oracle-122-release-schedule.html" rel="bookmark" class="crp_title">oracle database 12.2 发布计划表</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/bbed-%e6%96%87%e7%ab%a0%e6%b1%87%e6%80%bb.html" rel="bookmark" class="crp_title">bbed 文章汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/03/service-support-cycle-202503.html" rel="bookmark" class="crp_title">当前主流数据库版本服务支持周期-202503</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html" rel="bookmark" class="crp_title">EXADATA EHCC初试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/flash%e5%b9%bb%e7%81%af%e7%89%87.html" rel="bookmark" class="crp_title">flash幻灯片</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/10/restore-mis-operation-recovery.html" rel="bookmark" class="crp_title">restore database误操作恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/03/rm-recovery-fragmentation-recovery.html" rel="bookmark" class="crp_title">rm -rf 删除数据文件恢复方法&#8212;文件系统反删除+oracle碎片重组</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/06/asm-add-vg.html" rel="bookmark" class="crp_title">asm磁盘加入vg恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/03/ora-600-16703-202403.html" rel="bookmark" class="crp_title">最近遇到几起ORA-600 16703故障(tab$被清空),请引起重视</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2014/03/%e6%8e%a8%e8%8d%90exadata%e7%9b%b8%e5%85%b3blog%e7%bd%91%e7%ab%99.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PXE刷XD</title>
		<link>https://www.xifenfei.com/2013/04/%e4%bd%bf%e7%94%a8pxe%e5%88%b7xd.html</link>
		<comments>https://www.xifenfei.com/2013/04/%e4%bd%bf%e7%94%a8pxe%e5%88%b7xd.html#comments</comments>
		<pubDate>Thu, 04 Apr 2013 18:35:34 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=4241</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2013/04/%e4%bd%bf%e7%94%a8pxe%e5%88%b7xd.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2013/04/%e4%bd%bf%e7%94%a8pxe%e5%88%b7xd.html" target="_blank">使用PXE刷XD</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>需要安装服务</strong></p>
<pre class="brush: bash; title: ; notranslate">bind
dhcp
system-config-netboot
tftp-server
</pre>
<p><strong>dhcp配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei ~]# more /etc/redhat-release 
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

[root@xifenfei ~]# more /etc/dhcpd.conf
subnet 192.168.30.0 netmask 255.255.255.0 {
  range dynamic-bootp 192.168.30.101 192.168.30.126;
  option broadcast-address 192.168.30.255;
  option routers 192.168.30.1;
  next-server 192.168.30.90;
  filename = &quot;pxelinux.0&quot;;
}
--以下直接复制无需修改
ddns-update-style none;
subnet 10.182.77.0 netmask 255.255.255.0 {}
subnet 10.182.45.0 netmask 255.255.255.0 {
  range dynamic-bootp 10.182.45.92 10.182.45.100;
  option broadcast-address 10.182.45.255;
  option routers 10.182.45.1;
  next-server 10.182.77.133;
  filename = &quot;pxelinux.0&quot;;
}
</pre>
<p><strong>tftp配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei ~]# more /etc/xinetd.d/tftp
service tftp
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -v -s /xd
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
</pre>
<p><strong>nfs配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei ~]# more /etc/exports
/xd *(no_root_squash,no_subtree_check,insecure)
</pre>
<p><strong>pxe配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei ~]# cp /usr/share/syslinux/pxelinux.0 /xd

[root@xifenfei pxelinux.cfg]# more /xd/pxelinux.cfg/default 
default linux
timeout 70

label cell
prompt 1
display boot.msg
  kernel dl180/vmlinux-11.2.3.2.1-dl180-DL180
  append initrd=dl180/initrd-11.2.3.2.1-dl180-DL180.img pxe stit updfrm dhcp sk=192.168.30.90:/xd/dl180 preconf=192.168.30.90:/xd/prec
onf.csv

label db
prompt 1
display boot.msg
  kernel dl360/vmlinux-11.2.3.2.1-dl360-DL360
  append initrd=dl360/initrd-11.2.3.2.1-dl360-DL360.img pxe stit updfrm dhcp sk=192.168.30.90:/xd/dl360 preconf=192.168.30.90:/xd/prec
onf.csv
</pre>
<pre class="brush: bash; title: ; notranslate">
tar -pxvf the ImageMaker.tar
cd /xd/dl180
[root@xifenfei dl180]# ./makeImageMedia.sh -pxe -pxeout dl180
Please wait. Calculating md5 checksums for cellbits ...
Calculating md5 checksum for exaos.tbz ...
Calculating md5 checksum for cellboot.tbz ...
Calculating md5 checksum for cellfw.tbz ...
Calculating md5 checksum for kernel.tbz ...
Calculating md5 checksum for ofed.tbz ...
Calculating md5 checksum for sunutils.tbz ...
Calculating md5 checksum for hputils.tbz ...
Calculating md5 checksum for c7rpms.tbz ...
Calculating md5 checksum for commonos.tbz ...
Calculating md5 checksum for debugos.tbz ...
Calculating md5 checksum for cellrpms.tbz ...
Calculating md5 checksum for doclib.zip ...
Calculating md5 checksum for cell.bin ...
Store filename of nfsimg tarball nfsimg-11.2.3.2.1-dl180-DL180.tar inside initrd
Please wait. Making initrd ...
214836 blocks
Please wait. Calculating md5 checksums for boot ...
PXE NFS image:   /xd/dl180/./PXE/nfsimg-11.2.3.2.1-dl180-DL180.tar
PXE NFS md5 sum: /xd/dl180/./PXE/nfsimg-11.2.3.2.1-dl180-DL180.tar.md5
PXE initrd:      /xd/dl180/./PXE/initrd-11.2.3.2.1-dl180-DL180.img
PXE kernel:      /xd/dl180/./PXE/vmlinux-11.2.3.2.1-dl180-DL180

[root@xifenfei dl180]# mv /xd/dl180/./PXE/nfsimg-11.2.3.2.1-dl180-DL180.tar /xd/dl180/
[root@xifenfei dl180]# mv /xd/dl180/./PXE/nfsimg-11.2.3.2.1-dl180-DL180.tar.md5 /xd/dl180/
[root@xifenfei dl180]# mv /xd/dl180/./PXE/initrd-11.2.3.2.1-dl180-DL180.img /xd/dl180/
[root@xifenfei dl180]# mv /xd/dl180/./PXE/vmlinux-11.2.3.2.1-dl180-DL180 /xd/dl180/

[root@xifenfei dl180]# ll
total 1531612
drwxr-xr-x   3 root root       4096 Mar 26 23:41 boot
drwxrwxr-x   2 root root       4096 Jan  9 22:34 doc
drwxr-xr-x   2 root root       4096 Jan  9 22:33 grub
drwxr-xr-x  17 root root       4096 Mar 26 23:41 initrd
-rw-r--r--   1 root root   38839215 Mar 26 23:41 initrd-11.2.3.2.1-dl180-DL180.img
-rwxrwxr-x   1 root root      27485 Jan  9 22:34 makeImageMedia.sh
-rw-r--r--   1 root root 1524193280 Mar 26 23:40 nfsimg-11.2.3.2.1-dl180-DL180.tar
-rw-r--r--   1 root root         68 Mar 26 23:41 nfsimg-11.2.3.2.1-dl180-DL180.tar.md5
drwxrwxr-x   3 root root       4096 Jan  9 22:34 patches
drwxr-xr-x   2 root root       4096 Mar 26 23:48 PXE
-r-xr-xr-x   1 root root      39041 Mar 31  2011 README_FOR_FACTORY.txt
-r-xr-xr-x   1 root root    3688864 Mar 26 23:41 vmlinux-11.2.3.2.1-dl180-DL180
</pre>
<p><strong>上传preconf.csv到/xd目录</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei xd]# ll preconf.csv 
-rw-r--r--  1 root root 2133 Mar 14 18:14 preconf.csv
</pre>
<p>然后重启dhcp,xinetd,nfs服务,重启需要恢复的xd的db and cell节点,验证结果如下<br />
<img src="//www.xifenfei.com/wp-content/uploads/2013/04/pxe1.jpg" alt="" title="启动获得ip and等待输入cell or db" width="723" height="399" class="aligncenter size-full wp-image-4242" /><br />
<a href="//www.xifenfei.com/wp-content/uploads/2013/04/pxe2.jpg"><img src="//www.xifenfei.com/wp-content/uploads/2013/04/pxe2.jpg" alt="" title="验证vm不能被xd cell 刷机" width="720" height="382" class="aligncenter size-full wp-image-4243" /></a></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/03/%e5%88%b6%e4%bd%9cu%e7%9b%98%e5%88%b7exadata.html" rel="bookmark" class="crp_title">制作U盘刷EXADATA</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/07/disable_transparent_hugepages.html" rel="bookmark" class="crp_title">Disable Transparent HugePages</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/02/compat-libstdc.html" rel="bookmark" class="crp_title">redhat 7安装Oracle缺少compat-libstdc++</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/gzexe%e5%8a%a0%e5%af%86shell%e8%84%9a%e6%9c%ac.html" rel="bookmark" class="crp_title">gzexe加密shell脚本</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/07/kfed-error-could-not-initialize-the-diag-context.html" rel="bookmark" class="crp_title">KFED &#8211; ERROR!!! could not initialize the diag context</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/extundelete%e6%81%a2%e5%a4%8dlinux%e8%a2%ab%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">extundelete恢复Linux被删除文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/09/linux%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4.html" rel="bookmark" class="crp_title">linux常用命令</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/05/gpk-update-icon-cpu-100.html" rel="bookmark" class="crp_title">gpk-update-icon进程占用CPU资源100％</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/10/arm-vg-err-mysql-recovery.html" rel="bookmark" class="crp_title">arm环境vg损坏mysql数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/04/permission-pl.html" rel="bookmark" class="crp_title">permission.pl处理ORACLE目录权限被误操作故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2019/10/linux-6-19c.html" rel="bookmark" class="crp_title">linux6 安装Oracle 19c主要报错记录</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/12/olr%e7%9b%b8%e5%85%b3%e7%bb%b4%e6%8a%a4.html" rel="bookmark" class="crp_title">OLR相关维护</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2013/04/%e4%bd%bf%e7%94%a8pxe%e5%88%b7xd.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>制作U盘刷EXADATA</title>
		<link>https://www.xifenfei.com/2013/03/%e5%88%b6%e4%bd%9cu%e7%9b%98%e5%88%b7exadata.html</link>
		<comments>https://www.xifenfei.com/2013/03/%e5%88%b6%e4%bd%9cu%e7%9b%98%e5%88%b7exadata.html#comments</comments>
		<pubDate>Sun, 31 Mar 2013 15:17:00 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=4233</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2013/03/%e5%88%b6%e4%bd%9cu%e7%9b%98%e5%88%b7exadata.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2013/03/%e5%88%b6%e4%bd%9cu%e7%9b%98%e5%88%b7exadata.html" target="_blank">制作U盘刷EXADATA</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>在XD需要刷机(方言重装操作系统),现在比较常见的是一种是使用PXE来刷机,另外一张是使用U盘制作启动盘来刷机.PXE配置起来比较麻烦,这里展示制作U盘刷机的过程.db节点和cell节点的制作方法基本相同,这里以cell节点的U盘制作为例说明制作过程<br />
<strong>1. 前提条件</strong><br />
1) Linux 64位机器(最好直接在db和cell节点的机器上直接处理<br />
2) U盘大小最少4G<br />
3) 上传preconf.csv配置文件(使用java配置)<br />
<br />
<strong>2. 下载image文件</strong><br />
通过888828.1文档找到image的名称,然后在edelivery中下载<br />
<br />
<strong>3. 查看U盘盘符</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei tmp]# fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3655    29358756   83  Linux
/dev/sda2            3656        3916     2096482+  82  Linux swap / Solaris

Disk /dev/sdb: 4048 MB, 4048551936 bytes
128 heads, 9 sectors/track, 6864 cylinders
Units = cylinders of 1152 * 512 = 589824 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           8        6864     3949096    b  W95 FAT32
</pre>
<p><strong>4. 上传压缩文件到服务器,并解压</strong></p>
<pre class="brush: bash; title: ; notranslate">
unzip V36290-01.zip
tar xvf cellImageMaker_11.2.3.2.1_LINUX.X64_130109-1.x86_64.tar 
</pre>
<p><strong>5. dl180内容</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@xifenfei tmp]# cd dl180/
[root@xifenfei dl180]# ll
total 92
drwxr-xr-x  3 root root  4096 Jan  9 22:33 boot
drwxrwxr-x  2 root root  4096 Jan  9 22:34 doc
drwxr-xr-x  2 root root  4096 Jan  9 22:33 grub
drwxr-xr-x 17 root root  4096 Jan  9 22:33 initrd
-rwxrwxr-x  1 root root 27485 Jan  9 22:34 makeImageMedia.sh
drwxrwxr-x  3 root root  4096 Jan  9 22:34 patches
-r-xr-xr-x  1 root root 39041 Mar 31  2011 README_FOR_FACTORY.txt
drwxrwxr-x  4 root root  4096 Jan  9 22:34 tmp
</pre>
<p><strong>6. 制作U盘启动</strong></p>
<pre class="brush: bash; title: ; notranslate">
--执行makeImageMedia.sh命令
[root@xifenfei dl180]# ./makeImageMedia.sh -preconf  /tmp/preconf.csv 
Done. Pre config verification OK
Please wait. Calculating md5 checksums for cellbits ...
Calculating md5 checksum for exaos.tbz ...
Calculating md5 checksum for cellboot.tbz ...
Calculating md5 checksum for cellfw.tbz ...
Calculating md5 checksum for kernel.tbz ...
Calculating md5 checksum for ofed.tbz ...
Calculating md5 checksum for sunutils.tbz ...
Calculating md5 checksum for hputils.tbz ...
Calculating md5 checksum for c7rpms.tbz ...
Calculating md5 checksum for commonos.tbz ...
Calculating md5 checksum for debugos.tbz ...
Calculating md5 checksum for cellrpms.tbz ...
Calculating md5 checksum for doclib.zip ...
Calculating md5 checksum for cell.bin ...
Please wait. Making initrd ...
214842 blocks
Please wait. Calculating md5 checksums for boot ...

Choose listed USB devices to set up the Oracle CELL installer

sdb   Approximate capacity 3953 MB 
--指定U盘盘符
Enter the comma separated (no spaces) list of devices or word 'ALL' for to select all: sdb &lt;--注意
sdb will be used as the Oracle CELL installer

All data on sdb will be erased. Proceed [y/n]? y &lt;--注意

The number of cylinders for this disk is set to 6864.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 6864.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): Command action
   e   extended
   p   primary partition (1-4)
Partition number (1-4): First cylinder (1-6864, default 1): Last cylinder or +size or +sizeM or +sizeK (1-6864, default 6864): 
Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
umount2: Invalid argument
umount: /dev/sdb1: not mounted
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
495008 inodes, 988270 blocks
49413 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1015021568
31 block groups
32768 blocks per group, 32768 fragments per group
15968 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done                            
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
Copying files... will take several minutes


    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename.]
grub&gt; root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83
grub&gt; setup (hd0)
 Checking if &quot;/boot/grub/stage1&quot; exists... no
 Checking if &quot;/grub/stage1&quot; exists... yes
 Checking if &quot;/grub/stage2&quot; exists... yes
 Checking if &quot;/grub/e2fs_stage1_5&quot; exists... yes
 Running &quot;embed /grub/e2fs_stage1_5 (hd0)&quot;... failed (this is not fatal)
 Running &quot;embed /grub/e2fs_stage1_5 (hd0,0)&quot;... failed (this is not fatal)
 Running &quot;install /grub/stage1 (hd0) /grub/stage2 p /grub/grub.conf &quot;... succeeded
Done.
grub&gt; Done creation of installation USB for DL180
</pre>
<p>现在已经制作完成，重启系统进入bios选择U盘启动,就可以对XD的cell节点进行刷机</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/04/%e4%bd%bf%e7%94%a8pxe%e5%88%b7xd.html" rel="bookmark" class="crp_title">使用PXE刷XD</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/drbd%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">DRBD安装配置说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/07/disable_transparent_hugepages.html" rel="bookmark" class="crp_title">Disable Transparent HugePages</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/08/linux-7-udev.html" rel="bookmark" class="crp_title">linux 7(redhat,oracle linux,centos)中使用udev</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/iscsiadm%e4%b8%bb%e8%a6%81%e6%93%8d%e4%bd%9c%e5%91%bd%e4%bb%a4.html" rel="bookmark" class="crp_title">iscsiadm主要操作命令</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/linux%e9%80%bb%e8%be%91%e5%8d%b7%e7%ae%a1%e7%90%86lvm.html" rel="bookmark" class="crp_title">Linux逻辑卷管理(LVM)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/11/ext3-ext4-superblock-recovery.html" rel="bookmark" class="crp_title">ext3/ext4 超级块修复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/01/multipath%e5%ae%9e%e7%8e%b0%e8%ae%be%e5%a4%87%e7%94%a8%e6%88%b7%e7%bb%84%e8%ae%be%e7%bd%ae.html" rel="bookmark" class="crp_title">multipath实现设备用户组设置</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/extundelete%e6%81%a2%e5%a4%8dlinux%e8%a2%ab%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">extundelete恢复Linux被删除文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/07/kfed-error-could-not-initialize-the-diag-context.html" rel="bookmark" class="crp_title">KFED &#8211; ERROR!!! could not initialize the diag context</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/11/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1rm-rf-oradata%e5%bc%82%e5%b8%b8%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">记录一次rm -rf 删除数据文件异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/05/ext4-lvm-resize.html" rel="bookmark" class="crp_title">ext4 lvm在线扩容</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2013/03/%e5%88%b6%e4%bd%9cu%e7%9b%98%e5%88%b7exadata.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dcli完成多节点对等ssh配置</title>
		<link>https://www.xifenfei.com/2012/12/dcli%e5%ae%8c%e6%88%90%e5%a4%9a%e8%8a%82%e7%82%b9%e5%af%b9%e7%ad%89ssh%e9%85%8d%e7%bd%ae.html</link>
		<comments>https://www.xifenfei.com/2012/12/dcli%e5%ae%8c%e6%88%90%e5%a4%9a%e8%8a%82%e7%82%b9%e5%af%b9%e7%ad%89ssh%e9%85%8d%e7%bd%ae.html#comments</comments>
		<pubDate>Fri, 28 Dec 2012 07:18:01 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=4080</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/12/dcli%e5%ae%8c%e6%88%90%e5%a4%9a%e8%8a%82%e7%82%b9%e5%af%b9%e7%ad%89ssh%e9%85%8d%e7%bd%ae.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2012/12/dcli%e5%ae%8c%e6%88%90%e5%a4%9a%e8%8a%82%e7%82%b9%e5%af%b9%e7%ad%89ssh%e9%85%8d%e7%bd%ae.html" target="_blank">dcli完成多节点对等ssh配置</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>dcli是Python脚本,可以实现在多节点中的之间非交换命令的执行,因为dcli执行需要通过ssh来实现,所以dcli也提供了ssh配置功能.本文通过dcli来完成多节点间的对等ssh配置<br />
<strong>dcli整体描述</strong></p>
<pre class="brush: bash; title: ; notranslate">
The dcli utility runs commands on multiple cells in parallel threads. 
However, it does not support an interactive session with a remote application on a cell.

To use the dcli utility, copy the utility from the bin directory on a cell to 
a host computer from which central management can be performed.
You can issue a command to be run on multiple cells, or use files that can be copied to cells and then run. 
The cells are referenced by their domain name or IP address.

The dcli utility requires Python version 2.3 or later. 
You can determine the version of Python by running the python -V command. 
In addition, use of this tool assumes prior setup of SSH user-equivalence to a cell. 
You can use the dcli utility initially with the -k option to set up SSH user-equivalence to a cell. 
</pre>
<p><strong>dcli使用说明</strong></p>
<pre class="brush: bash; title: ; notranslate">
[xifenfei@db1 ~]$ dcli
Error: No command specified.
usage: dcli [options] [command]

options:
  --version           show program's version number and exit
  -c CELLS            comma-separated list of cells
  -d DESTFILE         destination directory or file
  -f FILE             file to be copied
  -g GROUPFILE        file containing list of cells
  -h, --help          show help message and exit
  -k                  push ssh key to cell's authorized_keys file
  -l USERID           user to login as on remote cells (default: celladmin)
  -n                  abbreviate non-error output
  -r REGEXP           abbreviate output lines matching a regular expression
  -s SSHOPTIONS       string of options passed through to ssh
  --scp=SCPOPTIONS    string of options passed through to scp if different
                      from sshoptions
  -t                  list target cells
  -v                  print extra messages to stdout
  --vmstat=VMSTATOPS  vmstat command options
  -x EXECFILE         file to be copied and executed
</pre>
<p><strong>服务器相关ip配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[xifenfei@db1 ~]$ more xifenfei.txt 
192.168.30.10
192.168.30.20
192.168.30.30
[xifenfei@db1 ~]$ more /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.30.30   db1 
192.168.30.10   cell1
192.168.30.20   cell2
</pre>
<p><strong>操作系统用户</strong><br />
说明:dcli配置对等ssh不需要uid完全一样,不需要用户密码完全一样,因为是双向对等,需要用户名一致</p>
<pre class="brush: bash; title: ; notranslate">
[root@cell2 ~]# id xifenfei
uid=8001(xifenfei) gid=8001(xifenfei) groups=8001(xifenfei)
[root@cell1 ~]# id xifenfei
uid=8001(xifenfei) gid=8001(xifenfei) groups=8001(xifenfei)
[root@db1 ~]# id xifenfei
uid=8001(xifenfei) gid=8001(xifenfei) groups=8001(xifenfei)
</pre>
<p><strong>db1节点配置ssh</strong></p>
<pre class="brush: bash; title: ; notranslate">
[xifenfei@db1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/xifenfei/.ssh/id_dsa): 
Created directory '/home/xifenfei/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/xifenfei/.ssh/id_dsa.
Your public key has been saved in /home/xifenfei/.ssh/id_dsa.pub.
The key fingerprint is:
63:95:13:ba:4a:4c:13:93:67:7f:4f:e8:18:13:3c:4f xifenfei@db1

[xifenfei@db1 ~]$ dcli -k -g xifenfei.txt -l xifenfei
The authenticity of host '192.168.30.10 (192.168.30.10)' can't be established.
RSA key fingerprint is 1b:b6:91:11:58:89:b1:6a:c6:eb:72:df:68:d4:dd:5b.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.10's password: 
The authenticity of host '192.168.30.20 (192.168.30.20)' can't be established.
RSA key fingerprint is 1b:b6:91:11:58:89:b1:6a:c6:eb:72:df:68:d4:dd:5b.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.20's password: 
The authenticity of host '192.168.30.30 (192.168.30.30)' can't be established.
RSA key fingerprint is 54:ea:84:ae:38:24:07:31:9f:dd:8a:8b:4b:c2:a8:fe.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.30's password: 
192.168.30.10: Warning: Permanently added '192.168.30.10' (RSA) to the list of known hosts.
192.168.30.10: ssh key added
192.168.30.20: Warning: Permanently added '192.168.30.20' (RSA) to the list of known hosts.
192.168.30.20: ssh key added
192.168.30.30: Warning: Permanently added '192.168.30.30' (RSA) to the list of known hosts.
192.168.30.30: ssh key added

[xifenfei@db1 ~]$ for host in `cat xifenfei.txt`
&gt; do
&gt; scp /home/xifenfei/.ssh/id_dsa.pub ${host}:/home/xifenfei/.ssh/authorized_keys
&gt; done
id_dsa.pub                                                                      100%  602     0.6KB/s   00:00
id_dsa.pub                                                                      100%  602     0.6KB/s   00:00
id_dsa.pub                                                                      100%  602     0.6KB/s   00:00

[xifenfei@db1 ~]$ dcli -g xifenfei.txt -l xifenfei &quot;chmod -R 700 /home/xifenfei/.ssh&quot;

[xifenfei@db1 ~]$ dcli -g xifenfei.txt -l xifenfei &quot;chown -R xifenfei /home/xifenfei/.ssh&quot;
[xifenfei@db1 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 07:45:17 2012 from 192.168.30.30
[xifenfei@db1 ~]$ ssh 192.168.30.20
Last login: Tue Dec 25 19:17:30 2012 from 192.168.30.10
[xifenfei@db1 ~]$ ssh 192.168.30.10
Last login: Tue Dec 25 20:17:20 2012 from 192.168.30.20

--ssh为单向，正向可以ssh成功，逆向需要输入密码
[xifenfei@db1 ~]$ ssh 192.168.30.10
xifenfei@192.168.30.10's password: 
</pre>
<p><strong>拷贝ip文件到其他节点</strong></p>
<pre class="brush: bash; title: ; notranslate">
[xifenfei@db1 ~]$ for host in `cat xifenfei.txt`
&gt; do
&gt; scp /home/xifenfei/xifenfei.txt ${host}:/home/xifenfei/xifenfei.txt
&gt; done
xifenfei.txt                                                                    100%   42     0.0KB/s   00:00
xifenfei.txt                                                                    100%   42     0.0KB/s   00:00
scp: /home/xifenfei/xifenfei.txt: Permission denied   --自身节点不能拷贝
</pre>
<p><strong>cell1节点配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[xifenfei@cell1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/xifenfei/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/xifenfei/.ssh/id_dsa.
Your public key has been saved in /home/xifenfei/.ssh/id_dsa.pub.
The key fingerprint is:
f2:b6:88:5c:c6:97:5e:38:c2:df:f1:58:49:8a:8d:90 xifenfei@cell1
[xifenfei@cell1 ~]$  dcli -k -g xifenfei.txt -l xifenfei
The authenticity of host '192.168.30.10 (192.168.30.10)' can't be established.
RSA key fingerprint is 1b:b6:91:11:58:89:b1:6a:c6:eb:72:df:68:d4:dd:5b.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.10's password: 
xifenfei@192.168.30.20's password: 
xifenfei@192.168.30.30's password: 
192.168.30.10: Warning: Permanently added '192.168.30.10' (RSA) to the list of known hosts.
192.168.30.10: ssh key added
192.168.30.20: ssh key added
192.168.30.30: ssh key added
[xifenfei@cell1 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 07:48:24 2012 from 192.168.30.30

--cell1 to cell2 正向成功,逆向失败
[xifenfei@cell1 ~]$ ssh 192.168.30.20
Last login: Tue Dec 25 19:23:42 2012 from 192.168.30.30
[xifenfei@cell2 ~]$ ssh 192.168.30.10
xifenfei@192.168.30.10's password: 

--cell1和db1正逆向均可以ssh
[xifenfei@cell1 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 20:24:15 2012 from 192.168.30.30
[xifenfei@db1 ~]$ ssh 192.168.30.10
Last login: Tue Dec 25 20:27:27 2012 from 192.168.30.10
</pre>
<p><strong>cell2节点配置</strong></p>
<pre class="brush: bash; title: ; notranslate">
[xifenfei@cell2 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/xifenfei/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/xifenfei/.ssh/id_dsa.
Your public key has been saved in /home/xifenfei/.ssh/id_dsa.pub.
The key fingerprint is:
87:80:02:e1:27:b8:d0:af:c0:5f:e0:f3:5e:95:29:cb xifenfei@cell2
[xifenfei@cell2 ~]$ dcli -k -g xifenfei.txt -l xifenfei
The authenticity of host '192.168.30.10 (192.168.30.10)' can't be established.
RSA key fingerprint is 1b:b6:91:11:58:89:b1:6a:c6:eb:72:df:68:d4:dd:5b.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.10's password: 
The authenticity of host '192.168.30.20 (192.168.30.20)' can't be established.
RSA key fingerprint is 1b:b6:91:11:58:89:b1:6a:c6:eb:72:df:68:d4:dd:5b.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.20's password: 
The authenticity of host '192.168.30.30 (192.168.30.30)' can't be established.
RSA key fingerprint is 54:ea:84:ae:38:24:07:31:9f:dd:8a:8b:4b:c2:a8:fe.
Are you sure you want to continue connecting (yes/no)? yes
xifenfei@192.168.30.30's password: 
192.168.30.10: Warning: Permanently added '192.168.30.10' (RSA) to the list of known hosts.
192.168.30.10: ssh key added
192.168.30.20: Warning: Permanently added '192.168.30.20' (RSA) to the list of known hosts.
192.168.30.20: ssh key added
192.168.30.30: Warning: Permanently added '192.168.30.30' (RSA) to the list of known hosts.
192.168.30.30: ssh key added

--ssh测试
[xifenfei@cell2 ~]$ ssh 192.168.30.10
Last login: Tue Dec 25 20:11:02 2012 from 192.168.30.30
[xifenfei@cell2 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 07:53:27 2012 from cell1
[xifenfei@cell2 ~]$ ssh 192.168.30.20
Last login: Tue Dec 25 19:30:16 2012 from 192.168.30.10
</pre>
<p><strong>ssh等效性测试汇总</strong></p>
<pre class="brush: bash; title: ; notranslate">
--db1节点
[xifenfei@db1 ~]$ ssh 192.168.30.10
Last login: Tue Dec 25 20:30:24 2012 from 192.168.30.20
[xifenfei@db1 ~]$ ssh 192.168.30.20
Last login: Tue Dec 25 19:33:07 2012 from 192.168.30.20
[xifenfei@db1 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 07:57:56 2012 from cell2

--cell1节点
[xifenfei@cell1 ~]$ ssh 192.168.30.20
Last login: Tue Dec 25 19:34:05 2012 from 192.168.30.30
[xifenfei@cell1 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 07:59:29 2012 from 192.168.30.30
[xifenfei@cell1 ~]$ ssh 192.168.30.10
Last login: Tue Dec 25 20:33:59 2012 from 192.168.30.30

--cell2节点
[xifenfei@cell2 ~]$ ssh 192.168.30.10
Last login: Tue Dec 25 20:35:42 2012 from 192.168.30.10
[xifenfei@cell2 ~]$ ssh 192.168.30.30
Last login: Tue Dec 25 08:00:56 2012 from cell1
[xifenfei@cell2 ~]$ ssh 192.168.30.20
Last login: Tue Dec 25 19:35:31 2012 from 192.168.30.10
</pre>
<p>到此证明三个节点之间的xifenfei用户的ssh等效配置完成,实现使用dcli完成多节点ssh等效配置<br />
<br />
<strong>整体处理思路总结</strong></p>
<pre class="brush: bash; title: ; notranslate">
1.确定需要配置ssh用户
--第一节点
2.编辑需要配置ssh等效连接ip列表
3.ssh-keygen -t dsa
4.dcli -k -g xifenfei.txt -l xifenfei
5.
for host in `cat xifenfei.txt`
do
scp /home/xifenfei/.ssh/id_dsa.pub ${host}:/home/xifenfei/.ssh/authorized_keys
done
6.dcli -g xifenfei.txt -l xifenfei &quot;chmod -R 700 /home/xifenfei/.ssh&quot;
7.dcli -g xifenfei.txt -l xifenfei &quot;chown -R xifenfei /home/xifenfei/.ssh&quot;
8.
for host in `cat xifenfei.txt`
 do
 scp /home/xifenfei/xifenfei.txt ${host}:/home/xifenfei/xifenfei.txt
 done
--其他节点
9. ssh-keygen -t dsa
10. dcli -k -g xifenfei.txt -l xifenfei
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/%e6%8f%90%e9%ab%98%e7%9f%ad%e8%bf%9e%e6%8e%a5%e6%80%a7%e8%83%bd%e6%96%b9%e6%b3%95%e6%b5%8b%e8%af%95.html" rel="bookmark" class="crp_title">提高短连接性能方法测试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/db2%e5%ae%9e%e4%be%8b%e7%ae%a1%e7%90%86.html" rel="bookmark" class="crp_title">DB2实例管理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/gzexe%e5%8a%a0%e5%af%86shell%e8%84%9a%e6%9c%ac.html" rel="bookmark" class="crp_title">gzexe加密shell脚本</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/%e4%bd%bf%e7%94%a8expimp-%e5%af%bc%e5%85%a511g%e6%95%b0%e6%8d%ae%e5%88%b09i.html" rel="bookmark" class="crp_title">使用exp/imp 导入11g数据到9i</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/db2%e8%a1%a8%e7%a9%ba%e9%97%b4%e7%ae%a1%e7%90%862-dms%e7%a9%ba%e9%97%b4%e7%ae%a1%e7%90%86.html" rel="bookmark" class="crp_title">DB2表空间管理(2)&#8212;DMS空间管理篇</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/03/rman-from-service-dataguard.html" rel="bookmark" class="crp_title">使用rman from service 搭建dataguard</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/enterprise-manager-database-express-12c-%e6%ac%a3%e8%b5%8f.html" rel="bookmark" class="crp_title">Enterprise Manager Database Express 12c 欣赏</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/window%e7%b3%bb%e7%bb%9f%e5%91%bd%e4%bb%a4-ocopy%e5%ae%9e%e7%8e%b0%e6%8b%b7%e8%b4%9d%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6header.html" rel="bookmark" class="crp_title">拷贝windows中datafile header方法(ocopy)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/db2%e5%85%a5%e9%97%a8%e6%93%8d%e4%bd%9c%e4%b9%8b%e4%ba%8c.html" rel="bookmark" class="crp_title">DB2入门操作之二</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/db2%e5%85%a5%e9%97%a8%e6%93%8d%e4%bd%9c%e4%b9%8b%e4%b8%80.html" rel="bookmark" class="crp_title">DB2入门操作之一</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/02/timesten%e5%91%bd%e4%bb%a4%e2%80%94ttrestore.html" rel="bookmark" class="crp_title">TimesTen命令—ttrestore</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/adr%e5%88%9d%e7%ba%a7%e4%bb%8b%e7%bb%8d.html" rel="bookmark" class="crp_title">ADR初级介绍</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/12/dcli%e5%ae%8c%e6%88%90%e5%a4%9a%e8%8a%82%e7%82%b9%e5%af%b9%e7%ad%89ssh%e9%85%8d%e7%bd%ae.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>cellcli命令简介</title>
		<link>https://www.xifenfei.com/2012/12/cellcli%e5%91%bd%e4%bb%a4%e7%ae%80%e4%bb%8b.html</link>
		<comments>https://www.xifenfei.com/2012/12/cellcli%e5%91%bd%e4%bb%a4%e7%ae%80%e4%bb%8b.html#comments</comments>
		<pubDate>Thu, 27 Dec 2012 15:25:01 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=4076</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/12/cellcli%e5%91%bd%e4%bb%a4%e7%ae%80%e4%bb%8b.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2012/12/cellcli%e5%91%bd%e4%bb%a4%e7%ae%80%e4%bb%8b.html" target="_blank">cellcli命令简介</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>cellcli用途描述</strong></p>
<pre class="brush: bash; title: ; notranslate">
The CellCLI utility is the command-line administration tool for Exadata Cell. 
CellCLI runs on each cell to enable you to manage an individual cell. 
You use CellCLI to start and stop the cell, to manage cell configuration information, 
to enable or disable cells, and to manage objects in the cell environment. 
The command-line utility is already installed when Exadata Cell is shipped. 
</pre>
<p><strong>cellcli语法</strong></p>
<pre class="brush: bash; title: ; notranslate">
cellcli [port_number] [-n] [-m] [-xml] [-v | -vv | -vvv] [-x] [-e command]
</pre>
<p><img src="//www.xifenfei.com/wp-content/uploads/2012/12/cellcli.jpg" alt="" title="cellcli" width="1006" height="256" class="aligncenter size-full wp-image-4077" /><br />
<strong>cellcli登录</strong></p>
<pre class="brush: bash; title: ; notranslate">
[root@cell2 ~]# cellcli 
CellCLI: Release 11.2.1.2.0 - Production on Tue Dec 25 16:07:01 PST 2012

Copyright (c) 2007, 2009, Oracle.  All rights reserved.
Cell Efficiency Ratio: 24M

CellCLI&gt; 
</pre>
<p><strong>cellcli help</strong></p>
<pre class="brush: bash; title: ; notranslate">
CellCLI&gt; help

 HELP [topic]
   Available Topics:
        ALTER
        ALTER ALERTHISTORY
        ALTER CELL
        ALTER CELLDISK
        ALTER GRIDDISK
        ALTER IORMPLAN
        ALTER LUN
        ALTER THRESHOLD
        ASSIGN KEY
        CALIBRATE
        CREATE
        CREATE CELL
        CREATE CELLDISK
        CREATE FLASHCACHE
        CREATE GRIDDISK
        CREATE KEY
        CREATE THRESHOLD
        DESCRIBE
        DROP
        DROP ALERTHISTORY
        DROP CELL
        DROP CELLDISK
        DROP FLASHCACHE
        DROP GRIDDISK
        DROP THRESHOLD
        EXPORT CELLDISK
        IMPORT CELLDISK
        LIST
        LIST ACTIVEREQUEST
        LIST ALERTDEFINITION
        LIST ALERTHISTORY
        LIST CELL
        LIST CELLDISK
        LIST FLASHCACHE
        LIST FLASHCACHECONTENT
        LIST GRIDDISK
        LIST IORMPLAN
        LIST KEY
        LIST LUN
        LIST METRICCURRENT
        LIST METRICDEFINITION
        LIST METRICHISTORY
        LIST PHYSICALDISK
        LIST THRESHOLD
        SET
        SPOOL
        START

CellCLI&gt; help list

  Enter HELP LIST &lt;object_type&gt; for specific help syntax.
    &lt;object_type&gt;:  {ACTIVEREQUEST | ALERTHISTORY | ALERTDEFINITION | CELL 
                     | CELLDISK | FASHCACHE | FLASHCACHECONTENT | GRIDDISK
                     | IORMPLAN | KEY | LUN 
                     | METRICCURRENT | METRICDEFINITION | METRICHISTORY 
                     | PHYSICALDISK | THRESHOLD }

CellCLI&gt; help list PHYSICALDISK

  Usage: LIST PHYSICALDISK [&lt;name&gt; | &lt;filters&gt;] [&lt;attribute_list&gt;] [DETAIL] 

  Purpose: Displays specified attributes for physical disks.

  Arguments:
    &lt;name&gt;:  The name of the physical disk to be displayed.
    &lt;filters&gt;:  an expression which determines which physical disks should
                be displayed.
    &lt;attribute_list&gt;: The attributes that are to be displayed.
                      ATTRIBUTES {ALL | attr1 [, attr2]... }

  Options:
    [DETAIL]: Formats the display as an attribute on each line, with
    an attribute descriptor preceding each value.

  Examples:
    LIST PHYSICALDISK DETAIL
</pre>
<p><strong>cellcli describe</strong></p>
<pre class="brush: bash; title: ; notranslate">
CellCLI&gt; DESCRIBE PHYSICALDISK
        name
        ctrlFirmware
        ctrlHwVersion
        deviceId
        diskType
        enclosureDeviceId
        errCmdTimeoutCount
        errHardReadCount
        errHardWriteCount
        errMediaCount
        errOtherCount
        errSeekCount
        errorCount
        foreignState
        hotPlugCount
        id
        lastFailureReason
        luns
        makeModel
        notPresentSince
        physicalFirmware
        physicalInsertTime
        physicalInterface
        physicalPort
        physicalRPM
        physicalSerial
        physicalSize
        physicalUseType
        sectorRemapCount
        slotNumber
        status
</pre>
<p><strong>cellcli list</strong></p>
<pre class="brush: bash; title: ; notranslate">
CellCLI&gt; LIST PHYSICALDISK attributes name ,physicalSize
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH01       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH02       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH03       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH04       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk01        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk02        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk03        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk04        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk05        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk06        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk07        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk08        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk09        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk10        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk11        450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/disk12        450M

CellCLI&gt; LIST PHYSICALDISK attributes name ,physicalSize where name like '.*FLASH.*'
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH01       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH02       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH03       450M
         /opt/oracle/cell11.2.1.2.0_LINUX_091102/disks/raw/FLASH04       450M
</pre>
<p>attributes后面可以加上对应的属性,&#8221;.*&#8221;表示通配符<br />
这里通过help和describe来实现cellcli的基本操作,这里只是提供了一种处理问题的思路,通过help操作来完成cellcli的基本操作.</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/06/xd-flash.html" rel="bookmark" class="crp_title">exadata换flash卡的一些操作</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/dcli%e5%ae%8c%e6%88%90%e5%a4%9a%e8%8a%82%e7%82%b9%e5%af%b9%e7%ad%89ssh%e9%85%8d%e7%bd%ae.html" rel="bookmark" class="crp_title">dcli完成多节点对等ssh配置</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/09/rman%e4%b8%ad%e5%85%b3%e4%ba%8earchivelog%e6%93%8d%e4%bd%9c.html" rel="bookmark" class="crp_title">rman中关于archivelog操作</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/12/xd-recovery.html" rel="bookmark" class="crp_title">Oracle Exadata坏盘导致磁盘组无法mount恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/db2%e5%85%a5%e9%97%a8%e6%93%8d%e4%bd%9c%e4%b9%8b%e4%ba%8c.html" rel="bookmark" class="crp_title">DB2入门操作之二</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/07/dbca-fails-with-ora-15243.html" rel="bookmark" class="crp_title">DBCA Fails With ORA-15243</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/12/redhat-5-%e4%b8%ad%e8%a3%b8%e8%ae%be%e5%a4%87raw-%e7%9a%84%e9%85%8d%e7%bd%ae%e5%92%8coracle%e4%b8%ad%e4%bd%bf%e7%94%a8.html" rel="bookmark" class="crp_title">Redhat  中裸设备(raw) 的配置和oracle中使用</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/07/exadata-asm-mount-recovery.html" rel="bookmark" class="crp_title">Exadata磁盘损坏导致磁盘组无法mount恢复（oracle一体机磁盘组异常恢复）</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/09/dbms_stats%e6%af%94%e8%be%83%e5%a4%8d%e6%9d%82%e5%8f%82%e6%95%b0.html" rel="bookmark" class="crp_title">DBMS_STATS比较复杂参数</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/db2%e8%a1%a8%e7%a9%ba%e9%97%b4%e7%ae%a1%e7%90%862-dms%e7%a9%ba%e9%97%b4%e7%ae%a1%e7%90%86.html" rel="bookmark" class="crp_title">DB2表空间管理(2)&#8212;DMS空间管理篇</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/03/%e9%85%8d%e7%bd%aeoracle-asm%e7%a3%81%e7%9b%98.html" rel="bookmark" class="crp_title">配置Oracle  ASM磁盘</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/asm%e5%a4%87%e4%bb%bd%e5%85%83%e6%95%b0%e6%8d%ae%e4%b9%8bmd_backup%e5%92%8cmd_restore.html" rel="bookmark" class="crp_title">asm备份元数据之md_backup和md_restore</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/12/cellcli%e5%91%bd%e4%bb%a4%e7%ae%80%e4%bb%8b.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EXADATA与非EXADATA搭建DATAGURAD关于EHCC特性测试</title>
		<link>https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html</link>
		<comments>https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html#comments</comments>
		<pubDate>Tue, 11 Dec 2012 16:24:16 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[Data Guard]]></category>
		<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=4013</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html" target="_blank">EXADATA与非EXADATA搭建DATAGURAD关于EHCC特性测试</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>随着xd的越来越普及，不少的企业使用了xd，但是不少企业因为资金有限，只有一台xd，但是为了实现数据的容灾，可能会使用一台非xd的机器来通过dataguard来实现容灾,但是因为xd的ehcc新特性,官方宣传是只在xd中支持,如果dg的备库不是xd。那么会怎么样,这里通过测试得出如下一些结论：<em><strong>xd与非xd可以构造dg,ehcc功能在xd上无法高效使用</strong></em>。对于这样的环境条件下,使用ORACLE自带压缩效率更高.针对ehcc压缩效率很低,个人猜测,是因为xd检查到备库是非xd环境,直接对ehcc进行了降级压缩处理,从而出现了ehcc的压缩效率比oltp还低(牺牲了xd的性能,确保了数据的安全,看来xd的设计还是考虑的比较全面)<br />
<strong>xd基本信息</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

SQL&gt; show parameter clu;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cluster_database                     boolean     TRUE
cluster_database_instances           integer     2
cluster_interconnects                string

SQL&gt; SELECT OPEN_MODE, DATABASE_ROLE ,NAME FROM V$DATABASE;

OPEN_MODE            DATABASE_ROLE    NAME
-------------------- ---------------- ---------
READ WRITE           PRIMARY          xxxxxx

SQL&gt; !uname -a
Linux dm01db02 2.6.18-194.3.1.0.4.el5 #1 SMP Sat Feb 19 03:38:37 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
</pre>
<p><strong>xd创建模拟表</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; create table t_FF_c compress as select  * from dba_objects;

Table created.

SQL&gt; create table t_FF_c_o compress for oltp  as select  * from dba_objects;

Table created.

SQL&gt; create table t_FF_q_l compress for query low as select  * from dba_objects;

Table created.

SQL&gt; create table t_FF_q_h compress for query high  as select  * from dba_objects;

Table created.

SQL&gt; create table t_FF_a_l compress for archive low  as select  * from dba_objects;

Table created.

SQL&gt; create table t_FF_a_h compress for archive high as select * from dba_objects;

Table created.

SQL&gt; create table t_ff as select * from dba_objects;

Table created.
</pre>
<p><strong>xd查询模拟表</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
from dba_segments s,dba_tables t
where s.owner=t.owner and t.table_name=s.segment_name  and t.table_name like 'T_FF%';  2    3  

OWNER                          SEGMENT_NAME                       T_SIZE COMPRESS_FOR
------------------------------ ------------------------------ ---------- ------------
SYS                            T_FF                                   11
SYS                            T_FF_A_H                               10 ARCHIVE HIGH
SYS                            T_FF_A_L                               10 ARCHIVE LOW
SYS                            T_FF_Q_H                               10 QUERY HIGH
SYS                            T_FF_Q_L                               10 QUERY LOW
SYS                            T_FF_C_O                                4 OLTP
SYS                            T_FF_C                                  4 BASIC
</pre>
<p>通过这里发现,带有非dg的xd使用ehcc压缩效率都低了很多<br />
<br />
<strong>非xd备库基本信息</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; SELECT OPEN_MODE, DATABASE_ROLE ,NAME FROM V$DATABASE;

OPEN_MODE            DATABASE_ROLE    NAME
-------------------- ---------------- ---------
READ ONLY WITH APPLY PHYSICAL STANDBY xxxxxx

SQL&gt; show parameter clu;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cluster_database                     boolean     FALSE
cluster_database_instances           integer     1
cluster_interconnects                string

SQL&gt; !uname -a
Linux oradg 2.6.18-238.el5xen #1 SMP Sun Dec 19 14:42:02 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
</pre>
<p><strong>查询非xd dg备库</strong></p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
from dba_segments s,dba_tables t
where s.owner=t.owner and t.table_name=s.segment_name  and t.table_name like 'T_FF%'; 

OWNER                          SEGMENT_NAME                       T_SIZE COMPRESS_FOR
------------------------------ ------------------------------ ---------- ------------
SYS                            T_FF                                   11
SYS                            T_FF_A_H                               10 ARCHIVE HIGH
SYS                            T_FF_A_L                               10 ARCHIVE LOW
SYS                            T_FF_Q_H                               10 QUERY HIGH
SYS                            T_FF_Q_L                               10 QUERY LOW
SYS                            T_FF_C_O                                4 OLTP
SYS                            T_FF_C                                  4 BASIC

SQL&gt; SELECT COUNT(*) FROM T_FF_Q_L;

  COUNT(*)
----------
     94709

SQL&gt; SELECT COUNT(*) FROM T_FF_Q_H;

  COUNT(*)
----------
     94710

SQL&gt; SELECT COUNT(*) FROM T_FF_C_O;

  COUNT(*)
----------
     94708

SQL&gt; SELECT COUNT(*) FROM T_FF_C;

  COUNT(*)
----------
     94707

SQL&gt; SELECT COUNT(*) FROM T_FF_A_L;

  COUNT(*)
----------
     94711

SQL&gt; SELECT COUNT(*) FROM T_FF_A_H;

  COUNT(*)
----------
     94712

SQL&gt; select count(*) from t_FF;

  COUNT(*)
----------
    94713
</pre>
<p>通过这里测试证明,对于非xd dg库,可以正常的查询xd上的ehcc相关表,而且相关大小也相同(物理dg当然相同了)<br />
<br />
<strong>测试xd与非xd dg测试ehcc的dml操作</strong></p>
<pre class="brush: sql; title: ; notranslate">
--xd 主库
SQL&gt; update t_ff_a_h set owner='www.xifenfei.com';

94712 rows updated.

SQL&gt; commit;

Commit complete.

SQL&gt;  select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
from dba_segments s,dba_tables t
where s.owner=t.owner and t.table_name=s.segment_name  and t.table_name like 'T_FF%';  2    3  

OWNER                          SEGMENT_NAME                       T_SIZE COMPRESS_FOR
------------------------------ ------------------------------ ---------- ------------
SYS                            T_FF                                   11
SYS                            T_FF_A_H                               11 ARCHIVE HIGH
SYS                            T_FF_A_L                               10 ARCHIVE LOW
SYS                            T_FF_Q_H                               10 QUERY HIGH
SYS                            T_FF_Q_L                               10 QUERY LOW
SYS                            T_FF_C_O                                4 OLTP
SYS                            T_FF_C                                  4 BASIC

7 rows selected.

SQL&gt; alter system switch logfile;

System altered.

--非xd 备库
SQL&gt; select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
from dba_segments s,dba_tables t
where s.owner=t.owner and t.table_name=s.segment_name  and t.table_name like 'T_FF%';  

OWNER                          SEGMENT_NAME                       T_SIZE COMPRESS_FOR
------------------------------ ------------------------------ ---------- ------------
SYS                            T_FF                                   11
SYS                            T_FF_A_H                               11 ARCHIVE HIGH
SYS                            T_FF_A_L                               10 ARCHIVE LOW
SYS                            T_FF_Q_H                               10 QUERY HIGH
SYS                            T_FF_Q_L                               10 QUERY LOW
SYS                            T_FF_C_O                                4 OLTP
SYS                            T_FF_C                                  4 BASIC
</pre>
<p>证明对于xd与非xd构成的dg环境,可以执行dml操作.<br />
<br />
<strong>测试xd与非xd dg的ehcc的append操作</strong></p>
<pre class="brush: sql; title: ; notranslate">
--xd准备三张测试空表
SQL&gt; create table t_FF_a_l_1 compress for archive low as select * from t_FF  where 1=0;

Table created.

SQL&gt; create table t_FF_a_h_1 compress for archive high  as select * from t_FF  where 1=0;

Table created.

SQL&gt;truncate table t_FF;

Table truncated.

--插入数据(每个表执行5次)
SQL&gt; insert /*+ APPEND */ into t_FF_a_l_1 select * from dba_objects; 

94714 rows created.

SQL&gt; commit;

Commit complete.


SQL&gt; insert /*+ APPEND */ into t_FF_h_l_1 select * from dba_objects; 

94714 rows created.

SQL&gt; commit;

Commit complete.

SQL&gt; insert /*+ APPEND */ into t_FF select * from dba_objects; 

94714 rows created.

SQL&gt; commit;

Commit complete.

--查看相关表数据量
SQL&gt; select count(*) from t_FF_a_l_1;

  COUNT(*)
----------
    473570

SQL&gt; select count(*) from t_FF_a_h_1;

  COUNT(*)
----------
    473570

SQL&gt; select count(*) from t_FF;
  COUNT(*)
----------
    473570

--查看xd主库
SQL&gt; select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
from dba_segments s,dba_tables t
where s.owner=t.owner and t.table_name=s.segment_name  and t.table_name like 'T_FF%'; 

OWNER                          SEGMENT_NAME                       T_SIZE COMPRESS_FOR
------------------------------ ------------------------------ ---------- ------------
SYS                            T_FF                                   52
SYS                            T_FF_A_H                               11 ARCHIVE HIGH
SYS                            T_FF_A_L                               10 ARCHIVE LOW
SYS                            T_FF_Q_H                               10 QUERY HIGH
SYS                            T_FF_Q_L                               10 QUERY LOW
SYS                            T_FF_C_O                                4 OLTP
SYS                            T_FF_C                                  4 BASIC
SYS                            T_FF_A_H_1                             47 ARCHIVE HIGH
SYS                            T_FF_A_L_1                             47 ARCHIVE LOW

--查看非xd备库
SQL&gt; select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
from dba_segments s,dba_tables t
where s.owner=t.owner and t.table_name=s.segment_name  and t.table_name like 'T_FF%'; 

OWNER                          SEGMENT_NAME                       T_SIZE COMPRESS_FOR
------------------------------ ------------------------------ ---------- ------------
SYS                            T_FF                                   52
SYS                            T_FF_A_H                               11 ARCHIVE HIGH
SYS                            T_FF_A_L                               10 ARCHIVE LOW
SYS                            T_FF_Q_H                               10 QUERY HIGH
SYS                            T_FF_Q_L                               10 QUERY LOW
SYS                            T_FF_C_O                                4 OLTP
SYS                            T_FF_C                                  4 BASIC
SYS                            T_FF_A_H_1                             47 ARCHIVE HIGH
SYS                            T_FF_A_L_1                             47 ARCHIVE LOW
</pre>
<p><strong>试验整体结论</strong><br />
1.xd可以与非xd机器构建dg容灾环境(不会因为非dg不支持ehcc而导致无法搭建他们之间的dg)<br />
2.xd与非xd的dg,ehcc功能大大缩水,基本上和非压缩状态差不多,比OLTP低很多<br />
3.xd与非xd的dg在备库中支持select,dml,hint append等操作,这些操作是因为ehcc表在xd端就进行了ehcc降级导致</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html" rel="bookmark" class="crp_title">EXADATA EHCC初试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/%e9%80%9a%e8%bf%87rowid%e6%89%be%e5%9b%9e%e5%9d%8f%e5%9d%97%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">通过ROWID找回坏块数据</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/deferred_segment_creation-%e5%8f%82%e6%95%b0%e7%9b%b8%e5%85%b3%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">DEFERRED_SEGMENT_CREATION 参数相关说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/02/dml-redirection.html" rel="bookmark" class="crp_title">Oracle 19C 备库DML重定向&#8212;DML Redirection</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/%e5%88%9b%e5%bb%ba%e8%a7%86%e5%9b%be%e6%8f%90%e7%a4%baora-01031.html" rel="bookmark" class="crp_title">创建视图提示ORA-01031</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/01/heatmap-segment-size-is-large.html" rel="bookmark" class="crp_title">sysaux中HEATMAP 对象较大</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/10/oracle%e6%9f%a5%e7%9c%8bobject%e5%af%b9%e8%b1%a1%e4%bd%bf%e7%94%a8%e7%a9%ba%e9%97%b4.html" rel="bookmark" class="crp_title">oracle查看object对象使用空间</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%94%b6%e9%9b%86%e7%bb%9f%e8%ae%a1%e4%bf%a1%e6%81%af%e5%b1%9e%e4%ba%8edml%e6%93%8d%e4%bd%9c.html" rel="bookmark" class="crp_title">数据库收集统计信息属于dml操作</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/03/grant-dml-to-public-authorization-expires.html" rel="bookmark" class="crp_title">表dml操作权限授权给public,导致只读用户失效</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/%e8%af%af%e5%88%a0%e9%99%a4dual%e8%a1%a8%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">误删除dual表恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/11/%e6%b8%85%e7%a9%baschema%e4%b8%ad%e6%89%80%e6%9c%89%e8%a1%a8%e7%9a%84comment%e4%bf%a1%e6%81%af.html" rel="bookmark" class="crp_title">清空schema中所有表的comment信息</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/%e5%88%a9%e7%94%a8%e7%89%a9%e5%8c%96%e8%a7%86%e5%9b%be%e5%88%b7%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">利用物化视图刷数据</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EXADATA EHCC初试</title>
		<link>https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html</link>
		<comments>https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html#comments</comments>
		<pubDate>Fri, 21 Sep 2012 13:38:36 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[EXADATA]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=3855</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div id="xifenfeicopyright">
<p>联系：<a href="https://www.xifenfei.com/about_xifenfei" target="_blank">手机/微信(+86 17813235971)   QQ(107644445)</a><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&#038;uin=107644445&#038;site=qq&#038;menu=yes"><img src="https://www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"/></a></p>
<p>标题：<a href="https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html" target="_blank">EXADATA EHCC初试</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>今天有幸见识了下EXADATA的强大功能之一EHCC(Exadata Hybrid Columnar Compression),发现压缩效果确实很让人心动,压缩效率大大超过我的预计,压缩97%左右(1-628.1875/20573)<br />
<strong>创建模拟表T_FF_SOURCE</strong></p>
<pre class="brush: sql; title: ; notranslate">
14:32:52 SQL&gt; create table t_FF_source as select * from dba_objects;

Table created.

Elapsed: 00:00:00.16

14:35:54 SQL&gt; begin
14:37:05   2  for i in 1..100000 loop
14:37:05   3     insert into t_FF_source select * from dba_jects;
14:37:05   4    commit;
14:37:05   5   end loop;
14:37:05   6  end;
14:37:05   7   /

Elapsed: 00:13:07.76

14:51:05 SQL&gt; select count(*) from t_FF_source;

  COUNT(*)
----------
 197015655

Elapsed: 00:00:33.18


14:51:56 SQL&gt;  col segment_name format a45 heading &quot;Segment Name&quot;
14:52:55 SQL&gt; select segment_name Segment_Name
14:52:55   2  ,      segment_type             &quot;Segment Type&quot;
14:52:55   3  ,      round(sum(bytes)/1024/1024/1024,2)     &quot;Size In GB&quot;
14:52:55   4  from dba_segments
14:52:55   5  where 
14:52:56   6  segment_name ='T_FF_SOURCE'
14:52:56   7  group by segment_name,segment_type
14:52:56  8  order by 1;

Segment Name                                  Segment Type       Size In GB
--------------------------------------------- ------------------ ----------
T_FF_SOURCE                                   TABLE                   20.09
</pre>
<p><strong>创建各种情况下压缩表</strong></p>
<pre class="brush: sql; title: ; notranslate">
--BASE
create table t_FF_c  compress  NOLOGGING as select /*+ PARALLE 24*/ * from t_FF_source;

--OLTP
create table t_FF_c_o compress for oltp NOLOGGING as select /*+ PARALLE 24 */ * from t_FF_source;

--QUERY LOW
create table t_FF_q_l  compress for query low  NOLOGGING as select /*+ PARALLE 24 */ * from t_FF_source;

--QUERY HIGH
create table t_FF_q_h compress for query high parallel 24 nologging as select /*+ PARALLE 12 */ * from t_FF_source;

--ARCHIVE LOW
create table t_FF_a_l compress for archive low parallel 24 nologging as select /*+ PARALLE 12 */ * from t_FF_source;

--ARCHIVE HIGH
create table t_FF_a_h compress for archive high  parallel 24 nologging as select  /*+ PARALLE 12 */ * from t_FF_source;
</pre>
<p>其实BASE和OLTP是数据库基本的压缩功能,该功能不仅限于EXADATA,但是后面的四种压缩就是我们所说的EHCC,也只有EXADATA用户才能够体验到.<br />
<br />
<strong>数据压缩结果</strong></p>
<pre class="brush: sql; title: ; notranslate">
16:19:13 SQL&gt; select s.owner,segment_name,s.bytes/1024/1024 t_size,compress_for 
16:19:20   2  from dba_segments s,dba_tables t
16:19:20   3  where s.owner=t.owner and t.table_name=s.segment_name 
16:19:20   4  and s.owner='FF' and t.table_name like 'T_FF%';

OWNER                          SEGMENT_NAME                            T_SIZE COMPRESS_FOR
------------------------------ ----------------------------------- ---------- ------------
FF                             T_FF_A_L                              1244.625 ARCHIVE LOW
FF                             T_FF_SOURCE                              20573
FF                             T_FF_Q_H                              1244.875 QUERY HIGH
FF                             T_FF_A_H                              628.1875 ARCHIVE HIGH
FF                             T_FF_C                                6961.625 BASIC
FF                             T_FF_Q_L                              2799.875 QUERY LOW
FF                             T_FF_C_O                             7759.1875 OLTP
</pre>
<p>试验结果证明<br />
1.BASE也OLTP的压缩效率差不多(可能是因为BASIC的PCTFREE为0,OLTP的PCTFREE为10)<br />
2.在EHCC的四种压缩中:QUERY LOW相对压缩率不高,采用LZO压缩算法,但是也比ORACLE自带的压缩效果高很多<br />
3.QUERY HIGH和ARCHIVE LOW压缩率差不多,都是使用ZLIB压缩算法<br />
4.ARCHIVE HIGH是压缩率极高,采用Bzip2压缩算法实现.<br />
<br />
<strong>EXADATA EM性能监控</strong><br />
<img src="//www.xifenfei.com/wp-content/uploads/2012/09/exadata_m.jpg" alt="" title="exadata_m" width="1362" height="477" class="aligncenter size-full wp-image-3856" /></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/exadata%e4%b8%8e%e9%9d%9eexadata%e6%90%ad%e5%bb%badatagurad%e5%85%b3%e4%ba%8eehcc%e7%89%b9%e6%80%a7%e6%b5%8b%e8%af%95.html" rel="bookmark" class="crp_title">EXADATA与非EXADATA搭建DATAGURAD关于EHCC特性测试</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/10/oracle%e6%9f%a5%e7%9c%8bobject%e5%af%b9%e8%b1%a1%e4%bd%bf%e7%94%a8%e7%a9%ba%e9%97%b4.html" rel="bookmark" class="crp_title">oracle查看object对象使用空间</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2020/01/heatmap-segment-size-is-large.html" rel="bookmark" class="crp_title">sysaux中HEATMAP 对象较大</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/cast%e6%9c%ac%e8%b4%a8%e6%8e%a2%e8%ae%a8.html" rel="bookmark" class="crp_title">CAST本质探讨</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/deferred_segment_creation-%e5%8f%82%e6%95%b0%e7%9b%b8%e5%85%b3%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">DEFERRED_SEGMENT_CREATION 参数相关说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/04/12-2-wri_adv_objects.html" rel="bookmark" class="crp_title">WRI$_ADV_OBJECTS表过大,导致SYSAUX表空间不足</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/%e9%80%9a%e8%bf%87rowid%e6%89%be%e5%9b%9e%e5%9d%8f%e5%9d%97%e6%95%b0%e6%8d%ae.html" rel="bookmark" class="crp_title">通过ROWID找回坏块数据</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/11/in-memory%e6%95%b4%e4%bd%93%e6%b1%87%e6%80%bb.html" rel="bookmark" class="crp_title">In-Memory整体汇总</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/11/%e5%af%b9%e4%ba%8ein-memory-option-%e9%83%a8%e5%88%86%e7%bb%86%e8%8a%82%e6%b5%8b%e8%af%95-%e4%b8%bb%e8%a6%81%e5%bd%93inmemory_size%e4%b8%8d%e8%b6%b3%e4%b9%8b%e6%97%b6.html" rel="bookmark" class="crp_title">对于IN Memory Option 部分细节测试&#8212;主要当inmemory_size不足之时</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/%e5%9c%a8%e7%ba%bf%e9%87%8d%e5%ae%9a%e4%b9%89%e5%8e%9f%e7%90%86%e6%8e%a2%e8%ae%a8.html" rel="bookmark" class="crp_title">在线重定义原理探讨</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/04/segment-header-ora-1578.html" rel="bookmark" class="crp_title">segment header异常对象删除处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/08/oracle-12c-dbms_utility-expand_sql_text-%e6%9f%a5%e7%9c%8bsql%e8%a7%86%e5%9b%be%e5%9f%ba%e8%a1%a8.html" rel="bookmark" class="crp_title">ORACLE 12C dbms_utility.expand_sql_text 查看SQL视图基表</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/09/exadata-ehcc%e5%88%9d%e8%af%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
