<?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; AIX</title>
	<atom:link href="https://www.xifenfei.com/category/os/unix/aix/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>Tue, 17 Nov 2026 13:36:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>aix环境rac 私网直连导致haip启动异常</title>
		<link>https://www.xifenfei.com/2026/04/private-direct-connection-haip-donot-up.html</link>
		<comments>https://www.xifenfei.com/2026/04/private-direct-connection-haip-donot-up.html#comments</comments>
		<pubDate>Sun, 12 Apr 2026 14:51:06 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Oracle RAC]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=12092</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2026/04/private-direct-connection-haip-donot-up.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/2026/04/private-direct-connection-haip-donot-up.html" target="_blank">aix环境rac 私网直连导致haip启动异常</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>以前写过一篇在linux平台rac环境,心跳网络通过网线直连,当其中一台机器关机之后,另外一个节点无法检测到心跳网络是active,导致无法启动的情况:<a href="https://www.xifenfei.com/2018/09/private-network-interface-down-haip-donot-up.html" title="私网直连后遗症:一节点无法启动导致另外节点haip无法启动" rel="noopener" target="_blank">私网直连后遗症:一节点无法启动导致另外节点haip无法启动</a><br />
昨天晚上在aix环境中遇到类似情况,由于某种原因,需要关闭rac的一个节点,另外一个节点启动crs的过程中,haip始终无法启动,虽然haip起不来,但是过了一会儿,asm服务启动成功,磁盘组mount,数据库正常open(这个和linux环境有一定的区别,linux 下面11.2.0.4的rac,如果haip无法启动,默认情况启动asm服务),业务临时恢复</p>
<pre class="brush: bash; title: ; notranslate">
bash-4.2$ crsctl status res -t -init
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       db2                      Started             
ora.cluster_interconnect.haip
      1        ONLINE  OFFLINE                                                   
ora.crf
      1        ONLINE  ONLINE       db2                                          
ora.crsd
      1        ONLINE  ONLINE       db2                                          
ora.cssd
      1        ONLINE  ONLINE       db2                                          
ora.cssdmonitor
      1        ONLINE  ONLINE       db2                                          
ora.ctssd
      1        ONLINE  ONLINE       db2                      OBSERVER            
ora.diskmon
      1        OFFLINE OFFLINE                                                   
ora.drivers.acfs
      1        ONLINE  ONLINE       db2                                          
ora.evmd
      1        ONLINE  ONLINE       db2                                          
ora.gipcd
      1        ONLINE  ONLINE       db2                                          
ora.gpnpd
      1        ONLINE  ONLINE       db2                                          
ora.mdnsd
      1        ONLINE  ONLINE       db2                                          
