DB2删除了实例,重新创建实例报错?

1.drop了实例db2inst1,然后删除了用户db2inst1
2./home里面已经没有了db2inst1的文件夹
3.useradd -g db2iadm1 -u 1001 -m -d /home/db2inst1 db2inst1.重新创造用户db2inst1
4.cd /opt/db2/V9.5/instance

  1. ./db2icrt -p -50000 -u db2fenc1 db2inst1重新创建实例
    6.报错:DBI1131E The user ID db2fenc1 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 is not set up properly.
  • One of the user attributes needed by DB2 is unset.
  • The UID of this user is 0
    7.请问大神如何处理?是不是我没删除干净之前的实例和用户呢
参与16

5同行回答

atpeace331atpeace331数据库管理员银行
报错的解释信息已经很详细了,检查是否存在下列情况:1、This user ID does not exist on the system.2、The home directory of this user is not set up properly.3、One of the user attributes needed by DB2 is unset.4、The UID of this user is 0解决方案:1、id db2fen...显示全部

报错的解释信息已经很详细了,检查是否存在下列情况:
1、This user ID does not exist on the system.
2、The home directory of this user is not set up properly.
3、One of the user attributes needed by DB2 is unset.
4、The UID of this user is 0

解决方案:
1、id db2fenc1
查看防护用户 db2fenc1 是否存在
不存在的话,创建用户 db2fenc1 ,然后再执行实例创建

2、如果用户 db2fenc1存在的话,查看它的家目录及其配置文件的权限、属组属主是否正确

3、查看下列文件确保没有异常

/etc/login.defs 默认配置文件
/etc/passwd 账户属性表 
/etc/shadow 密码
/etc/group 组属性表

4、确认db2fenc1的 UID 是否为 0 ,确保他的UID 不能设置为 0.

收起
银行 · 2019-04-19
仙道彰仙道彰数据库开发工程师花旗集团
./db2icrt 基本语法:./db2icrt -a AuthType -u FencedID InstName -a AuthType : 实例认证类型,一般是服务器型 -u FencedID : 受防护ID,这个ID和应用开发有关,虽然通常用不到但是是必须的;所以,创建实例之前必须先创建两个用户即实例用户(db2inst1)和防护用户(db2fenc1);检...显示全部

./db2icrt 基本语法:
./db2icrt -a AuthType -u FencedID InstName
-a AuthType : 实例认证类型,一般是服务器型
-u FencedID : 受防护ID,这个ID和应用开发有关,虽然通常用不到但是是必须的;
所以,创建实例之前必须先创建两个用户即实例用户(db2inst1)和防护用户(db2fenc1);
检查下你的db2fenc1用户是否建立;

收起
互联网服务 · 2019-04-18
yhl71yhl71数据库架构师某公司
把-p选项先去掉看看。端口号可以在后面通过修改dbm参数实现。显示全部

把-p选项先去掉看看。端口号可以在后面通过修改dbm参数实现。

收起
IT咨询服务 · 2019-04-30
浏览2678
tongshuaitongshuai数据库工程师北京新数科技有限公司
提示得很明显了,你这个受防护用户db2fenc1在系统里创建了没。显示全部

提示得很明显了,你这个受防护用户db2fenc1在系统里创建了没。

收起
互联网服务 · 2019-04-18
浏览2709
curtiscurtis数据库管理员海南航空
./db2icrt -a server -u db2inst1 db2inst1显示全部

./db2icrt -a server -u db2inst1 db2inst1

收起
互联网服务 · 2019-04-18
浏览2857

提问者

dey1218
安全工程师唐山市
擅长领域: 服务器Linuxpython

相关问题

问题状态

  • 发布时间:2019-04-17
  • 关注会员:6 人
  • 问题浏览:4699
  • 最近回答:2019-04-30
  • X社区推广