DB2安装成功后,创建实例
----------------------------------------------------------------
[root@test instance]# ./db2icrt -u db2fenc1 db2inst1
tail: cannot open `+2' for reading: No such file or directory
lcount = 0
DBI1069E Unexpected error. Function = chk_fsystype, Return code =
22.
Explanation:
An unexpected error occurred during the execution of this
program.
User Response:
If the problem persists, contact IBM Support with the following
information:
o Message number
o Function name
o Return code
o Problem description
DBI1079I Output is saved in the log file /tmp/db2icrt.log.30249.
Explanation:
All processed and failed operations have been saved into this log
file.
User Response:
Do not modify this file in any way. This file is for IBM
Technical Support reference.
----------------------------------------------------------------
以上显示无法创建实例,好你是tail的问题。经查是POSIX兼容的问题,解决方法:
----------------------------------------------------------------
[root@test instance]# export _POSIX2_VERSION=199209
[root@test instance]# ./db2icrt -u db2fenc1 db2inst1
DBI1070I Program db2icrt completed successfully.
----------------------------------------------------------------
创建成功。
主要是由于系统使用的是新版本的POSIX,导致执行tail +2命令时,不是像老版本的POSIX下,tail +2命令显示的是从文件第2行显结尾,而是把‘+2’当成一个文件,所以显示无法找到‘+2’文件。通常我们只要按照上面的方法,在终端改变一下POSIX版本号就可以了。
关于linux gnu实用工具兼容性问题,可以参考以下:
在此记录一下这个问题,可以让遇到同样问题的朋友参考,也可以给自己留个底
阅读(2773) | 评论(0) | 转发(0) |