</pre>
<p>分析haip对应的日志如下</p>
<pre class="brush: bash; title: ; notranslate">
[ USRTHRD][7257]{0:0:221} Starting Probe for ip 169.254.57.103
[ USRTHRD][7257]{0:0:221} Transitioning to Probe State
[ USRTHRD][7257]{0:0:221}  Arp::sProbe { 
[ USRTHRD][7257]{0:0:221} Arp::sSend:  sending type 1
[ USRTHRD][7257]{0:0:221} [NetHAWork] thread hit OSD exception failed to send arp
[ USRTHRD][7257]{0:0:221} (null) category: -2, operation: write, loc: arpsend:1,os, OS error: 69, other: 
[ USRTHRD][7257]{0:0:221} [NetHAWork] thread stopping
[ USRTHRD][7257]{0:0:221} Thread:[NetHAWork]isRunning is reset to false here
[ USRTHRD][5201]{0:0:221} use all detected INF
[ USRTHRD][5201]{0:0:221} Thread:[NetHAWork]thread constructor
[ USRTHRD][5201]{0:0:221} HAIP:  Moving ip '' from inf 'en6' to inf 'en6'
[ USRTHRD][5201]{0:0:221} pausing thread
[ USRTHRD][5201]{0:0:221} posting thread
[ USRTHRD][5201]{0:0:221} Waiting for HAIP work thread to cleanup ARP
[ USRTHRD][5201]{0:0:221} timeout to wait thread to cleanup ARP
[ USRTHRD][5201]{0:0:221} Thread:[NetHAWork]start {
[ USRTHRD][5201]{0:0:221} Thread:[NetHAWork]start }
[ USRTHRD][7514]{0:0:221} [NetHAWork] thread started
[ USRTHRD][7514]{0:0:221}  Arp::sCreateSocket { 
[ USRTHRD][7514]{0:0:221}  Arp::sCreateSocket } 
[ USRTHRD][5201]{0:0:221} use all detected INF
[ USRTHRD][7514]{0:0:221} Failed to check 169.254.57.103 on en6
[ USRTHRD][7514]{0:0:221} (null) category: 0, operation: , loc: , OS error: 0, other: 
</pre>
<p>这里初步看是把169.254.57.103这个ip增加到en6的网卡上,但是由于OS error: 69失败了.通过aix工程师分析,这个错误可能是物理网络不通导致,对网卡状态进行分析</p>
<pre class="brush: bash; title: ; notranslate">
bash-4.2# entstat -d ent6
-------------------------------------------------------------
ETHERNET STATISTICS (ent6) :
Device Type: 2-Port Gigabit Ethernet-SX PCI-Express Adapter (14103f03)
Hardware Address: 40:f2:e9:91:eb:7a
Elapsed Time: 0 days 1 hours 38 minutes 14 seconds

Transmit Statistics:                          Receive Statistics:
--------------------                          -------------------
Packets: 4128                                 Packets: 5077
Bytes: 35215659                               Bytes: 370511
Interrupts: 0                                 Interrupts: 4815
Transmit Errors: 0                            Receive Errors: 0
Packets Dropped: 0                            Packets Dropped: 0
                                              Bad Packets: 0
Max Packets on S/W Transmit Queue: 1         
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 0

Broadcast Packets: 12                         Broadcast Packets: 0
Multicast Packets: 62                         Multicast Packets: 66
No Carrier Sense: 0                           CRC Errors: 0
DMA Underrun: 0                               DMA Overrun: 0
Lost CTS Errors: 0                            Alignment Errors: 0
Max Collision Errors: 0                       No Resource Errors: 0
Late Collision Errors: 0                      Receive Collision Errors: 0
Deferred: 0                                   Packet Too Short Errors: 0
SQE Test: 0                                   Packet Too Long Errors: 0
Timeout Errors: 0                             Packets Discarded by Adapter: 0
Single Collision Count: 0                     Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 0

General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 2000
Driver Flags: Up Broadcast Simplex 
        Limbo 64BitSupport ChecksumOffload 
        LargeSend DataRateSet 

2-Port Gigabit Ethernet-SX PCI-Express Adapter (14103f03) Specific Statistics:
------------------------------------------------------------------------------
Link Status : Down      &lt;======表示网络链路状态异常(一般就是直连导致，如果通过交换机不会这样)
Media Speed Selected: Auto negotiation
Media Speed Running: Unknown
PCI Mode: PCI-Express X4
    Relaxed Ordering: Enabled
    TLP Size: 256
    MRR Size: 4096
Jumbo Frames: Disabled
TCP Segmentation Offload: Enabled
TCP Segmentation Offload Packets Transmitted: 3625
TCP Segmentation Offload Packet Errors: 0
Transmit and Receive Flow Control Status: Enabled
XON Flow Control Packets Transmitted: 0
XON Flow Control Packets Received: 0
XOFF Flow Control Packets Transmitted: 0
XOFF Flow Control Packets Received: 0
Transmit and Receive Flow Control Threshold (High): 40960
Transmit and Receive Flow Control Threshold (Low): 20480
Transmit and Receive Storage Allocation (TX/RX): 4/44
</pre>
<p>通过解决掉异常问题,把故障主机启动之后,启动该机器之后,网络链路状态恢复正常,启动haip成功,但是由于该集群在haip异常的时候启动成功,心跳网络使用是直接的私网ip(没有使用haip),因此还是要对集群进行一次重启恢复到正常状态.</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/09/private-network-interface-down-haip-donot-up.html" rel="bookmark" class="crp_title">私网直连后遗症:一节点无法启动导致另外节点haip无法启动</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/06/%e5%ae%89%e8%a3%85-oracle-12c-%e5%8d%95%e8%8a%82%e7%82%b9rac.html" rel="bookmark" class="crp_title">安装 ORACLE 12C 单节点RAC</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/2017/03/high-space-usage-crfclust-bdb.html" rel="bookmark" class="crp_title">crfclust.bdb文件过大处理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/09/linux-8-modify-network-name.html" rel="bookmark" class="crp_title">Linux 8 修改网卡名称</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/06/%e5%9c%a811gr2-gi%e4%b8%8a%e9%85%8d%e7%bd%ae%e7%ac%ac%e4%ba%8c%e7%9b%91%e5%90%ac.html" rel="bookmark" class="crp_title">在11GR2 GI上配置第二个监听</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/06/time-interval-more-10min-crs-donot-start.html" rel="bookmark" class="crp_title">RAC主机相差超过10分钟导致crs无法启动</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/12/oracle-12c-rac-hub-and-leaf-%e7%9b%b8%e4%ba%92%e8%bd%ac%e6%8d%a2.html" rel="bookmark" class="crp_title">ORACLE 12C RAC hub AND leaf 相互转换</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/03/%e4%bf%ae%e6%94%b911-2-rac-%e7%9a%84-scan-ip.html" rel="bookmark" class="crp_title">修改11.2 RAC 的 SCAN IP</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/07/%e5%8d%95%e7%bd%91%e5%8d%a1%e7%bb%91%e5%ae%9a%e5%a4%9aip%e5%af%bc%e8%87%b4tns-12542%e7%ad%89%e9%94%99%e8%af%af.html" rel="bookmark" class="crp_title">单网卡绑定多IP导致TNS-12542等错误</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/04/remove-ora-asmgroup-offline.html" rel="bookmark" class="crp_title">删除ora.asmgroup资源offline记录</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/03/control_file_record_keep_time%e5%92%8clog_archive_local_first.html" rel="bookmark" class="crp_title">CONTROL_FILE_RECORD_KEEP_TIME和LOG_ARCHIVE_LOCAL_FIRST</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2026/04/private-direct-connection-haip-donot-up.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aix环境写入大文件设置combehin提高效率</title>
		<link>https://www.xifenfei.com/2026/01/aix-nfs-combehin.html</link>
		<comments>https://www.xifenfei.com/2026/01/aix-nfs-combehin.html#comments</comments>
		<pubDate>Mon, 05 Jan 2026 13:16:04 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[aix nfs combehin]]></category>
		<category><![CDATA[nfs combehin]]></category>
		<category><![CDATA[nfs 大文件慢]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=11883</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2026/01/aix-nfs-combehin.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/2026/01/aix-nfs-combehin.html" target="_blank">aix环境写入大文件设置combehin提高效率</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>有一段时间没有弄aix系统了,这次有一个aix的rac数据库故障,需要把数据文件做一个备份,由于硬盘本身性能不好,通过rman的copy或者asmcmd的cp命令都会引起crs的表决盘超时,然后主机重启导致拷贝失败,最后在Db.recovery的建议下,通过amdu进行拷贝,由于拷贝的目录是挂载nfs文件系统,虽然通过amdu拷贝绕过了crs(关闭掉crs,不会触发主机重启的问题),但是在拷贝过程中发现稍微大一点的文件,会出现比较超时间的io类似卡死的情况,类似这样:<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/01/11.png"><img src="https://www.xifenfei.com/wp-content/uploads/2026/01/11.png" alt="1" width="678" height="459" class="alignleft size-full wp-image-11884" /></a><br />
<hr />
查看mount相关参数<a href="https://www.xifenfei.com/wp-content/uploads/2026/01/2.png"><img src="https://www.xifenfei.com/wp-content/uploads/2026/01/2.png" alt="2" width="1242" height="281" class="alignleft size-full wp-image-11885" /></a><br />
<hr />
而且通过观察,文件越大速度越慢,一个bigfile文件1T,中间出现类似这样io卡死的时间更长.导致整体时间会很长</p>
<pre class="brush: bash; title: ; notranslate">
-rw-r--r--    1 root     system   8589942784 Jan 03 06:54 data.270.1122584819
-rw-r--r--    1 root     system   1073741832192 Jan 04 20:59 users.263.1122584819
</pre>
<p>通过观察上一个文件的完成时间1月3日06:54,1T的文件整体拷贝结束时间1月4日20:59,整体时间为38小时05分钟,最终的拷贝速度平均为:1000*1024/(38*60+5)大概1分钟448MB,也就是每秒7.5MB不到的速度.通过查询资料发现在aix平台的nfs有特殊性,拷贝大文件可能会速度慢很多:<a href="https://www.ibm.com/docs/zh/aix/7.2.0?topic=scenarios-improving-nfs-client-large-file-writing-performance" title="改善 NFS 客户机大文件写操作性能" rel="noopener" target="_blank">改善 NFS 客户机大文件写操作性能</a>,确认了可以考虑加上-o combehin参数来提高效率.<br />
combehind（Complete Behind）直译是 “后置完成”，它是 AIX 为 NFS 客户端优化 写操作（write） 性能的核心参数，作用是：<br />
1. 当 NFS 客户端向服务端发起写请求时，不等待服务端返回 “写完成” 确认，直接向应用层返回 “写成功”；<br />
2. 写请求的最终完成由 AIX 内核在后台异步处理，应用层无需阻塞等待服务端响应。<br />
简单来说：这个参数让 NFS 写操作从 “同步等待” 变成 “异步后置确认”，减少应用程序的等待时间，提升写性能。<br />
<br />
通过设置该参数之后<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/01/41.png"><img src="https://www.xifenfei.com/wp-content/uploads/2026/01/41.png" alt="4" width="1137" height="292" class="alignleft size-full wp-image-11886" /></a><br />
<hr />
备份速度基本上稳定在18-20M之间,没有再次出现io类似挂起的现象<br />
<a href="https://www.xifenfei.com/wp-content/uploads/2026/01/31.png"><img src="https://www.xifenfei.com/wp-content/uploads/2026/01/31.png" alt="3" width="656" height="441" class="alignleft size-full wp-image-11889" /></a><br />
<hr />
对于在aix环境,如果使用nfs写入较大文件,可以考虑设置combehind参数,提高效率,但是同时这个参数也是一个比较有风险的参数,因为应用层收到 “写成功” 时，数据可能还没真正写入 NFS 服务端磁盘，若此时客户端 / 服务端宕机、网络中断，未完成的写数据会丢失。</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/06/deepseek_oracle_recovery_major_fault.html" rel="bookmark" class="crp_title">使用deepseek进行Oracle恢复,引起重大故障</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/dd-asm-recovery.html" rel="bookmark" class="crp_title">在生产环境错误执行dd命令破坏asm磁盘故障恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/01/hgdb-rm-rf-recovery.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/2026/04/orafhr-oracle-wman.html" rel="bookmark" class="crp_title">OraFHR快速open被勒索加密破坏的Oracle数据库</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/03/orafhr.html" rel="bookmark" class="crp_title">Oracle数据库被勒索加密一键open工具&#8211;OraFHR</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/03/wman-mysql-recovery.html" rel="bookmark" class="crp_title">.wman扩展名勒索mysql数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/03/win-rm-datafile-recovery.html" rel="bookmark" class="crp_title">记录一次win删除数据文件完美恢复案例</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/07/obet-2026-07.html" rel="bookmark" class="crp_title">Oracle Block Edit Tool (obet) 功能增强&#8211;2026.07</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/10/bres-dmp-recovery.html" rel="bookmark" class="crp_title">.bres勒索病毒加密数据库dmp文件可恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/air-db-recovery.html" rel="bookmark" class="crp_title">.[xueyuanjie@onionmail.org].AIR勒索加密数据库恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/12/sql-bak-0-lost-data.html" rel="bookmark" class="crp_title">模拟sql server故障备份完成恢复实现数据0丢失</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/08/obet-forcecopy-ioerror.html" rel="bookmark" class="crp_title">obet forcecopy功能抢救硬件故障中的数据文件</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2026/01/aix-nfs-combehin.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pvid=yes导致asm无法mount</title>
		<link>https://www.xifenfei.com/2016/06/pvid-asm-dismount.html</link>
		<comments>https://www.xifenfei.com/2016/06/pvid-asm-dismount.html#comments</comments>
		<pubDate>Sun, 19 Jun 2016 10:29:21 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Oracle备份恢复]]></category>
		<category><![CDATA[aix asm]]></category>
		<category><![CDATA[asm disk header恢复]]></category>
		<category><![CDATA[asm mount]]></category>
		<category><![CDATA[asm不能mount]]></category>
		<category><![CDATA[asm恢复]]></category>
		<category><![CDATA[asm磁盘头修复]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=6444</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2016/06/pvid-asm-dismount.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/2016/06/pvid-asm-dismount.html" target="_blank">pvid=yes导致asm无法mount</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>今天凌晨接到客户恢复请求，对于aix rac，两个ibm存储做mirror的环境中，客户做存储容灾演练，发现磁盘的名称发生改变，然后对其中一个磁盘设置pvid，结果悲剧了导致asm一个磁盘组无法正常起来。然后又aix端删除这些设备，然后重新扫描设备。结果不是一个磁盘组不能mount，而是整个gi就无法正常启动。希望我们给予技术支持。<br />
<strong>查看asm 日志，确定asm disk信息</strong><br />
<img src="//www.xifenfei.com/wp-content/uploads/2016/06/asm-disk1.jpg" alt="asm-disk1" width="666" height="261" class="alignleft size-full wp-image-6446" /><br />
<img src="//www.xifenfei.com/wp-content/uploads/2016/06/asm-disk2.jpg" alt="asm-disk2" width="742" height="173" class="alignleft size-full wp-image-6447" /><br />
<hr />
从这里可以确定，一共有两个asm diskgroup，每个group有两个磁盘，hdisk2和hdisk3 为hisdata，hdisk4,和hdisk5为emrdata.<br />
<br />
<strong>使用kfed分析磁盘头</strong></p>
<pre class="brush: bash; title: ; notranslate">
dd if=/dev/rhdisk2 of=/tmp/xifenfei/rhdisk2.dd bs=1024k count=10
dd if=/dev/rhdisk3 of=/tmp/xifenfei/rhdisk3.dd bs=1024k count=10
dd if=/dev/rhdisk4 of=/tmp/xifenfei/rhdisk4.dd bs=1024k count=10
dd if=/dev/rhdisk5 of=/tmp/xifenfei/rhdisk5.dd bs=1024k count=10
--传输到我电脑上分析

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk2.dd|grep name
kfdhdb.dskname:            HISDATA_0000 ; 0x028: length=12
kfdhdb.grpname:                 HISDATA ; 0x048: length=7
kfdhdb.fgname:             HISDATA_0000 ; 0x068: length=12
kfdhdb.capname:                         ; 0x088: length=0

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk3.dd|grep name
kfdhdb.dskname:            HISDATA_0001 ; 0x028: length=12
kfdhdb.grpname:                 HISDATA ; 0x048: length=7
kfdhdb.fgname:             HISDATA_0001 ; 0x068: length=12
kfdhdb.capname:                         ; 0x088: length=0

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk4.dd|grep name
kfdhdb.dskname:            EMRDATA_0000 ; 0x028: length=12
kfdhdb.grpname:                 EMRDATA ; 0x048: length=7
kfdhdb.fgname:             EMRDATA_0000 ; 0x068: length=12
kfdhdb.capname:                         ; 0x088: length=0

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk5.dd|grep name

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk5.dd
kfbh.endian:                        201 ; 0x000: 0xc9
kfbh.hard:                          194 ; 0x001: 0xc2
kfbh.type:                          212 ; 0x002: *** Unknown Enum ***
kfbh.datfmt:                        193 ; 0x003: 0xc1
kfbh.block.blk:                       0 ; 0x004: blk=0
kfbh.block.obj:                       0 ; 0x008: file=0
kfbh.check:                           0 ; 0x00c: 0x00000000
kfbh.fcn.base:                        0 ; 0x010: 0x00000000
kfbh.fcn.wrap:                        0 ; 0x014: 0x00000000
kfbh.spare1:                          0 ; 0x018: 0x00000000
kfbh.spare2:                          0 ; 0x01c: 0x00000000
000000000 C1D4C2C9 00000000 00000000 00000000  [................]
000000010 00000000 00000000 00000000 00000000  [................]
  Repeat 254 times
KFED-00322: Invalid content encountered during block traversal: [kfbtTraverseBlock][Invalid OSM block type][][212]

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk5.dd blkn=2|grep kfbh
kfbh.endian:                          0 ; 0x000: 0x00
kfbh.hard:                          130 ; 0x001: 0x82
kfbh.type:                            3 ; 0x002: KFBTYP_ALLOCTBL
kfbh.datfmt:                          2 ; 0x003: 0x02
kfbh.block.blk:                33554432 ; 0x004: blk=33554432
kfbh.block.obj:                16777344 ; 0x008: file=128
kfbh.check:                  2654889601 ; 0x00c: 0x9e3e6681
kfbh.fcn.base:               1696071680 ; 0x010: 0x65180000
kfbh.fcn.wrap:                        0 ; 0x014: 0x00000000
kfbh.spare1:                          0 ; 0x018: 0x00000000
kfbh.spare2:                          0 ; 0x01c: 0x00000000

C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk5.dd blkn=510|grep name
kfdhdb.dskname:            EMRDATA_0001 ; 0x028: length=12
kfdhdb.grpname:                 EMRDATA ; 0x048: length=7
kfdhdb.fgname:             EMRDATA_0001 ; 0x068: length=12
kfdhdb.capname:                         ; 0x088: length=0
</pre>
<p>通过上述分析，基本上确定由于对hdisk5设置了pvid导致该asm disk的磁盘头损坏.这个可以直接使用asm repair功能修复(注意要clear pvid)</p>
<pre class="brush: bash; title: ; notranslate">
C:\Users\FAL&gt;kfed read H:\temp\xifenfei\tmp\xifenfei\rhdisk5.dd |grep name
kfdhdb.dskname:            EMRDATA_0001 ; 0x028: length=12
kfdhdb.grpname:                 EMRDATA ; 0x048: length=7
kfdhdb.fgname:             EMRDATA_0001 ; 0x068: length=12
kfdhdb.capname:                         ; 0x088: length=0
</pre>
<p>
<strong>启动crs到cssd进程报错分析</strong><br />
1. 由于删除磁盘，扫描设备导致hdisk[2-5] 权限和用户组不对<br />
2. 由于删除，扫描磁盘导致磁盘共享模式不对<br />
修复磁盘头和解决这两个问题之后,gi启动正常,磁盘组也正常mount，数据库也正常启动,数据0丢失,至此完美恢复<br />
<img src="//www.xifenfei.com/wp-content/uploads/2016/06/oracle-open.jpg" alt="oracle-open" width="616" height="725" class="alignleft size-full wp-image-6445" /><br />
<hr />
类似客户恢复案例:<a href="//www.xifenfei.com/2014/12/asm-disk%E8%AF%AF%E8%AE%BE%E7%BD%AEpvid%E5%AF%BC%E8%87%B4asm-diskgroup%E6%97%A0%E6%B3%95mount%E6%81%A2%E5%A4%8D.html" title="asm disk误设置pvid导致asm diskgroup无法mount恢复" target="_blank">asm disk误设置pvid导致asm diskgroup无法mount恢复</a><br />
如果您遇到此类情况,无法解决请联系我们，提供专业<a title="ORACLE数据库恢复技术支持" href="//www.xifenfei.com/oracle_recover" target="_blank">ORACLE数据库恢复技术支持</a><br />
<strong><font color="red" size=4>Phone:17813235971  &nbsp;&nbsp;   Q Q:107644445<a target="_blank" href="https://wpa.qq.com/msgrd?v=3&amp;uin=107644445&amp;site=qq&amp;menu=yes"><img id="xffqqimg" src="//www.xifenfei.com/wp-content/themes/img/site_qq.jpg" alt="QQ咨询惜分飞" title="QQ咨询惜分飞"></a>  &nbsp;&nbsp;  E-Mail:dba@xifenfei.com</font></strong></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/oracleasm-createdisk-acfs-recovery.html" rel="bookmark" class="crp_title">oracleasm createdisk破坏的acfs文件系统恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/12/dd-asm-disk-header-recovery.html" rel="bookmark" class="crp_title">dd破坏asm磁盘头恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/09/kfed-read-asm-disk-header.html" rel="bookmark" class="crp_title">通过kfed说明asm disk header定义</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/06/losetup-asm-disk.html" rel="bookmark" class="crp_title">使用losetup实现linux普通文件做asm disk</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/%e6%89%8b%e5%b7%a5%e4%bf%ae%e5%a4%8dasm-disk-header-%e5%bc%82%e5%b8%b8.html" rel="bookmark" class="crp_title">手工修复ASM DISK HEADER 异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/03/asm-disk-zero-recovery.html" rel="bookmark" class="crp_title">asm disk 磁盘部分被清空恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/asm-header-%e5%a4%87%e4%bb%bd%e4%b8%8e%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">ASM DISK HEADER 备份与恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/04/phys_meta_replicated.html" rel="bookmark" class="crp_title">Physically Addressed Metadata Redundancy on  12c ASM ( PHYS_META_REPLICATED )</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2017/05/asm-disk-partition-lost-recovery.html" rel="bookmark" class="crp_title">asm磁盘分区丢失恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/05/pvcreate-asm-disk-recovery.html" rel="bookmark" class="crp_title">pvcreate  asm disk导致asm磁盘组异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/12/ssd-trim-fdisk.html" rel="bookmark" class="crp_title">ssd trim导致fdisk格式化磁盘之后无法恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/12/asm-disk%e8%af%af%e8%ae%be%e7%bd%aepvid%e5%af%bc%e8%87%b4asm-diskgroup%e6%97%a0%e6%b3%95mount%e6%81%a2%e5%a4%8d.html" rel="bookmark" class="crp_title">asm disk误设置pvid导致asm diskgroup无法mount恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2016/06/pvid-asm-dismount.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>aix中procmap 查看oracle进程占用系统内存</title>
		<link>https://www.xifenfei.com/2013/01/aix%e4%b8%adprocmap-%e6%9f%a5%e7%9c%8boracle%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e7%b3%bb%e7%bb%9f%e5%86%85%e5%ad%98.html</link>
		<comments>https://www.xifenfei.com/2013/01/aix%e4%b8%adprocmap-%e6%9f%a5%e7%9c%8boracle%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e7%b3%bb%e7%bb%9f%e5%86%85%e5%ad%98.html#comments</comments>
		<pubDate>Wed, 30 Jan 2013 12:36:17 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=4125</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2013/01/aix%e4%b8%adprocmap-%e6%9f%a5%e7%9c%8boracle%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e7%b3%bb%e7%bb%9f%e5%86%85%e5%ad%98.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/01/aix%e4%b8%adprocmap-%e6%9f%a5%e7%9c%8boracle%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e7%b3%bb%e7%bb%9f%e5%86%85%e5%ad%98.html" target="_blank">aix中procmap 查看oracle进程占用系统内存</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>procmap是用来显示进程地址空间，通过这个命令找出来的“read/write”表示为进程的私有内存,如果对应到oracle 进程的LOCAL中来,也就是对应了是oracle 会话进程占用的操作系统内存,和sga与pga无关，即ORACLE数据库进程占用的额外的系统内存,在计算oracle数据库消耗内存的时候，要考虑sga+pga+process占用的内存<br />
<strong>procmap命令使用</strong></p>
<pre class="brush: bash; title: ; notranslate">
$procmap 7931354
7931354 : oracleccicdx (LOCAL=NO) 
100000000            95504K  read/exec         oracle
110000035             2399K  read/write        oracle
9fffffff0000000         51K  read/exec         /usr/ccs/bin/usla64
9fffffff000cfe2          0K  read/write        /usr/ccs/bin/usla64
900000000b05930          2K  read/exec         /usr/lib/libC.a[shr3_64.o]
9001000a0122930          0K  read/write        /usr/lib/libC.a[shr3_64.o]
900000000ae6b00        118K  read/exec         /usr/lib/libC.a[shrcore_64.o]
9001000a030a100         12K  read/write        /usr/lib/libC.a[shrcore_64.o]
900000000ac8000        118K  read/exec         /usr/lib/libC.a[ansicore_64.o]
9001000a0300e00         36K  read/write        /usr/lib/libC.a[ansicore_64.o]
900000000411468          0K  read/exec         /usr/lib/libicudata.a[shr_64.o]
9001000a0121468          0K  read/write        /usr/lib/libicudata.a[shr_64.o]
90000000040f738          2K  read/exec         /usr/lib/libC.a[shr2_64.o]
9001000a0314738          0K  read/write        /usr/lib/libC.a[shr2_64.o]
9000000008dd800       1699K  read/exec         /usr/lib/libC.a[ansi_64.o]
9001000a0315a00        277K  read/write        /usr/lib/libC.a[ansi_64.o]
9000000008bab00        135K  read/exec         /usr/lib/libC.a[shr_64.o]
9001000a030eb00         19K  read/write        /usr/lib/libC.a[shr_64.o]
900000000708180       1732K  read/exec         /usr/lib/libicuuc.a[shr_64.o]
9001000a035cdac        180K  read/write        /usr/lib/libicuuc.a[shr_64.o]
900000000493d80       2510K  read/exec         /usr/lib/libicui18n.a[shr_64.o]
9001000a038a148        270K  read/write        /usr/lib/libicui18n.a[shr_64.o]
900000000473200         91K  read/exec         /usr/lib/libsrc.a[shr_64.o]
9001000a01127a8         55K  read/write        /usr/lib/libsrc.a[shr_64.o]
90000000045a300         98K  read/exec         /usr/lib/libcorcfg.a[shr_64.o]
9001000a04147c8         18K  read/write        /usr/lib/libcorcfg.a[shr_64.o]
900000000b16200        750K  read/exec         /usr/lib/liblvm.a[shr_64.o]
9001000a03dd028        219K  read/write        /usr/lib/liblvm.a[shr_64.o]
900000000444f00         82K  read/exec         /usr/lib/libcfg.a[shr_64.o]
9001000a03d58f0         26K  read/write        /usr/lib/libcfg.a[shr_64.o]
90000000040e3a0          2K  read/exec         /usr/lib/libcrypt.a[shr_64.o]
9001000a0106948          0K  read/write        /usr/lib/libcrypt.a[shr_64.o]
90000001615d860          5K  read/exec         /usr/lib/libc.a[aio_64.o]
9001000a3aed568          0K  read/write        /usr/lib/libc.a[aio_64.o]
9000000003efc00        120K  read/exec         /usr/lib/libodm.a[shr_64.o]
9001000a0107cc8         40K  read/write        /usr/lib/libodm.a[shr_64.o]
900000000bd2c80        147K  read/exec         /usr/lib/libperfstat.a[shr_64.o]
9001000a041a960         14K  read/write        /usr/lib/libperfstat.a[shr_64.o]
9000000017d7000          0K  read/exec         /usr/lib/libdl.a[shr_64.o]
9001000a0517000          0K  read/write        /usr/lib/libdl.a[shr_64.o]
9000000158ed100       8636K  read/exec         /oracle/product/db10gr2/lib/libjox10.a[shr.o]
8001000a0000b78        587K  read/write        /oracle/product/db10gr2/lib/libjox10.a[shr.o]
900000000a87000        257K  read/exec         /usr/lib/libpthreads.a[shr_xpg5_64.o]
9001000a0274000        559K  read/write        /usr/lib/libpthreads.a[shr_xpg5_64.o]
900000000000800       4025K  read/exec         /usr/lib/libc.a[shr_64.o]
9001000a0000020       1047K  read/write        /usr/lib/libc.a[shr_64.o]
         Total      121863K
</pre>
<p>简化命令，统计私有内存,procmap 7931354|grep &#8220;read/write&#8221; |awk -F &#8221; &#8221; &#8216;{print $2}&#8217;,通过相关计算的出来,在当前的操作系统和数据库版本中，一个LOCAL=NO进程占用系统内存为:5758KB<br />
<br />
<strong>补充说明</strong><br />
1.操作系统版本</p>
<pre class="brush: bash; title: ; notranslate">
$oslevel -r
6100-06
</pre>
<p>2.数据库版本</p>
<pre class="brush: sql; title: ; notranslate">
SQL&gt; select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
NLSRTL Version 10.2.0.4.0 - Production
</pre>
<p>3.通过跟踪多个LOCAL=NO进程,发现类似进程占用的系统内存相同,估算给系统oracle进程占用的内存，可以通过该值进行大概估算<br />
4.确认ORACLE使用的内存量不是以往认识的sga+pga，实际上应该是sga+pga+所有oracle进程占用<br />
5.在linux中使用pmap来查看</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/01/aix%e4%bd%bf%e7%94%a8%e5%a4%aa%e5%a4%9a%e5%86%85%e5%ad%98%e5%af%bc%e8%87%b4shared-pool-%e7%9b%b8%e5%85%b3latch%e5%bc%82%e5%b8%b8.html" rel="bookmark" class="crp_title">aix使用太多内存导致shared pool 相关latch异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/08/vdatafile-enabled%e7%9b%b8%e5%85%b3%e5%80%bc%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">v$datafile.enabled相关值说明</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/2011/06/bash-shell%e4%b8%ad%e4%bd%bf%e7%94%a8%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e5%88%a4%e6%96%ad.html" rel="bookmark" class="crp_title">shell常见使用技巧</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2023/10/no-tns-login-pdb.html" rel="bookmark" class="crp_title">非tns方式登录pdb方法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/06/automatic-datafile-offline.html" rel="bookmark" class="crp_title">Automatic datafile offline due to write error on</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/01/ora-742-bug.html" rel="bookmark" class="crp_title">ORA-742 写丢失常见bug记录</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/12/tkprof%e4%bd%bf%e7%94%a8.html" rel="bookmark" class="crp_title">TKPROF使用</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/01/reliable-message.html" rel="bookmark" class="crp_title">reliable message等待</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/2025/01/oracle-user-read-only.html" rel="bookmark" class="crp_title">Oracle read only用户&#8212;23ai新特性:只读用户</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></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2013/01/aix%e4%b8%adprocmap-%e6%9f%a5%e7%9c%8boracle%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e7%b3%bb%e7%bb%9f%e5%86%85%e5%ad%98.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ORACLE在AIX中产生SOFTWARE PROGRAM ABNORMALLY TERMINATED警告原因</title>
		<link>https://www.xifenfei.com/2012/05/oracle%e5%9c%a8aix%e4%b8%ad%e4%ba%a7%e7%94%9fsoftware-program-abnormally-terminated%e8%ad%a6%e5%91%8a%e5%8e%9f%e5%9b%a0.html</link>
		<comments>https://www.xifenfei.com/2012/05/oracle%e5%9c%a8aix%e4%b8%ad%e4%ba%a7%e7%94%9fsoftware-program-abnormally-terminated%e8%ad%a6%e5%91%8a%e5%8e%9f%e5%9b%a0.html#comments</comments>
		<pubDate>Sat, 12 May 2012 15:37:16 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=3133</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/05/oracle%e5%9c%a8aix%e4%b8%ad%e4%ba%a7%e7%94%9fsoftware-program-abnormally-terminated%e8%ad%a6%e5%91%8a%e5%8e%9f%e5%9b%a0.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/05/oracle%e5%9c%a8aix%e4%b8%ad%e4%ba%a7%e7%94%9fsoftware-program-abnormally-terminated%e8%ad%a6%e5%91%8a%e5%8e%9f%e5%9b%a0.html" target="_blank">ORACLE在AIX中产生SOFTWARE PROGRAM ABNORMALLY TERMINATED警告原因</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>数据库中发现如下错误</strong><br />
该错误的解决方案:<a href="//www.xifenfei.com/3129.html" target="_blank">ORA-07445[dbgrmqmqpk_query_pick_key()+0f88]</a></p>
<pre class="brush: bash; title: ; notranslate">
Dump file /oracle/diag/rdbms/sgerp5/sgerp5/incident/incdir_579300/sgerp5_m000_7602504_i579300.trc
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /oracle/product/11.1.0/db_1
System name:    AIX
Node name:  sgerp5
Release:    1
Version:    6
Machine:    00C8F0564C00
Instance name: sgerp5
Redo thread mounted by this instance: 1
Oracle process number: 138
Unix process pid: 7602504, image: oracle@sgerp5 (m000)
 
*** 2012-05-11 03:52:35.200
*** SESSION ID:(752.5029) 2012-05-11 03:52:35.200
*** CLIENT ID:() 2012-05-11 03:52:35.200
*** SERVICE NAME:(SYS$BACKGROUND) 2012-05-11 03:52:35.200
*** MODULE NAME:(MMON_SLAVE) 2012-05-11 03:52:35.200
*** ACTION NAME:(Auto-Purge Slave Action) 2012-05-11 03:52:35.200
 
Dump continued from file: /oracle/diag/rdbms/sgerp5/sgerp5/trace/sgerp5_m000_7602504.trc
ORA-07445: exception encountered: core dump [dbgrmqmqpk_query_pick_key()+0f88] 
[SIGSEGV] [ADDR:0xB38F0000000049][PC:0x100213C08] [Address not mapped to object] []
</pre>
<p><strong>errpt错误说明</strong><br />
在产生7445错误的同时观察aix系统错误日志发现SOFTWARE PROGRAM ABNORMALLY TERMINATED错误</p>
<pre class="brush: bash; title: ; notranslate">
sgerp5_[oracle]--&gt;errpt -aj A924A5FC
---------------------------------------------------------------------------
LABEL:          CORE_DUMP
IDENTIFIER:     A924A5FC

Date/Time:       Fri May 11 03:52:55 BEIST 2012
Sequence Number: 471
Machine Id:      00C8F0564C00
Node Id:         sgerp5
Class:           S
Type:            PERM
WPAR:            Global
Resource Name:   SYSPROC         

Description
SOFTWARE PROGRAM ABNORMALLY TERMINATED

Probable Causes
SOFTWARE PROGRAM

User Causes
USER GENERATED SIGNAL

        Recommended Actions
        CORRECT THEN RETRY

Failure Causes
SOFTWARE PROGRAM

        Recommended Actions
        RERUN THE APPLICATION PROGRAM
        IF PROBLEM PERSISTS THEN DO THE FOLLOWING
        CONTACT APPROPRIATE SERVICE REPRESENTATIVE

Detail Data
SIGNAL NUMBER
           6
USER'S PROCESS ID:
               7602504
FILE SYSTEM SERIAL NUMBER
          14
INODE NUMBER
           0      367648
CORE FILE NAME
/oracle/diag/rdbms/sgerp5/sgerp5/cdump/core_7602504/core
PROGRAM NAME
oracle
STACK EXECUTION DISABLED
           0
COME FROM ADDRESS REGISTER
sskgmcrea 0

PROCESSOR ID
  hw_fru_id: 1
  hw_cpu_id: 2

ADDITIONAL INFORMATION
skgdbgcra 224
??
ksdbgcra 3D0
ssexhd 978
??

Symptom Data
REPORTABLE
1
INTERNAL ERROR
0
SYMPTOM CODE
PCSS/SPI2 FLDS/oracle SIG/6 FLDS/skgdbgcra VALU/224
</pre>
<p><strong>错误原因</strong></p>
<pre class="brush: bash; title: ; notranslate">
This error is logged when a software program abnormally ends and causes a core dump. Users might
not be exiting applications correctly, the system might have been shut down while users were
working in application, or the user's terminal might have locked up and the application stopped
1)这里也就是说如果oracle进程在aix机器上异常终止,并且产生了一个core dump文件,
  就会出现SOFTWARE PROGRAM ABNORMALLY TERMINATED警告信息
