Windows平臺下opatch apply報錯:OUI-67073
近期Oracle被安全部門掃出來不少漏洞,要打相應的補丁。Oracle版本是11.2.0.1,平臺是Windows Server 2008 R2。
首先在MOS上下載了相應patch,解壓,用opatch apply安裝,結果報錯:
[2018-12-7 10:08:35] [INFO] opatch-external.jar is in C:\app\Administrator\product\11.2.0\dbhome_1\OPatch\jlib\opatch-external.jar
[2018-12-7 10:08:35] [INFO] [OPSR-TIME] Loading cooked inventory
[2018-12-7 10:08:35] [INFO] [OPSR-MEMORY] : Loading cooked one offs. Heap memory used 18 (MB)
[2018-12-7 10:08:35] [INFO] [OPSR-MEMORY] : Loaded cooked oneoffs. Heap memory used : 18 (MB)
[2018-12-7 10:08:35] [INFO] [OPSR-TIME] Cooked inventory loaded successfully
[2018-12-7 10:08:35] [INFO] Checking if Oracle Home has components required by patches...
[2018-12-7 10:08:35] [INFO] CheckMissingComps: Cached file does not exist or is invalid, re-build prereq result.
[2018-12-7 10:08:35] [INFO] Checking conflict among patches...
[2018-12-7 10:08:35] [INFO] Running prereq checkConflictAmongPatchesWithDetail
[2018-12-7 10:08:36] [INFO] Following patches can be applied: 10100101
[2018-12-7 10:08:36] [INFO] Following patches are not required:
[2018-12-7 10:08:36] [INFO] Following patches are auto rollbackable:
[2018-12-7 10:08:36] [INFO] Finished checking prereq checkConflictAmongPatchesWithDetail
[2018-12-7 10:08:36] [INFO] Conflict checking amongst patches PASSED
[2018-12-7 10:08:36] [INFO] Checking conflicts against Oracle Home...
[2018-12-7 10:08:36] [INFO] Running prereq checkConflictAgainstOHWithDetail
[2018-12-7 10:08:36] [INFO] Following patches can be applied: 10100101
[2018-12-7 10:08:36] [INFO] Following patches are not required:
[2018-12-7 10:08:36] [INFO] Following patches are auto rollbackable:
[2018-12-7 10:08:36] [INFO] Finished checking prereq checkConflictAgainstOHWithDetail
[2018-12-7 10:08:36] [INFO] Running prerequisite checks...
[2018-12-7 10:08:36] [INFO] Space Needed : 835.45MB
[2018-12-7 10:08:36] [INFO] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 10100101
[2018-12-7 10:08:36] [INFO] Following active files are not used by opatch process :
C:\app\Administrator\product\11.2.0\dbhome_1\bin\oci.dll
Following active files are used by opatch process :
[2018-12-7 10:08:36] [INFO] Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following active files are not used by opatch process :
C:\app\Administrator\product\11.2.0\dbhome_1\bin\oci.dll
Following active files are used by opatch process :
[2018-12-7 10:08:36] [SEVERE] OUI-67073:UtilSession 失敗: Prerequisite check "CheckActiveFilesAndExecutables" failed.
[2018-12-7 10:08:36] [INFO] Finishing UtilSession at Fri Dec 07 10:08:36 CST 2018
[2018-12-7 10:08:36] [INFO] Log file location: C:\app\Administrator\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch2018-12-07_10-08-32上午_1.log
[2018-12-7 10:08:36] [INFO] 堆疊說明: java.lang.RuntimeException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
at oracle.opatch.OPatchSessionHelper.runApplyPrereqs(OPatchSessionHelper.java:6699)
at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:998)
at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:368)
at oracle.opatch.opatchutil.NApply.process(NApply.java:348)
at oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.opatch.UtilSession.process(UtilSession.java:359)
at oracle.opatch.OPatchSession.process(OPatchSession.java:2650)
at oracle.opatch.OPatch.process(OPatch.java:784)
at oracle.opatch.OPatch.main(OPatch.java:834)
Caused by: java.lang.RuntimeException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
... 13 more
Caused by: oracle.opatch.PrereqFailedException: Prerequisite check "CheckActiveFilesAndExecutables" failed.
... 13 more
報CheckActiveFilesAndExecutables,說明有Oracle的相關檔案被鎖定了。但報錯日誌中並沒有列出哪些被鎖定。
檢視相關Oracle服務,都已經關閉了,應該沒有檔案被鎖定才對:
仔細檢視報錯日誌,發現
Following active files are not used by opatch process :
C:\app\Administrator\product\11.2.0\dbhome_1\bin\oci.dll
報oci.dll還處在活動狀態,仔細想了想,雖然日誌中應該是Windows在啟動時根據Oracle的環境變數載入了某些檔案,應該是這些檔案導致opatch失敗。因此採取以下措施:
1.修改Windows環境變數,去掉path中Oracle相關配置
2.將Oracle自動啟動的服務調整為手動
重啟Windows後,重新opatch apply,問題被成功解決。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31544156/viewspace-2284483/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- weblogic報錯: OPatch failed with error code 73WebAIError
- oracle for windows 靜默模式打補丁未指定響應檔案報錯OUI-67073OracleWindows模式UI
- Windows平臺下MySQL常用操作與命令WindowsMySql
- Windows平臺下安裝與配置MySQL9WindowsMySql
- Windows平臺下安裝與配置MySQL5.7WindowsMySql
- windows下使用endless報錯:undefined: syscall.SIGUSR1WindowsUndefined
- MacOs/Liunx主機搭建windows平臺雙機除錯環境MacWindows除錯
- Windows下hadoop環境搭建之NameNode啟動報錯WindowsHadoop
- windows下安裝python3.6.4完成,執行報錯WindowsPython
- $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithOracleAI
- Opatch - Where Can I Find the Latest Version of Opatch?
- Windows 下如何除錯 PowerShellWindows除錯
- 【Nginx】Windows平臺下配置Nginx服務實現負載均衡NginxWindows負載
- Windows 平臺下第三方包安裝錯誤解決Windows
- golang在windows平臺使用zmqGolangWindowsMQ
- Homestead 在 Windows 下軟連結報錯的解決辦法Windows
- MAC平臺 Andriod Studio 同WI-FI下遠端除錯Mac除錯
- VSCode連線伺服器在選擇平臺時報錯VSCode伺服器
- Windows分割槽報錯解決Windows
- 執行緒同步(windows平臺):事件執行緒Windows事件
- 直播平臺搭建,elementui的導航路由遞迴報錯解決UI路由遞迴
- 一文講透Windows平臺下的ASCII,Unicode編碼問題WindowsASCIIUnicode
- Windows下x86和x64平臺的Inline Hook介紹WindowsinlineHook
- windows oracle 11201打補丁報錯WindowsOracle
- 執行緒同步(windows平臺):互斥物件執行緒Windows物件
- 【轉】Windows平臺執行Masscan和NmapWindows
- windows平臺,eclipse安裝maven外掛WindowsEclipseMaven
- Windows平臺RTMP多例項推送探討Windows
- WINDOWS平臺上擴充套件SGA (zt)Windows套件
- Windows搭建SourceTree、Git程式碼管理平臺WindowsGit
- vscode + ziglang + lldb windows下無法除錯VSCodeLLDBWindows除錯
- windows下oracle的ora-27100錯誤WindowsOracle
- 封神臺Oracle注入- 報錯注入Oracle
- Windows 使用 Homsetead 報錯踩坑記錄Windows
- 執行緒同步(windows平臺):訊號量執行緒Windows
- 執行緒同步(windows平臺):臨界區執行緒Windows
- Windows平臺上使用noinstall方式部署MySQL 8.0WindowsMySql
- 微軟Windows Azure雲端計算平臺微軟Windows