Chinaunix首页 | 论坛 | 博客
  • 博客访问: 282450
  • 博文数量: 29
  • 博客积分: 2200
  • 博客等级: 大尉
  • 技术积分: 305
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-29 00:05
文章分类

全部博文(29)

文章存档

2018年(1)

2014年(2)

2012年(4)

2011年(5)

2009年(5)

2008年(1)

2007年(3)

2006年(8)

我的朋友

分类:

2008-12-18 13:48:07

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实用工具兼容性问题,可以参考以下:
 
 
在此记录一下这个问题,可以让遇到同样问题的朋友参考,也可以给自己留个底 
阅读(2676) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~