2)用户登录系统没有正常退出,而系统被关闭
3)用户强制终止一个一个lock,而导致进程停止
</pre>
<p>本次AIX日志警告原因:<strong>由于进程7602504异常终止(ORA-07445错误)并且产生了 /oracle/diag/rdbms/sgerp5/sgerp5/cdump/core_7602504/core dump 文件,从而有了AIX中的SOFTWARE PROGRAM ABNORMALLY TERMINATED警告信息</strong></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/ora-07445dbgrmqmqpk_query_pick_key0f88.html" rel="bookmark" class="crp_title">ORA-07445[dbgrmqmqpk_query_pick_key()+0f88]</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/getting-ora-01476-during-execution-of-dbms_stats-gather_schema_stats.html" rel="bookmark" class="crp_title">Getting ORA-01476 during execution of DBMS_STATS.GATHER_SCHEMA_STATS</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/02/%e6%93%8d%e4%bd%9c%e7%b3%bb%e7%bb%9f%e7%ba%a7%e5%88%ab%e5%81%9asystemstate.html" rel="bookmark" class="crp_title">操作系统级别做systemstate</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/ora-07445pc0x7fff65d0-access_violation-addr0xffffffff-pc0x7fff65d0-unable_to_read.html" rel="bookmark" class="crp_title">ORA-07445 [ACCESS_VIOLATION]  [UNABLE_TO_READ] []</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/ora-27103-when-memory-target-parameter-is-set-to-more-than-3-gb11-1-0-7.html" rel="bookmark" class="crp_title">ORA-27103 when Memory target parameter is set to more than 3 GB(11.1.0.7)</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/07/8i%e5%8d%87%e7%ba%a7%e5%88%b09i%e5%87%ba%e7%8e%b0ora-07445pevm_movc_i18.html" rel="bookmark" class="crp_title">8i升级到9i出现ORA-07445[pevm_MOVC_i()+18]</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/11/subscription-for-node-down-event-still-pending.html" rel="bookmark" class="crp_title">WARNING: Subscription for node down event still pending</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/%e8%a1%a8%e7%a9%ba%e9%97%b4online%e5%87%ba%e7%8e%b0ora-00600kcbz_check_objd_typ%e5%a4%84%e7%90%86%e8%bf%87%e7%a8%8b.html" rel="bookmark" class="crp_title">表空间online出现ORA-00600[kcbz_check_objd_typ]处理过程</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/%e8%ae%b0%e5%bd%95%e4%b8%80%e6%ac%a1arc1-destination-log_archive_dest_2-network-reconnect-abandoned%e8%a7%a3%e5%86%b3.html" rel="bookmark" class="crp_title">记录一次ARC1: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned解决</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/memory-notification-library-cache-object-loaded-into-sga.html" rel="bookmark" class="crp_title">Memory Notification: Library Cache Object loaded into SGA</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/10/ora-27300-ora-27301-ora-27302.html" rel="bookmark" class="crp_title">ORA-27300 ORA-27301 ORA-27302</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/9i%e5%ba%93%e9%81%87%e5%88%b0ora-01595ora-01594.html" rel="bookmark" class="crp_title">9i库遇到ORA-01595/ORA-01594</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/05/oracle%e5%9c%a8aix%e4%b8%ad%e4%ba%a7%e7%94%9fsoftware-program-abnormally-terminated%e8%ad%a6%e5%91%8a%e5%8e%9f%e5%9b%a0.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ksh翻上/下条和自动补全功能</title>
		<link>https://www.xifenfei.com/2012/05/ksh%e7%bf%bb%e4%b8%8a%e4%b8%8b%e6%9d%a1%e5%92%8c%e8%87%aa%e5%8a%a8%e8%a1%a5%e5%85%a8%e5%8a%9f%e8%83%bd.html</link>
		<comments>https://www.xifenfei.com/2012/05/ksh%e7%bf%bb%e4%b8%8a%e4%b8%8b%e6%9d%a1%e5%92%8c%e8%87%aa%e5%8a%a8%e8%a1%a5%e5%85%a8%e5%8a%9f%e8%83%bd.html#comments</comments>
		<pubDate>Mon, 07 May 2012 02:26:18 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=3078</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/05/ksh%e7%bf%bb%e4%b8%8a%e4%b8%8b%e6%9d%a1%e5%92%8c%e8%87%aa%e5%8a%a8%e8%a1%a5%e5%85%a8%e5%8a%9f%e8%83%bd.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/05/ksh%e7%bf%bb%e4%b8%8a%e4%b8%8b%e6%9d%a1%e5%92%8c%e8%87%aa%e5%8a%a8%e8%a1%a5%e5%85%a8%e5%8a%9f%e8%83%bd.html" target="_blank">ksh翻上/下条和自动补全功能</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>AIX默认安装ksh，对于习惯了bash的人来说,不能tab自动补全,不能翻上/下,感觉使用起来很不方便,在ksh中不能直接实现这些功能,可以使用另外的方法来完成<br />
