ORACLE opatch 打補丁fuser command output for /u01/.../crsctl.bin is Failure
最近,本地測試資料庫oracle 11.2.0.4 for rhel7打補丁的時候失敗了,檢查opatch應用補丁的日誌顯示錯誤提示如下:
CRS-4133: Oracle High Availability Services has been stopped.
Successfully unlock /u01/app/11.2.0/grid
2020-06-26 17:05:46: Invoking removeproc to clean oracle client procs
2020-06-26 17:05:46: Executing cmd: /sbin/fuser -k /u01/app/11.2.0/grid/bin/crsctl.bin
2020-06-26 17:05:46: Command output:
> Failure in execution (rc=-1, 0, No such file or directory) for command /sbin/fuser -k /u01/app/11.2.0/grid/bin/crsctl.bin
>End Command output
2020-06-26 17:05:46: f user command output for /u01/app/11.2.0/grid/bin/crsctl.bin is Failure in execution (rc=-1, 0, No such file or directory) for command /sbin/fuser -k
/u01/app/11.2.0/grid/bin/crsctl.bin
2020-06-26 17:05:46: Oracle user for /u01/app/11.2.0/grid is grid
2020-06-26 17:05:46: Opening file /etc/oracle/ocr.loc
2020-06-26 17:05:46: Value (FALSE) is set for key=local_only
2020-06-26 17:05:46: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch prereq CheckApplicable -ph /tmp/psu/27107360/26925576 -oh /u01/app/11.2.0/grid
2020-06-26 17:05:46: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch prereq CheckApplicable -ph /tmp/psu/27107360/26925576 -oh /u01/app/11.2.0
/grid '
2020-06-26 17:05:47: Removing file /tmp/filewsfQVx
2020-06-26 17:05:47: Successfully removed file: /tmp/filewsfQVx
2020-06-26 17:05:47: /bin/su exited with rc=2
2020-06-26 17:05:47: Error : The opatch Applicable check failed. The patch /tmp/psu/27107360/26925576 is not applicable to /u01/app/11.2.0/grid
2020-06-26 17:05:47: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch prereq CheckApplicable -ph /tmp/psu/27107360/26609929 -oh /u01/app/11.2.0/grid
2020-06-26 17:05:47: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch prereq CheckApplicable -ph /tmp/psu/27107360/26609929 -oh /u01/app/11.2.0
/grid '
2020-06-26 17:05:48: Removing file /tmp/filePKM5qO
2020-06-26 17:05:48: Successfully removed file: /tmp/filePKM5qO
2020-06-26 17:05:48: /bin/su exited with rc=2
2020-06-26 17:05:48: Error : The opatch Applicable check failed. The patch /tmp/psu/27107360/26609929 is not applicable to /u01/app/11.2.0/grid
2020-06-26 17:05:48: Running as user grid: /u01/app/11.2.0/grid/OPatch/opatch prereq CheckApplicable -ph /tmp/psu/27107360/22502505 -oh /u01/app/11.2.0/grid
2020-06-26 17:05:48: s_run_as_user2: Running /bin/su grid -c ' /u01/app/11.2.0/grid/OPatch/opatch prereq CheckApplicable -ph /tmp/psu/27107360/22502505 -oh /u01/app/11.2.0
/grid '
2020-06-26 17:05:49: Removing file /tmp/filecn51l7
2020-06-26 17:05:49: Successfully removed file: /tmp/filecn51l7
2020-06-26 17:05:49: /bin/su exited with rc=2
2020-06-26 17:05:49: Error : The opatch Applicable check failed. The patch /tmp/psu/27107360/22502505 is not applicable to /u01/app/11.2.0/grid
2020-06-26 17:05:49: Status of Applicable check for /u01/app/11.2.0/grid is 0
2020-06-26 17:05:49: Error:Patch Applicable check failed for /u01/app/11.2.0/grid
2020-06-26 17:05:49: Executing cmd: /bin/rpm -q sles-release
2020-06-26 17:05:49: Command output:
> package sles-release is not installed
觀察日誌,提示比較明顯的錯誤資訊是:The opatch Applicable check failed. The patch /tmp/psu/27107360/...... is not applicable to /u01/app/11.2.0/grid。
按照以往的補丁應用經驗,按照如下過程進行異常排查:
1、重新上傳補丁包,排除補丁包不完整的情況
2、賦予補丁集777許可權,grid解壓,排除補丁包宿主許可權問題
3、將補丁集放在單獨的空目錄,grid執行解壓
經過上訴三個步驟,在應用補丁集時還是提示相同的錯誤,仔細觀察補丁集應用日誌,發現如下觀察錯誤提示:
2020-06-26 17:05:46: Command output:
> Failure in execution (rc=-1, 0, No such file or directory) for command /sbin/fuser -k /u01/app/11.2.0/grid/bin/crsctl.bin
>End Command output
2020-06-26 17:05:46: fuser command output for /u01/app/11.2.0/grid/bin/crsctl.bin is Failure in execution (rc=-1, 0, No such file or directory) for command /sbin/fuser -k
/u01/app/11.2.0/grid/bin/crsctl.bin
難道是/sbin/fuser命令不存在,經過排查,發現/sbin/fuser命令真的不在,死馬當活馬醫,執行yum install psmisc,在叢集
兩個節點安裝了psmisc.x86_64 0:22.20-15.el7,再次執行補丁集應用,補丁集應用成功。
# /u01/app/11.2.0/grid/OPatch/opatch auto /u01/soft/27107360 -oh /u01/app/11.2.0/grid
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /u01/soft -patchn 27107360 -oh /u01/app/11.2.0/grid -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto 2020-06-26_18-20-05.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/u01/app/11.2.0/grid/cfgtoollogs/opatchauto 2020-06-26_18-20-05.report.log
2020-06-26 18:20:05: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /u01/soft/27107360/26925576 apply successful for home /u01/app/11.2.0/grid
patch /u01/soft/27107360/26609929 apply successful for home /u01/app/11.2.0/grid
patch /u01/soft/27107360/22502505 apply successful for home /u01/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
ACFS driver install actions failed
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29357786/viewspace-2715012/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【opatch】Oracle打補丁工具opatch簡介Oracle
- 使用OPatch給Oracle打補丁Oracle
- opatch 工具打補丁使用說明
- 安裝oraInventory和使用opatch給Oracle打補丁AIOracle
- zt_使用opatch給oracle打補丁patch_bugOracle
- Oracle的OPatch補丁更新Oracle
- 【opatch打補丁】oracle10.2.0.5.0升級10.2.0.5.9 for linuxOracleLinux
- 如何檢視Oracle補丁 - opatch 的使用Oracle
- 打補丁報錯Opatch error : "Unable to lock Central InventoryError
- oracle打補丁回顧Oracle
- Oracle EBS中打補丁Oracle
- EBS opatch 補丁應用
- Oracle 補丁體系 及 opatch 工具 介紹Oracle
- oracle opatch 工具的使用(oracle小補丁安裝)(轉)Oracle
- GI PSU打補丁之opatch auto 自動方式分別打GI_HOME和ORACLE_HOMEOracle
- ORACLE打補丁的方法和案例Oracle
- ORACLE11G DG打補丁Oracle
- Oracle資料庫打補丁方法Oracle資料庫
- oracle 小補丁能全部打嗎?Oracle
- 在windows上打Oracle的CPU補丁WindowsOracle
- 給Oracle資料庫打補丁(轉)Oracle資料庫
- oracle 9204 補丁應用工具opatch相關小述Oracle
- 關於oracle opatch打補丁是 不能用grid使用者直接mvOPatch folder的問題Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(二)備庫安裝補丁步驟Oracle
- 【UP_ORACLE】如何給Oracle DG打補丁(三)主庫安裝補丁步驟Oracle
- ORACLE 12C opatch fuser與ChecksystemCommandAvailable failedOracleAI
- Oracle RAC 19.3打19.5.1 RU補丁Oracle
- Oracle Goldengate 12c打pus補丁OracleGo
- RAC資料庫中用opatch應用補丁資料庫
- 打Oracle最新CPU patch與打臨時補丁的區別Oracle
- Oracle EBS APP & DB 打補丁過程簡述OracleAPP
- 給oracle打Patch 9352237補丁Oracle
- oracle 補丁Oracle
- Linux檔案打補丁Linux
- SAP打補丁(Tcode:SPAM)
- windows oracle 11201打補丁報錯WindowsOracle
- oracle 19c rac打補丁常見錯誤Oracle
- oracle12c之 單機12.1.0.1打補丁Oracle