Aix 7一次補丁安裝失敗問題處理

gycixput發表於2019-07-15

安裝失敗後,檢視日誌提示以下錯誤:

Stopping CRS...

Stopped CRS successfully

 

patch /oracle/soft/28813878/28729234  apply successful for home  /oracle/app/11.2.0.4/grid

patch /oracle/soft/28813878/28729262  apply failed  for home  /oracle/app/11.2.0.4/grid

 

Starting CRS...

Installing Trace File Analyzer

CRS-4123: Oracle High Availability Services has been started.

 

opatch auto succeeded.

分析安裝日誌,提示   PRE 安裝失敗,詳細日誌如下所示:

  +829   You must apply the patch with the install user

  +830   Command invocation returned Error... '', Return Code = 1

  +831   Execution of PRE script failed, with return value = 1

  +832 

  +833   Do you want to proceed? [y|n]

  +834   N (auto-answered by -silent)

  +835   User Responded with: N

  +836   ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'

  +837 

  +838   Restoring "/oracle/app/11.2.0.4/grid" to the state prior to running NApply...

  +839   Checking if OPatch needs to invoke 'make' to restore some binaries...

  +840   OPatch was able to restore your system. Look at log file and timestamp of each file to make sure your system is i

n the state prior to applying the patch.

……

[May 30, 2019 8:54:44 AM] [SEVERE]  OUI-67073:UtilSession failed: ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'

[May 30, 2019 8:54:44 AM] [INFO]    --------------------------------------------------------------------------------

[May 30, 2019 8:54:44 AM] [INFO]    The following warnings have occurred during OPatch execution:

[May 30, 2019 8:54:44 AM] [INFO]    1) OUI-67133:Execution of PRE script failed, with return value = 1

[May 30, 2019 8:54:44 AM] [INFO]    2) OUI-67124:ApplySession failed in system modification phase... 'Execution of PRE script failed, with return value = 1'

[May 30, 2019 8:54:44 AM] [INFO]    3) OUI-67124:

                                    NApply restored the home. Please check your ORACLE_HOME to make sure:

                                      - files are restored properly.

                                      - binaries are re-linked correctly.

                                    (use restore.[sh,bat] and make.txt (Unix only) as a reference. They are located under

                                    "/oracle/app/11.2.0.4/grid/.patch_storage/NApply/2019-05-30_08-48-06AM"

 

根據錯誤提示,顯示該內容需要軟體安裝使用者進行,猜測應該涉及使用者相關問題,透過查詢MOS資訊獲取到該問題在2018年10月GI PSU上,由於報錯相關資訊跟MOS是否吻合,同時使用root使用者驗證$USER資訊和MOS一致,採取MOS提供解決方式嘗試重新安裝,安裝成功。

[oracle@icdb1:/]#su grid -c "echo $USER"

root

根據MOS提示在安裝補丁之前配置使用者環境變數

       # export USER=<GRID/DATABASE_SOFTWARE_OWNER>

# echo $USER

# <GRID_HOME>/OPatch/opatch auto <UNZIPPED_PATCH_LOCATION>/28813878

 

在安裝grid和Oracle補丁時需使用不同的USER進行安裝,否則容易引起補丁安裝失敗。該問題已在AIX 71和AIX 72上出現。

MOS 參考文件:

opatch auto Fails to Apply DBPSU With Error OUI-67133:Execution of PRE script failed and OUI-67124:ApplySession failed in system modification phase ( 文件 ID 2468874.1)


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24585765/viewspace-2650574/,如需轉載,請註明出處,否則將追究法律責任。

相關文章