<strong>一.安装bash程序,使用起来就和bash一样</strong><br />
<br />
<strong>二.ksh中通过其他方法完成</strong><br />
<strong>翻上/下条功能</strong><br />
1、在主目录中 vi .profile<br />
2、添加一行：export EDITOR=vi<br />
3、保存.profile，重新登陆;或者source ~/.profile<br />
现在如果要使用翻上/下条功能,只需要按下esc键,然后使用j/k翻上/下即可;如果要退回到输入功能,直接输入i,然后输入即可.其实所有操作就是和vi中的操作一样.<br />
<br />
<strong>自动补全功能</strong><br />
使用esc+\</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/03/solaris-10%e5%ae%89%e8%a3%85oracle-10-2.html" rel="bookmark" class="crp_title">Solaris 10安装oracle 10.2</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/05/%e4%bd%bf%e7%94%a8idle_time%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9.html" rel="bookmark" class="crp_title">使用IDLE_TIME注意事项</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/05/sql-profile-%e4%bd%bf%e7%94%a8.html" rel="bookmark" class="crp_title">sql profile 使用</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/ora-nnnnn-%e9%94%99%e8%af%af%e8%ae%b0%e5%bd%95.html" rel="bookmark" class="crp_title">ora-nnnnn 错误记录</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/oracle%e4%b9%8buser-%e7%ae%a1%e7%90%86.html" rel="bookmark" class="crp_title">oracle之user 管理</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/05/password_rollover_time.html" rel="bookmark" class="crp_title">PASSWORD_ROLLOVER_TIME&#8212;实现新老密码短期共存</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/03/redhat-4-%e5%ae%89%e8%a3%8510g.html" rel="bookmark" class="crp_title">redhat 4 安装 Oracle 10g</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/08/oracle-%e6%8f%92%e5%85%a5%e5%90%ab%e5%ad%97%e7%ac%a6%e4%b8%b2.html" rel="bookmark" class="crp_title">oracle 插入含&#038;字符串</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/12/how-to-dump-the-contents-of-an-spfile-on-asm-when-asmgrid-is-down.html" rel="bookmark" class="crp_title">How to Get the Contents of an Spfile on ASM when ASM/GRID is down</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/%e4%ba%ba%e7%94%9f%e4%b8%ad%e7%9a%84%e5%8d%81%e4%b8%aa%e4%b8%8d%e8%a6%81%e7%ad%89.html" rel="bookmark" class="crp_title">人生中的十个不要等</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/03/log_archive_dest_n%e5%8f%82%e6%95%b0%e5%b1%9e%e6%80%a7.html" rel="bookmark" class="crp_title">LOG_ARCHIVE_DEST_n参数属性</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/08/oracle%e4%b9%8bshared%e6%a8%a1%e5%bc%8f%e9%85%8d%e7%bd%ae.html" rel="bookmark" class="crp_title">oracle之shared模式配置</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/05/ksh%e7%bf%bb%e4%b8%8a%e4%b8%8b%e6%9d%a1%e5%92%8c%e8%87%aa%e5%8a%a8%e8%a1%a5%e5%85%a8%e5%8a%9f%e8%83%bd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过netstat+rmsock查找AIX端口对应进程</title>
		<link>https://www.xifenfei.com/2012/02/%e9%80%9a%e8%bf%87netstatrmsock%e6%9f%a5%e6%89%beaix%e7%ab%af%e5%8f%a3%e5%af%b9%e5%ba%94%e8%bf%9b%e7%a8%8b.html</link>
		<comments>https://www.xifenfei.com/2012/02/%e9%80%9a%e8%bf%87netstatrmsock%e6%9f%a5%e6%89%beaix%e7%ab%af%e5%8f%a3%e5%af%b9%e5%ba%94%e8%bf%9b%e7%a8%8b.html#comments</comments>
		<pubDate>Thu, 23 Feb 2012 03:14:21 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=2571</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/02/%e9%80%9a%e8%bf%87netstatrmsock%e6%9f%a5%e6%89%beaix%e7%ab%af%e5%8f%a3%e5%af%b9%e5%ba%94%e8%bf%9b%e7%a8%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/02/%e9%80%9a%e8%bf%87netstatrmsock%e6%9f%a5%e6%89%beaix%e7%ab%af%e5%8f%a3%e5%af%b9%e5%ba%94%e8%bf%9b%e7%a8%8b.html" target="_blank">通过netstat+rmsock查找AIX端口对应进程</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>rmsock除去不包含文件描述符的套接字。它接受 socket、tcpcb、inpcb、ripcb 或 rawcb 地址并将其转换成套接字地址。然后检查每个进程所有打开的文件以查找套接字的匹配。如果没找到匹配，对该套接字执行异常终止操作，而不考虑套接字 linger 选项的存在。套接字保留的端口号释放。如果发现匹配，文件描述符和主进程状态显示给用户。<br />
