AIX6.1上打10G PATCH時報有Java程式在執行的錯誤解決

djb1008發表於2012-07-05

一.問題描述

在AIX6.1(6100-01-06-0939)上升級ORACLE資料庫(版本從10.2.0.4升級到10.2.0.5)時,報有一個程式(JAVA)正在在ORACLE_HOME下執行,安裝無法進行下去.
錯誤的資訊如下:
INFO: Oracle Universal Installer has detected that there are processes running in the currently selected Oracle Home.
The following processes need to be shutdown before continuing:
java

ps -ef|grep java,檢視作業系統的java程式,發現只有Oracle patch安裝程式使用了java,OUI安裝程式做了錯誤的檢測。

[@more@]

二.問題分析

在metalink上搜尋,發現這個一個BUG,是AIX 6.1(小版本小於ML4)與ORACLE 10g patch的一個bug.具體的metalink doc_id=980602.1
文章內容大致如下:

Applies to:
Oracle Universal Installer - Version:10.2.0.2.0 to 11.1.0.7 - Release: 10.2 to 11.1
IBM AIX on POWER Systems (64-bit)

Symptoms
Installing patchset on AIX 6.1 TL04 fails with:

INFO: Oracle Universal Installer has detected that there are processes running in the currently selected Oracle Home. The following processes need to be shutdown before continuing:
java

The java process running is the Installer itselt.

This problem has been reproduced installing10.2.0.4 and 11.1.0.7 patchset, but it could affect to other patchsets.

Cause
This seems a IBM issue at the fuser coming with AIX 6.1 ML4 SP1.

Two Oracle bugs were created to investigate this issue:

Bug.9227281- OUI10.2.0.4 DETECTS JAVA PROCESS RUNNING ON ORACLE_HOME AIX 610
Unpublished Bug.9228329 - 11.1.0.7 OUI FAILS TO DETECT RUNNING PROCESSES CORRECTLY ON AIX 6.1 ML 4 SP1

Solution
IBM has released AIX patch to solve the issue:
IZ67400: FUSER GIVES INCORRECT PIDS WITH -X OPTION

Registration is required to review patch IZ67400 on IBM web site.

Also, next workaround could be used:

As root:
1) rename fuser
mv /usr/sbin/fuser /usr/sbin/fuser_renamed
2) touch /usr/sbin/fuser
3) chmod +x /usr/sbin/fuser

As oracle software owner:
1) Try to install the patchset (fuser can now return nothing, hence the Installer should continue)

After successful install, as root:
1) rename fuser back to its original name
mv /usr/sbin/fuser_renamed /usr/sbin/fuser

三. 問題解決
按照metalink的980602.1文章中的解決辦法,進行了處理,步驟如下:
#mv /usr/sbin/fuser /usr/sbin_fuser_renamed
#touch /usr/sbin/fuser
#chmod +x /usr/sbin/fuser
再次執行oracle patch的runinstaller ,可以正常執行了.

不過不要忘記,在oracle patch安裝完成後,需要恢復fuser檔案
#mv /usr/sbin/fuser_renamed /usr/sbin/fuser

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

相關文章