我的编程空间,编程开发者的网络收藏夹
学习永远不晚

DBI1131E The user ID ERROR: i

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

DBI1131E  The user ID ERROR: i

今天在生产机上做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.


各位请注意这句话,我一开始开到一堆东西晕得,差点漏掉,导致我在尝试做db2idrop也是报错,回头来仔细看才发现有这么一句话! 划重点。

然后就照着执行了!

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 wait


这一步等了大概有20分钟。。。。


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


貌似有什么成功了?


回过头进入实例,执行db2ilist, 哎! 这次那对乱七八糟的东西不见了。


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


那我们再执行一次安装。鉴于前面安装了一半,这里需要加上-f level强制其在同版本中覆盖安装。

(这里有个要注意的地方,如果你没有export tmp的路径,可能你当前的tmp目录会有权限不够的情况,建议先提前创建一个tmp,并export到指定的临时目录)

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.


然后然后然后就成功了!!!

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

DBI1131E The user ID ERROR: i

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

ORA-27613: Smart I/O failed due to an I/O error on the cell “string”. disk: “strin

文档解释ORA-27613: Smart I/O failed due to an I/O error on the cell string. disk: string, block: string, disk offset:
ORA-27613: Smart I/O failed due to an I/O error on the cell “string”. disk: “strin
2023-11-05

ORA-19239: XPTY0019 – It is a type error if the result of an step (other than the last step) i

文档解释ORA-19239: XPTY0019 - It is a type error if the result of an step (other than the last step) in a path expression
ORA-19239: XPTY0019 – It is a type error if the result of an step (other than the last step) i
2023-11-04

ORA-27609: Smart I/O failed due to a network error to the cell “string”. error code R

文档解释ORA-27609: Smart I/O failed due to a network error to the cell string. error code string, stringCause: The
ORA-27609: Smart I/O failed due to a network error to the cell “string”. error code R
2023-11-05

ORA-27619: Smart I/O failed because of an internal error when determining the time zone file version

文档解释ORA-27619: Smart I/O failed because of an internal error when determining the time zone file version. Error code
ORA-27619: Smart I/O failed because of an internal error when determining the time zone file version
2023-11-05

ORA-27614: Smart I/O failed due to an error “string, string” from the cell “string

文档解释ORA-27614: Smart I/O failed due to an error string, string from the cell string. disk: string, block:
ORA-27614: Smart I/O failed due to an error “string, string” from the cell “string
2023-11-05

编程热搜

目录