命令格式：rmsock  Address  TypeofAddress</p>
<pre class="brush: bash; title: ; notranslate">
[zwq:/]netstat -Aan|grep 6200|grep LISTEN
f1000e0000307bb0 tcp4       0      0  *.6200             *.*                LISTEN
--f1000e0000307bb0 为系统内核地址

[zwq:/]rmsock f1000e0000307bb0 tcpcb
The socket 0x307808 is being held by proccess 5701830 (ons).

[zwq:/]ps -ef|grep 5701830|grep -v grep
oracle10  5701830  5112098   0   Apr 21      -  7:17 /oracle10/app/product/crs/10.2.0/opmn/bin/ons -d 
</pre>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/linux%e5%91%bd%e4%bb%a4%e8%a1%a5%e5%85%85.html" rel="bookmark" class="crp_title">linux命令补充</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/ipfirst%e4%bd%9c%e7%94%a8%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">IP=FIRST作用说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/04/db2%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95%e9%85%8d%e7%bd%ae.html" rel="bookmark" class="crp_title">DB2远程登录配置</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/06/bash-shell%e4%b8%ad%e4%bd%bf%e7%94%a8%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e5%88%a4%e6%96%ad.html" rel="bookmark" class="crp_title">shell常见使用技巧</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2016/07/mount%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b9%9f%e5%8f%af%e8%83%bd%e6%9c%89localno%e7%9a%84%e8%bf%9b%e7%a8%8b.html" rel="bookmark" class="crp_title">mount数据库也可能有LOCAL=NO的进程</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/%e5%88%a9%e7%94%a8oradebug%e9%87%8a%e6%94%be%e8%a2%ab%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6%e7%a9%ba%e9%97%b4.html" rel="bookmark" class="crp_title">利用oradebug释放被删除文件空间</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/07/bash-shell-%e4%b8%ad%e7%9a%84%e6%af%94%e8%be%83.html" rel="bookmark" class="crp_title">bash shell 中的比较</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/07/%e9%80%9a%e8%bf%87awr%e6%8c%87%e6%a0%87%e8%af%84%e4%bc%b0%e4%bc%9a%e8%af%9d%e5%bb%ba%e7%ab%8b%e6%98%af%e5%90%a6%e9%a2%91%e7%b9%81.html" rel="bookmark" class="crp_title">通过awr指标评估会话建立是否频繁</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/12/%e6%81%a2%e5%a4%8d%e8%a2%abrm%e6%84%8f%e5%a4%96%e5%88%a0%e9%99%a4%e6%95%b0%e6%8d%ae%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">恢复被rm意外删除数据文件</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2015/06/%e5%9c%a8linux%e4%b8%8a%e5%ae%89%e8%a3%85postgresql-9-4%e5%b9%b6%e5%90%af%e5%8a%a8%e5%92%8c%e5%85%b3%e9%97%ad%e6%95%b0%e6%8d%ae%e5%ba%93.html" rel="bookmark" class="crp_title">在linux上安装PostgreSQL 9.4并启动和关闭数据库</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/01/shell%e4%b8%ad%e6%89%a7%e8%a1%8csql%e8%af%ad%e5%8f%a5%e6%88%96%e8%80%85sql%e8%84%9a%e6%9c%ac%e6%96%87%e4%bb%b6.html" rel="bookmark" class="crp_title">shell中执行sql语句或者sql脚本文件</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></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/02/%e9%80%9a%e8%bf%87netstatrmsock%e6%9f%a5%e6%89%beaix%e7%ab%af%e5%8f%a3%e5%af%b9%e5%ba%94%e8%bf%9b%e7%a8%8b.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>nmon使用说明</title>
		<link>https://www.xifenfei.com/2012/02/nmon%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.html</link>
		<comments>https://www.xifenfei.com/2012/02/nmon%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.html#comments</comments>
		<pubDate>Sat, 11 Feb 2012 08:04:17 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=2494</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/02/nmon%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.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/02/nmon%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.html" target="_blank">nmon使用说明</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>Nmon 工具是 IBM 提供的免费的监控 AIX 系统与 Linux 系统资源的工具。该工具可实时监控系统性能，也可以将服务器的系统资源耗用情况收集起来并输出一个特定的文件,并可利用 excel 分析工具进行数据的统计分析,非常利用 UNIX 或者 Linux 系统的性能数据分析。<br />
