DB2如何彻底删除实例?

[root@db2 instance]# ./db2idrop db2inst1
DBI1070I Program db2idrop completed successfully.
首先DROP了这个实例

然后/home里面还有这个db2inst1文件夹,无法删除
导致无法重新创建DB2INST1

Q请问如何将HOME目录中DB2INST1删除呢?

参与10

2同行回答

匿名用户匿名用户
db2inst1是操作系统创建这个用户ID时创建的目录,如果你想删除这个目录先把这个ID删除。显示全部

db2inst1是操作系统创建这个用户ID时创建的目录,如果你想删除这个目录先把这个ID删除。

收起
IT其它 · 2019-04-17
浏览2716
  • 您好,用户已经删除,文件夹也删除了。然后我重新建立了db2inst用户,然后[root@db2 instance]# ./db2icrt -p -50000 -u db2fenc1 db2inst1,创建实例。报错。 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 您知道怎么回事吗,谢谢啦
    2019-04-17
  • The user ID db2fenc1 is invalid ,没有看到这个信息?这个ID无效,系统没有这个ID
    2019-05-21
wangqlwangql  系统工程师 , NULL
db2idrop可以成功的话,直接删了那个目录就行有时候实例受损,db2idrop无法执行成功,删除方法如下:1- db2greg -delinstrec instancename=<instancename>2- Remove manually the directory sqllib from the instance directory3- Recreate the instance...显示全部

db2idrop可以成功的话,直接删了那个目录就行

有时候实例受损,db2idrop无法执行成功,删除方法如下:
1- db2greg -delinstrec instancename=<instancename>
2- Remove manually the directory sqllib from the instance directory
3- Recreate the instance

收起
IT咨询服务 · 2019-04-17
浏览2431

提问者

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

相关问题

问题状态

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