安装:
很多人说一定要以root用户,否则不能启动控制中心。我不理解什么意思是sudo su - root,还是直接sudo就可以,反正我两种方法都没有试成功。
那就直接sudo ./db2_setup吧,一步步安装下来。
不要开启Ubuntu的特效,否则无法显示图形界面。
至于打开控制中心,可以这样做:
在一个shell运行xhost+
然后在另一个shell用实例用户登录,再export DISPALY=:0.0,就可以打开db2cc了。
启动的时候需要先以dasusr1用户启动db2admin,db2admin start。
再以db2inst1用户启动db2,db2start。
卸载:
Following are the steps to remove DB2 from Unix/Linux:
1.Remove DB[首先删除数据库]
(1)su - db2inst1
(2)db2 list db directory
(3)db2 drop db <db name>
2.Remove Instance【删除实例】
(1)su - root
(2)cd <db2 dir>/instance
(3)./db2ilist
(4)./db2idrop -f <instance name>
3.Remove das【删除das】
(1)su - root
(2)cd <db2 dir>/instance
(3)./daslist
(4)./dasdrop <das user>
4.Uninstall【卸载】
(1)su - root
(2)cd <db2 dir>/install
(3)./db2_deinstall -a
5.Remove user ( db2inst1,db2fenc1,dasusr1)【删除用户】
userdel -r <username>
please lookinto the file /etc/passwd before and after you deleted users
STEP1 将/etc/pam.d/common-password文件中下面这行:
password success=1 default=ignore pam_unix.so obscure sha512
替换成:
password success=1 default=ignore pam_unix.so obscure md5
STEP2
在SHELL中运行 passwd命令更改密码。
OK!
为什么要这样做,_mihai_一语道破天机:
I am referring to the one the operating system is using to compute the hash for the password.
It is very likely producing a hash that is bigger than what DB2 supports and that is why you are seeing the error.
操作系统对密码采取了不同的HASH算法,很可能HASH后的密码串长度超过了DB2支持的最长密码长度。
所以,_mihai_的建议是:
You are likely using sha512, change it to sha256 or md5, it should work fine.
将sha512的HASH算法改为sha256或者md5算法。
分享到:
相关推荐
主要介绍了ubuntu 安装pyqt5和卸载pyQt5的方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
ubuntu20.04显卡驱动安装,CUDA 安装和卸载,cudnn安装教程
linuxUbuntu系统常用安装和卸载软件命令.pdf
ubuntu16.04.1操作系统下 mysql安装和卸载图文教程说明
Ubuntu DB2的安装步骤: 1.创建群组 2.创建用户 3.设置环境 4.安装
ubuntu系统,安装和卸载软件的命令,安装和卸载软件的命令
linux编译环境构建时常会涉及软件包安装卸载删除,有急需可以下载参考一下。
手把手教你在Ubuntu中安装和卸载qq for linux 图文并貌。
windows和ubuntu双系统下如何卸载ubuntu
5、Ubuntu软件安装与卸载
5、Ubuntu软件安装与卸载.pdf
ubuntu下mysql的安装到卸载.md
该文件是完全卸载ubuntu的方法,该文件在Windows系统下不能识别,在linux下识别,注意。
ubuntu15.04系统怎么使用卸载命令卸载软件?.docx
Ubuntu软件安装与卸载
提供ubuntu 卸载的方法 十分简单卸载干净
上传语音有效期3天,可用微信多媒体接口下载语音到自己的服务器, 但下载的格式是amr 格式,我们网页是mp3的多 所以是要将amr 转为mp3 下面是ubuntu 下安装ffmpeg和php 掉用ffmpeg的方法 sudo apt-get update
Ubuntu下安装及卸载软件知识集锦[收集].pdf
主要介绍了Ubuntu安装和卸载CUDA和CUDNN的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
nodejs安装和卸载 Ubuntu 上安装 上 Node.js ⽅式⼀:直接安装 ⼀、安装 1.$ sudo apt-get install nodejs 2.$ sudo apt-get install npm ⼆、升级 1.升级npm命令如下: $ sudo npm install npm -g /usr/local/bin/...