<br />
<strong>1.下载地址</strong><br />
<a href="http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmon" target="_blank">nmon官网</a><br />
<a href="http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmonanalyser" target="_blank">NMON_Analyser官网</a><br />
<a href='//www.xifenfei.com/wp-content/uploads/2012/02/nmon4aix12e.zip'>本地下载nmon</a><br />
<a href='//www.xifenfei.com/wp-content/uploads/2012/02/nmon_analyser.zip'>本地下载nmon_analyser</a><br />
<br />
<strong>2.安装nmon</strong><br />
在压缩包中找到相应的版本，上传至服务器，然后授予执行权限<br />
<br />
<strong>3.主要操作说明</strong></p>
<pre class="brush: bash; title: ; notranslate">
+-HELP---------most-keys-toggle-on/off------------------------------------------+
|h = Help information     q = Quit nmon             0 = reset peak counts       |
|+ = double refresh time  - = half refresh          r = ResourcesCPU/HW/MHz/AIX |
|c = CPU by processor     C=upto 128 CPUs           p = LPAR Stats (if LPAR)    |
|l = CPU avg longer term  k = Kernel Internal       # = PhysicalCPU if SPLPAR   |
|m = Memory &amp; Paging      M = Multiple Page Sizes   P = Paging Space            |
|d = DiskI/O Graphs       D = DiskIO +Service times o = Disks %Busy Map         |
|a = Disk Adapter         e = ESS vpath stats       V = Volume Group stats      |
|^ = FC Adapter (fcstat)  O = VIOS SEA (entstat)    v = Verbose=OK/Warn/Danger  |
|n = Network stats        N=NFS stats (NN for v4)   j = JFS Usage stats         |
|A = Async I/O Servers    w = see AIX wait procs   &quot;=&quot;= Net/Disk KB&lt;--&gt;MB       |
|b = black&amp;white mode     g = User-Defined-Disk-Groups (see cmdline -g)         |
|t = Top-Process ---&gt;     1=basic 2=CPU-Use 3=CPU(default) 4=Size 5=Disk-I/O    |
|u = Top+cmd arguments    U = Top+WLM Classes       . = only busy disks &amp; procs |
|W = WLM Section          S = WLM SubClasses)                                   |
</pre>
<p><strong>4.实时监控结果</strong><br />
1)监控内存使用情况</p>
<pre class="brush: bash; title: ; notranslate">
| Memory -----------------------------------------------------------------------|
|          Physical  PageSpace |        pages/sec  In     Out | FileSystemCache |
|% Used       93.8%     34.3%  | to Paging Space   0.0    0.0 | (numperm) 44.3% |
|% Free        6.2%     65.7%  | to File System    0.0  257.9 | Process   18.2% |
|MB Used    1786.0MB   175.8MB | Page Scans        0.0        | System    31.4% |
|MB Free     118.0MB   336.2MB | Page Cycles       0.0        | Free       6.2% |
|Total(MB)  1904.0MB   512.0MB | Page Steals       0.0        |           ------|
|                              | Page Faults     279.9        | Total    100.0% |
|------------------------------------------------------------ | numclient 44.3% |
|Min/Maxperm     361MB( 19%)  1443MB( 76%) &lt;--% of RAM        | maxclient 75.8% |
|Min/Maxfree     960   1088       Total Virtual    2.4GB      | User      58.4% |
|Min/Maxpgahead    2      8    Accessed Virtual    0.9GB 40.1%| Pinned    28.6% |
|-------------------------------------------------------------------------------|
</pre>
<p>2）监控cpu使用情况</p>
<pre class="brush: bash; title: ; notranslate">
|                           0----------25-----------50----------75----------100 
|CPU User%  Sys% Wait% Idle%|           |            |           |            | 
|  0   0.0   0.0   0.0 100.0|&gt;                                                | 
|  1   0.0   0.0   0.0 100.0|&gt;          |                                       
|  2   0.0   0.0   0.0 100.0|&gt;                                                |
|  3   0.0   0.0   0.0 100.0|&gt;                                                |
|Physical Averages          +-----------|------------|-----------|------------+
|All   0.2   2.5   0.7  96.6|&gt;                                                |
|                           +-----------|------------|-----------|------------+
</pre>
<p>3）监控进程状态</p>
<pre class="brush: bash; title: ; notranslate">
| Top-Processes-(147) -----Mode=3  [1=Basic 2=CPU 3=Perf 4=Size 5=I/O 6=Cmds]-----------------------------|
|  PID       %CPU     Size      Res     Res      Res     Char    RAM      Paging         Command          |
|            Used       KB      Set     Text     Data     I/O     Use   io   other repage                 |
| 1908868     0.8    30508    29764      132    29632        2    2%      0      3      0 secldapclntd    |
| 2306196     0.7      512      512        0      512        0    0%      1      8      0 trclogio        |
| 2732116     0.6     2520        0        0        0        0    0%      0     33      0 &lt;defunct Zombie&gt;|
|  340036     0.2     1416      296       72      224        0    0%      0      0      0 dtgreet         |
</pre>
<p><strong>5.监控一段时间性能</strong></p>
<pre class="brush: bash; title: ; notranslate">-f            spreadsheet output format [note: default -s300 -c288]
optional
 -s &lt;seconds&gt;  between refreshing the screen [default 2]
 -c &lt;number&gt;   of refreshes [default millions]
 -t            spreadsheet includes top processes
具体信息nmon -h
</pre>
<p>例如：nmon -f -t -s 30 -c 120<br />
-s 30:每30秒进行一次数据采集<br />
-c 120:一共采集120次<br />
<br />
<strong>6.分析数据</strong><br />
打开nmon analyser，设置宏的安全级别是低 ，之后点击 Analyser NMON data 按钮 输入文件 保存成excel格式即可。<br />
<a href="//www.xifenfei.com/wp-content/uploads/2012/02/nmon.jpg"><img src="//www.xifenfei.com/wp-content/uploads/2012/02/nmon.jpg" alt="" title="nmon分析图" width="1111" height="618" class="aligncenter size-full wp-image-2497" /></a></p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/topas%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html" rel="bookmark" class="crp_title">topas命令详解</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/07/%e9%80%9a%e8%bf%87awr%e6%8c%87%e6%a0%87%e8%af%84%e4%bc%b0%e4%bc%9a%e8%af%9d%e5%bb%ba%e7%ab%8b%e6%98%af%e5%90%a6%e9%a2%91%e7%b9%81.html" rel="bookmark" class="crp_title">通过awr指标评估会话建立是否频繁</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2013/01/aix%e4%bd%bf%e7%94%a8%e5%a4%aa%e5%a4%9a%e5%86%85%e5%ad%98%e5%af%bc%e8%87%b4shared-pool-%e7%9b%b8%e5%85%b3latch%e5%bc%82%e5%b8%b8.html" rel="bookmark" class="crp_title">aix使用太多内存导致shared pool 相关latch异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/03/timesten-cs%e6%a8%a1%e5%bc%8f%e9%85%8d%e7%bd%ae.html" rel="bookmark" class="crp_title">TimesTen c/s模式配置</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/01/aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%9f%a5%e7%9c%8bcpumemoryswapnetworkdisk%e4%bf%a1%e6%81%af.html" rel="bookmark" class="crp_title">AIX常用命令之查看cpu/memory/swap/network/disk信息</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/06/%e5%9b%a0%e6%9c%aa%e9%85%8d%e7%bd%aehugepage%e4%bc%9a%e8%af%9d%e6%95%b0%e6%b7%bb%e5%a2%9e%e6%82%b2%e5%89%a7%e6%a1%88%e4%be%8b.html" rel="bookmark" class="crp_title">因未配置Hugepage会话数添增悲剧案例</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/06/vmstat%e5%91%bd%e4%bb%a4%e5%90%ab%e4%b9%89.html" rel="bookmark" class="crp_title">vmstat命令含义</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2025/11/mysql-drop-database-recovery.html" rel="bookmark" class="crp_title">mysql drop database 恢复思路</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/09/%e5%ae%89%e8%a3%85oracle-db-tmp%e7%a9%ba%e9%97%b4%e4%b8%8d%e8%b6%b3%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95.html" rel="bookmark" class="crp_title">安装ORACLE db /tmp空间不足解决办法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/11/file-system-corruption-oracle-recovery.html" rel="bookmark" class="crp_title">文件系统损坏导致数据文件异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/05/avaddon-db-recovery.html" rel="bookmark" class="crp_title">Avaddon勒索病毒数据库恢复</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/02/nmon%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>查看Aix进程占用内存大小</title>
		<link>https://www.xifenfei.com/2012/02/%e6%9f%a5%e7%9c%8baix%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.html</link>
		<comments>https://www.xifenfei.com/2012/02/%e6%9f%a5%e7%9c%8baix%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.html#comments</comments>
		<pubDate>Sun, 05 Feb 2012 05:09:31 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=2477</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/02/%e6%9f%a5%e7%9c%8baix%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.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/02/%e6%9f%a5%e7%9c%8baix%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.html" target="_blank">查看Aix进程占用内存大小</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p>内存从大到小排序</p>
