DBI1131E The user ID ERROR: is invalid.

今天在生產機上作fixpack的升級。

一開始以爲問題應該不大,固然備份也已經作了,沒曾想./installFixPack 命令發出後,漫長等待了執行到step 50,卡了好久(我這是DB2 V11.1),

而後窗口超時。。。。退出了。

無奈從新進入,想着剛纔的./installFixPack也沒執行完,就再執行一次,可這報錯就來了!


root:/db2data/universal # ./installFixPack -b /opt/ibm/db2/V11.1
DBI1131E  The user ID ERROR: is invalid.

Explanation:

An attempt to access the given user ID failed. One of the following
situations has occurred:

*  This user ID does not exist on the system.

*  The home directory of this user does not exist or is not set up
   properly.

*  One of the user attributes needed by the database manager is unset.

*  The UID of this user is 0

User response:

Make sure a valid user ID with valid home directory, shell, primary
group and secondary group has been used. Create a new user if necessary.


   Related information:
   Creating group and user IDs for a DB2 database installation (Linux
   and UNIX)
   DB2 users and groups (Linux and UNIX)
    
    
The user ID ERROR: is invalid. 這是什麼鬼!這究竟啥意思。。。

而後就各類檢查,差點就打算要從新卸載DB2再安裝了,反正有備份,俺們不怕!

忽然在檢查的過程當中,輸了db2ilist,一堆亂七八糟的東西就出來了


db2inst1@myserver:~> db2ilist
ERROR:  The embedded runtime path in /opt/ibm/db2/V11.1/bin/db2 is incorrect:
        /DoNotCreateThisPath_marker1_for_chglibpath:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/INST/lib:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/INST/lib/gskit:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/engn/lib:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/common/lib/Linux_AMD64:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/das/lib/Linux_AMD64:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/engn/lib/bldsupp:/view/db2_v111m4if1_linuxamd64_special_38505_special_38747/vbs/system/fm/lib/Linux_AMD64:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/fillspacexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/marker2_for_chglibpath:/opt/ibm/db2/V11.1/lib64:/opt/ibm/db2/V11.1/lib64/gskit

ACTION: Please run /opt/ibm/db2/V11.1/install/db2chgpath and rerun the previous command.
        Contact IBM Support if the problem persists.
linux


各位請注意這句話,我一開始開到一堆東西暈得,差點漏掉,致使我在嘗試作db2idrop也是報錯,回頭來仔細看才發現有這麼一句話! 劃重點。shell

而後就照着執行了!

root:/opt/ibm/db2/V11.1/instance # /opt/ibm/db2/V11.1/install/db2chgpath
The output will be saved in /db2data/tmp/db2chgpath.log.18982
Starting the update of runtime path ...
Sat Oct 26 23:00:52 AEDT 2019

Changing the embedded runtime path for DB2 deliverables installed
under /opt/ibm/db2/V11.1 from /opt/ibm/db2/V11.1/ to /opt/ibm/db2/V11.1/
---> Please waitide


這一步等了大概有20分鐘。。。。this


  Output was saved in the log file /db2data/tmp/db2chgpath.log.18982
Sat Oct 26 23:10:23 AEDT 2019
Program db2chgpath completed successfully.
spa


貌似有什麼成功了?orm


回過頭進入實例,執行db2ilist, 哎! 此次那對亂七八糟的東西不見了。server


root:/opt/ibm/db2/V11.1/instance #   su - db2inst1
db2inst1@myserver:~> db2ilist
db2inst1
db2inst1@myserver:~> logout

ci


那咱們再執行一次安裝。鑑於前面安裝了一半,這裏須要加上-f level強制其在同版本中覆蓋安裝。
it

(這裏有個要注意的地方,若是你沒有export tmp的路徑,可能你當前的tmp目錄會有權限不夠的狀況,建議先提早建立一個tmp,並export到指定的臨時目錄)
io

myserver:/opt/ibm/db2/V11.1/instance # cd /db2data/universal/

myserver:/db2data/universal # export DB2TMPDIR=/db2data/tmp
myserver:/db2data/universal # ./installFixPack -f level -b /opt/ibm/db2/V11.1
Do you want to choose a different installation directory for the fix pack? [yes/no]

------------------------------------------------------------------------------------
no

DBI1017I  installFixPack is updating the database products installed in
      location /opt/ibm/db2/V11.1.


DB2 installation is being initialized.


而後而後而後就成功了!!!

相關文章
相關標籤/搜索