<pre class="brush: bash; title: ; notranslate">
-bash-3.00$ ps aux | head -1 ; ps aux | sort -rn +3 | head -10
USER         PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
root     1908868  0.1  2.0 30508 29724      - A      Dec 21 235:34 /usr/sbin/secld
zhldang  2728188  0.0  0.0 1208 1288 pts/15 A    11:20:20  0:00 -bash 
zhldang  1421376  0.0  0.0 2036 1056      - A    11:20:15  0:00 sshd: zhldang@p
zerbo625 2482224  0.0  0.0 1164 1244 pts/24 A    11:04:35  0:00 -bash 
zerbo625 1523730  0.0  0.0 1796 1036      - A    11:04:29  0:00 sshd: zerbo625@
yxq198sm 2429092  0.0  0.0  152  156      - A    12:24:48  0:00 sleep 30 
yxq198sm 1327254  0.0  0.0 1600 1872      - A      Feb 01  0:06 /usr/bin/bsh /u
yanmotia 1274070  0.0  0.0 1164  768 pts/22 A      Dec 23  0:00 -bash 
xinximai 2658402  0.0  0.0 1156  760 pts/83 A      Dec 28  0:00 -bash 
xifengke 2330668  0.0  0.0 1160  756 pts/80 A      Dec 05  0:00 -bash </pre>
<p>内存从大到小排序(详细执行命令)</p>
<pre class="brush: bash; title: ; notranslate">
-bash-3.00$ ps -ealf | head -1 ; ps -ealf | sort -rn +9 | head  -10
       F S      UID     PID    PPID   C PRI NI ADDR    SZ    WCHAN    STIME    TTY  TIME CMD
  240001 A     root  188582       1   0  60 20 2823c400 36708        *   Jan 03      - 676:39 /usr/sbin/secldapclntd 
  240001 A     root 1908868       1   0  60 22 6648400 30508        *   Dec 21      - 235:40 /usr/sbin/secldapclntd 
  240001 A     root  331840   86176   0  60 20 205f8400  4088            Sep 15      - 11:04 /usr/lpp/X11/bin/X -D /usr/lib/X11//rgb -T -force :0 -auth /var/dt/A:0-0xukaa 
  240001 A     root 2216054  233648   0  60 20 142a400  3992 f100060002c9e8c8 11:19:59      -  0:00 sshd: zhldang [priv] 
  240001 A     root 1515620  233648   0  60 20 2075f400  3992 f100060003bb0cc8 12:21:48      -  0:00 sshd: undeadbird [priv] 
  240001 A     root 2719848  233648   0  60 20 916a400  3988 f100060002b068c8 13:07:55      -  0:00 sshd: wangyh0313 [priv] 
  240001 A     root 2003106  233648   0  60 20 3428400  3876 f1000600038f94c8 11:02:58      -  0:00 sshd: intrepid [priv] 
  240001 A     root 2560234  233648   0  60 20 44a8400  3816 f1000600018264c8 11:01:54      -  0:00 sshd: xifenfei [priv] 
  240001 A     root 2846944  233648   0  60 20 22c7b400  3784 f100060003b050c8 11:04:12      -  0:00 sshd: zerbo625 [priv] 
  200001 A undeadbi 2220232 1007670   0  60 20 2355f400  3104 f100060001c2c878 13:03:08  pts/9  0:00 /usr/bin/smitty 
</pre>
<p>查找某个进程使用内存</p>
<pre class="brush: bash; title: ; notranslate">
-bash-3.00$ ps aux | head -1 ; ps aux | grep xifenfei
USER         PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
xifenfei 2494532  0.0  0.0 1836 1044      - A    11:02:05  0:00 sshd: xifenfei@
xifenfei 2666546  0.0  0.0 1148 1228 pts/20 A    11:02:10  0:00 -bash 
root     2560234  0.0  0.0 3816 3024      - A    11:01:54  0:00 sshd: xifenfei 
xifenfei 2220230  0.0  0.0  912  940 pts/20 A    13:03:06  0:00 ps aux 
xifenfei 1310908  0.0  0.0  228  240 pts/20 A    13:03:06  0:00 grep xifenfei </pre>
<p>查找某个进程使用内存(详细执行命令)
<pre class="brush: bash; title: ; notranslate">
-bash-3.00$ ps -ealf | head -1 ;ps -ealf|grep xifenfei
       F S      UID     PID    PPID   C PRI NI ADDR    SZ    WCHAN    STIME    TTY  TIME CMD
   40001 A xifenfei 2494532 2560234   0  60 20 37575400  1836          11:02:05      -  0:00 sshd: xifenfei@pts/20 
  200001 A xifenfei 2510946 2666546   1  60 20 14045400   960          12:57:25 pts/20  0:00 ps -ealf 
  200001 A xifenfei 2543730 2666546   0  60 20 10cc6400   228 f100010017976ca0 12:57:25 pts/20  0:00 grep xifenfei 
  240001 A     root 2560234  233648   0  60 20 44a8400  3816 f1000600018264c8 11:01:54      -  0:00 sshd: xifenfei [priv] </pre>
<div id="crp_related"><ul><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/2024/07/openssh-install-config.html" rel="bookmark" class="crp_title">配置win环境ssh和sftp并实现免密登录</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/01/osw-oswprvtnet.html" rel="bookmark" class="crp_title">osw配置私网监控(oswprvtnet)</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/2010/09/shell%e7%bc%96%e7%a8%8b%e2%80%94%e2%80%94%e5%9f%ba%e6%9c%ac%e8%af%ad%e6%b3%95.html" rel="bookmark" class="crp_title">shell编程——基本语法</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/2021/01/bash-binrm-argument-list-too-long.html" rel="bookmark" class="crp_title">-bash: /bin/rm: Argument list too long</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/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/2015/05/init-cssd-startcheck-hp-service-guard%e6%9c%aa%e5%90%af%e5%8a%a8%e5%af%bc%e8%87%b4crs%e6%97%a0%e6%b3%95%e6%ad%a3%e5%b8%b8%e5%90%af%e5%8a%a8.html" rel="bookmark" class="crp_title">init.cssd startcheck&#8212;HP Service Guard未启动导致CRS无法正常启动</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/10/11-2-0-4-gi%e5%ae%89%e8%a3%85tfa.html" rel="bookmark" class="crp_title">11.2.0.4 GI单独安装tfa</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/07/linux-mining-virus.html" rel="bookmark" class="crp_title">记录一种挖矿病毒现象</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/02/%e6%9f%a5%e7%9c%8baix%e8%bf%9b%e7%a8%8b%e5%8d%a0%e7%94%a8%e5%86%85%e5%ad%98%e5%a4%a7%e5%b0%8f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIX常用命令之查看cpu/memory/swap/network/disk信息</title>
		<link>https://www.xifenfei.com/2012/01/aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%9f%a5%e7%9c%8bcpumemoryswapnetworkdisk%e4%bf%a1%e6%81%af.html</link>
		<comments>https://www.xifenfei.com/2012/01/aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%9f%a5%e7%9c%8bcpumemoryswapnetworkdisk%e4%bf%a1%e6%81%af.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 12:15:27 +0000</pubDate>
		<dc:creator><![CDATA[惜分飞]]></dc:creator>
				<category><![CDATA[AIX]]></category>

		<guid isPermaLink="false">https://www.xifenfei.com/?p=2364</guid>
		<description><![CDATA[联系：手机/微信(+86 17813235971) QQ(107644445)  &#8230; <a href="https://www.xifenfei.com/2012/01/aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%9f%a5%e7%9c%8bcpumemoryswapnetworkdisk%e4%bf%a1%e6%81%af.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/01/aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%9f%a5%e7%9c%8bcpumemoryswapnetworkdisk%e4%bf%a1%e6%81%af.html" target="_blank">AIX常用命令之查看cpu/memory/swap/network/disk信息</a></p>
<p>作者：<a href="https://www.xifenfei.com" target="_blank">惜分飞</a>©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]</p>
</div>
<p><strong>一.查看CPU</strong></p>
<pre class="brush: bash; title: ; notranslate">
--物理cpu数
1.prtconf
Processor Type: PowerPC_POWER5
Number Of Processors: 2
Processor Clock Speed: 2097 MHz
CPU Type: 64-bit

2.lsdev
-bash-3.00$ lsdev -Cc processor
proc0 Available 00-00 Processor
proc2 Available 00-02 Processor

--逻辑cpu数
3.bindprocessor
-bash-3.00$ bindprocessor -q
The available processors are:  0 1 2 3

4.vmstat
-bash-3.00$ vmstat

System configuration: lcpu=4 mem=1904MB

kthr    memory              page              faults        cpu    
----- ----------- ------------------------ ------------ -----------
 r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa
 1  1 386273 51470   0   0   0   0    1   0 120 5221 937  1  2 97  1

5.smtctl
因为无权限执行，没有测试
</pre>
<p><strong>二.查看内存</strong></p>
<pre class="brush: bash; title: ; notranslate">
1.lsattr
-bash-3.00$  lsdev -Cc memory
L2cache0 Available  L2 Cache
mem0     Available  Memory
-bash-3.00$  lsattr -El L2cache0
size 1920 Size of L2 cache in Kbytes False
-bash-3.00$  lsattr -El mem0    
goodsize 1904 Amount of usable physical memory in Mbytes False
size     1904 Total amount of physical memory in Mbytes  False

2.prtconf
-bash-3.00$ prtconf|grep Memory|grep -v +
Memory Size: 1904 MB
Good Memory Size: 1904 MB

3.vmstat
-bash-3.00$ vmstat

System configuration: lcpu=4 mem=1904MB

kthr    memory              page              faults        cpu    
----- ----------- ------------------------ ------------ -----------
 r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa
 1  1 387550 50188   0   0   0   0    1   0 120 5221 937  1  2 97  1

4.topas
 MEMORY
Real,MB    1904
% Comp     76
% Noncomp  13
% Client   13</pre>
<p><strong>三.查看交互分区</strong></p>
<pre class="brush: bash; title: ; notranslate">
1.lsps
-bash-3.00$ lsps -a 
Page Space      Physical Volume   Volume Group    Size %Used Active  Auto  Type
hd6             hdisk0            rootvg         512MB    38   yes   yes    lv

2.lsps
-bash-3.00$  lsps -s
Total Paging Space   Percent Used
      512MB              38%

3.prtconf
Paging Space Information
        Total Paging Space: 512MB
        Percent Used: 38%

4.topas
PAGING SPACE
Size,MB     512
% Used     38
% Free     62</pre>
<p><strong>四.查看网络配置</strong></p>
<pre class="brush: bash; title: ; notranslate">--网络硬件信息
1.lsdev
-bash-3.00$ lsdev -Cc adapter|grep ent
ent0      Available 0D-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1      Available 0D-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

2.lscfg
-bash-3.00$ lscfg -vl ent0
  ent0             U788C.001.AAA8364-P1-T1  2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)

      2-Port 10/100/1000 Base-TX PCI-X Adapter:
        Network Address.............001125C5CDA4
        ROM Level.(alterable).......DV0210
        Hardware Location Code......U788C.001.AAA8364-P1-T1

--网络配置信息
3.ifconfig
-bash-3.00$ ifconfig -a
en0: flags=5e080863,c0&lt;UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD(ACTIVE),PSEG,LARGESEND,CHAIN&gt;
        inet 192.168.1.18 netmask 0xffffff00 broadcast 192.168.1.255
         tcp_sendspace 131072 tcp_recvspace 65536
lo0: flags=e08084b&lt;UP,BROADCAST,LOOPBACK,RUNNING,SIMPLEX,MULTICAST,GROUPRT,64BIT&gt;
        inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
        inet6 ::1/0
         tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1

4.netstat
-bash-3.00$ netstat -in|grep en
en0   1500  link#2      0.11.25.c5.cd.a4  1071676281     0 688122516     4     0
en0   1500  192.168.1   192.168.1.18      1071676281     0 688122516     4     0

5.lsattr
-bash-3.00$ lsattr -El en0
alias4                      IPv4 Alias including Subnet Mask           True
alias6                      IPv6 Alias including Prefix Length         True
arp           on            Address Resolution Protocol (ARP)          True
authority                   Authorized Users                           True
broadcast                   Broadcast Address                          True
mtu           1500          Maximum IP Packet Size for This Device     True
netaddr       192.168.1.18  Internet Address                           True
netaddr6                    IPv6 Internet Address                      True
netmask       255.255.255.0 Subnet Mask                                True
prefixlen                   Prefix Length for IPv6 Internet Address    True
remmtu        576           Maximum IP Packet Size for REMOTE Networks True
rfc1323                     Enable/Disable TCP RFC 1323 Window Scaling True
security      none          Security Level                             True
state         up            Current Interface Status                   True
tcp_mssdflt                 Set TCP Maximum Segment Size               True
tcp_nodelay                 Enable/Disable TCP_NODELAY Option          True
tcp_recvspace               Set Socket Buffer Space for Receiving      True
tcp_sendspace               Set Socket Buffer Space for Sending        True

--配置网络
ifconfig en0 192.168.0.5 netmask 255.255.255.0 up
chdev -l en1 -a netaddr='192.168.1.1' -a netmask='255.255.255.0'
</pre>
<p><strong>五.查看硬盘</strong></p>
<pre class="brush: bash; title: ; notranslate">
--硬盘使用情况
1.df
-bash-3.00$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hd4              5.2G   77M  5.1G   2% /
/dev/hd2              5.5G  1.6G  4.0G  28% /usr
/dev/hd9var           640M  640M     0 100% /var
/dev/hd3              128M   48M   81M  38% /tmp
/dev/fwdump           128M  348K  128M   1% /var/adm/ras/platform
/dev/hd1              640M  580M   61M  91% /home0
/proc                    -     -     0   -  /proc
/dev/hd10opt          2.3G  496M  1.8G  22% /opt
192.168.2.5:/store/home
                      2.3T  576G  1.7T  26% /home
--物理硬盘
2.lspv
-bash-3.00$ lspv
hdisk0          000b45c0688a5c5d                    rootvg          active
hdisk1          00c97ac06a9cef35                    None            

-bash-3.00$ lspv hdisk0
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     rootvg
PV IDENTIFIER:      000b45c0688a5c5d VG IDENTIFIER     000b45c00000d7000000011b688a6044
PV STATE:           active                                     
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            128 megabyte(s)          LOGICAL VOLUMES:  11
TOTAL PPs:          546 (69888 megabytes)    VG DESCRIPTORS:   2
FREE PPs:           417 (53376 megabytes)    HOT SPARE:        no
USED PPs:           129 (16512 megabytes)    MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION:  109..90..00..109..109                      
USED DISTRIBUTION:  01..19..109..00..00  

3.lsdev
-bash-3.00$ lsdev -Cc disk
hdisk0 Available 0G-08-01-8,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 0G-08-01-5,0 16 Bit LVD SCSI Disk Drive

4.lsattr
-bash-3.00$ lsattr -El hdisk0
PCM             PCM/friend/scsiscsd                         Path Control Module           False
algorithm       fail_over                                   Algorithm                     True
dist_err_pcnt   0                                           Distributed Error Percentage  True
dist_tw_width   50                                          Distributed Error Sample Time True
hcheck_interval 0                                           Health Check Interval         True
hcheck_mode     nonactive                                   Health Check Mode             True
max_transfer    0x40000                                     Maximum TRANSFER Size         True
pvid            000b45c0688a5c5d0000000000000000            Physical volume identifier    False
queue_depth     3                                           Queue DEPTH                   False
reserve_policy  single_path                                 Reserve Policy                True
size_in_mb      73400                                       Size in Megabytes             False
unique_id       2B08004F478B0FHUS153073VL380008IBM   H0scsi Unique device identifier      False

5.lscfg
-bash-3.00$ lscfg -vpl hdisk0
  hdisk0           U788C.001.AAA8364-P1-T11-L8-L0  16 Bit LVD SCSI Disk Drive (73400 MB)

        Manufacturer................IBM   H0
        Machine Type and Model......HUS153073VL3800 
        FRU Number..................03N5282     
        ROS Level and ID............53343130
        Serial Number...............004F478B
        EC Level....................H17923Y   
        Part Number.................03N5281     
        Device Specific.(Z0)........000004129F00013A
        Device Specific.(Z1)........VBPSS410    
        Device Specific.(Z2)........0068
        Device Specific.(Z3)........08076
        Device Specific.(Z4)........0001
        Device Specific.(Z5)........22
        Device Specific.(Z6)........H17923Y   
        Brand.......................H0


  PLATFORM SPECIFIC

  Name:  sd
    Node:  sd
    Device Type:  block                      

--逻辑卷
6.lsvg
-bash-3.00$ lsvg
rootvg
-bash-3.00$ lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     4       4       1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       41      41      1    open/syncd    /
hd2                 jfs2       44      44      1    open/syncd    /usr
hd9var              jfs2       5       5       1    open/syncd    /var
hd3                 jfs2       1       1       1    open/syncd    /tmp
hd1                 jfs2       5       5       1    open/syncd    /home0
hd10opt             jfs2       18      18      1    open/syncd    /opt
fwdump              jfs2       1       1       1    open/syncd    /var/adm/ras/platform
lg_dumplv           sysdump    8       8       1    open/syncd    N/A

7.lslv
-bash-3.00$ lslv  hd5
LOGICAL VOLUME:     hd5                    VOLUME GROUP:   rootvg
LV IDENTIFIER:      000b45c00000d7000000011b688a6044.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               boot                   WRITE VERIFY:   off
MAX LPs:            512                    PP SIZE:        128 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                1                      PPs:            1
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    no
INTRA-POLICY:       edge                   UPPER BOUND:    32
MOUNT POINT:        N/A                    LABEL:          primary_bootlv
MIRROR WRITE CONSISTENCY: on/ACTIVE                              
EACH LP COPY ON A SEPARATE PV ?: yes                                    
Serialize IO ?:     NO                    

8.prtconf
Volume Groups Information
============================================================================== 
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            546         417         109..90..00..109..109
============================================================================== 

9.topas
Disk    Busy%     KBPS     TPS KB-Read KB-Writ 
hdisk0   21.0     3.2K   20.0     0.0     3.2K
hdisk1    0.0     0.0     0.0     0.0     0.0 
cd0       0.0     0.0     0.0     0.0     0.0</pre>
<p><strong>六.说明</strong><br />
1.cpu/memory/swap/network/disk的主要信息都可以通过topas和parconf查看<br />
2.这些命令还和shell的类型有很多关系，这里是bash</p>
<div id="crp_related"><ul><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2014/12/hosts%e6%97%a0%e6%95%88%e5%86%85%e5%ae%b9%e6%9c%aa%e6%b3%a8%e9%87%8a%e5%af%bc%e8%87%b4rac%e5%ae%89%e8%a3%85oui%e7%9a%84network-interface-usage%e6%8a%a5ins-41112.html" rel="bookmark" class="crp_title">hosts无效内容未注释导致RAC安装OUI的Network Interface Usage报INS-41112</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2010/09/shell%e7%bc%96%e7%a8%8b%e2%80%94%e2%80%94%e5%9f%ba%e6%9c%ac%e8%af%ad%e6%b3%95.html" rel="bookmark" class="crp_title">shell编程——基本语法</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/02/nmon%e4%bd%bf%e7%94%a8%e8%af%b4%e6%98%8e.html" rel="bookmark" class="crp_title">nmon使用说明</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2012/01/topas%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3.html" rel="bookmark" class="crp_title">topas命令详解</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/06/vmstat%e5%91%bd%e4%bb%a4%e5%90%ab%e4%b9%89.html" rel="bookmark" class="crp_title">vmstat命令含义</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/05/pg-pg_control-lost-recovery.html" rel="bookmark" class="crp_title">PostgreSQL恢复系列:pg_control异常恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2026/04/private-direct-connection-haip-donot-up.html" rel="bookmark" class="crp_title">aix环境rac 私网直连导致haip启动异常</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2011/04/oracle-%e8%b7%9f%e8%b8%aa%e4%bc%9a%e8%af%9d.html" rel="bookmark" class="crp_title">oracle 跟踪会话</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2024/09/linux-8-modify-network-name.html" rel="bookmark" class="crp_title">Linux 8 修改网卡名称</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2021/03/dul-12-2-release-version.html" rel="bookmark" class="crp_title">oracle dul 12.2正式版发布</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2022/05/pg-wal-lost-recovery.html" rel="bookmark" class="crp_title">PostgreSQL恢复系列:wal日志丢失恢复</a></li><li style="list-style-type:decimal;font-size:11px;" ><a href="https://www.xifenfei.com/2018/02/oracle-abbreviations.html" rel="bookmark" class="crp_title">Oracle中的主要字母缩写含义</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>https://www.xifenfei.com/2012/01/aix%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4%e4%b9%8b%e6%9f%a5%e7%9c%8bcpumemoryswapnetworkdisk%e4%bf%a1%e6%81%af.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
