免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5736 | 回复: 11
打印 上一主题 下一主题

求助:DB2 在linux下安装问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-10 11:27 |只看该作者 |倒序浏览
Red Hat Enterprise Linux AS release 4 (Nahant Update 2)  + DB2 V8。2 or V9。0

安装DB2后,不能创建实例.使用./db2icrt -s ese -u db2fenc  db2inst1创建时,发生如下错误。
[root@ltidvsvr002 instance]# ./db2icrt -u db2fenc1 db2inst1

2006-12-08-13.46.29.681482+480 I1G1264            LEVEL: Event
PID     : 21192                TID  : 3086907072  PROC : db2bp
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, RAS/PD component, pdLogInternal, probe:120
START   : New Diagnostic Log file
DATA #1 : Build Level, 128 bytes
Instance "db2inst1" uses "32" bits and DB2 code release "SQL09011"
with level identifier "01020107".
Informational tokens are "DB2 v9.1.0.1", "s061104", "MI00170", Fix Pack "1".
DATA #2 : System Info, 436 bytes
System: Linux ltidvsvr002 6 2 i686
CPU: total:4 online:4 Cores per socket:1 Threading degree per core:2
Physical Memory(MB): total:2027 free:87
Virtual  Memory(MB): total:5024 free:3017
Swap     Memory(MB): total:2997 free:2930
Kernel   Params: msgMaxMessageSize:8192 msgMsgMap:16384 msgMaxQueueIDs:1024
                 msgNumberOfHeaders:16384 msgMaxQueueSize:16384
                 msgMaxSegmentSize:16 shmMax:33554432 shmMin:1 shmIDs:4096
                 shmSegments:4096 semMap:256000 semIDs:1024 semNum:256000
                 semUndo:256000 semNumPerID:250 semOps:32 semUndoSize:20
                 semMaxVal:32767 semAdjustOnExit:32767
Information in this record is only valid at the time when this file was
created (see this record's time stamp)

2006-12-08-13.46.29.681089+480 I1266G337          LEVEL: Severe
PID     : 21192                TID  : 3086907072  PROC : db2bp
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, base sys utilities, sqleInitApplicationEnvironment, probe:32
DATA #1 : Hexdump, 4 bytes
0xBFE8B7CC : 60E8 FFFF                                  `...

2006-12-08-13.46.29.683721+480 I1604G319          LEVEL: Severe
PID     : 21192                TID  : 3086907072  PROC : db2bp
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, command line process, clp_bp_main, probe:2
DATA #1 : Hexdump, 4 bytes
0xBFE8B824 : 60E8 FFFF                                  `...

2006-12-08-13.47.28.168163+480 I1924G337          LEVEL: Severe
PID     : 21197                TID  : 3086915264  PROC : db2fm
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, base sys utilities, sqleInitApplicationEnvironment, probe:32
DATA #1 : Hexdump, 4 bytes
0xBFE7BC24 : 60E8 FFFF                                  `...

2006-12-08-13.47.28.207946+480 I2262G338          LEVEL: Severe
PID     : 21199                TID  : 3086911168  PROC : db2fmd
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, base sys utilities, sqleInitApplicationEnvironment, probe:32
DATA #1 : Hexdump, 4 bytes
0xBFE2F1E0 : 60E8 FFFF                                  `...

2006-12-08-13.47.28.214390+480 I2601G337          LEVEL: Severe
PID     : 21201                TID  : 3086915264  PROC : db2fm
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, base sys utilities, sqleInitApplicationEnvironment, probe:32
DATA #1 : Hexdump, 4 bytes
0xBFE83E14 : 60E8 FFFF                                  `...

2006-12-08-13.47.29.773298+480 I2939G375          LEVEL: Error
PID     : 21190                TID  : 3086911168  PROC : db2
INSTANCE: db2inst1             NODE : 000
FUNCTION: DB2 UDB, command line process, clp_start_bp, probe:3
MESSAGE : CLP frontend unable to get REQUEST queue handle
DATA #1 : Hexdump, 4 bytes
0xBFFFF25C : 4200 0F87                                  B...
DBI1281E The database manager configuration file could not be
          initialized.

Explanation:

An error occurred when attempting to initialize the database
manager configuration file. A DB2 instance could not be created
or migrated.

User Response:

Refer to the log file for problem determination. Resolve the
problem and try the command again. If the problem persists,
please contact IBM Support.


DBI1079I Output is saved in the log file /tmp/db2icrt.log.20290.

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.


乍样处理,现在急用。以前安装时没有发生过错误码的
有谁知道,乍样处理,谢谢。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-12-11 09:41 |只看该作者
db2nodes.cfg有问题吧?
如果启用了DPF的话,还要检查.rhosts 或 host.equiv 文件。

论坛徽章:
11
数据库技术版块每日发帖之星
日期:2016-06-25 06:20:00数据库技术版块每日发帖之星
日期:2016-06-24 06:20:00数据库技术版块每日发帖之星
日期:2016-05-03 06:20:00数据库技术版块每日发帖之星
日期:2016-04-21 06:20:00数据库技术版块每日发帖之星
日期:2016-01-23 06:20:00数据库技术版块每日发帖之星
日期:2015-12-03 06:20:00综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-19 06:20:00数据库技术版块每日发帖之星
日期:2015-08-20 06:20:002015年辞旧岁徽章
日期:2015-03-03 16:54:15数据库技术版块每日发帖之星
日期:2016-07-30 06:20:00
3 [报告]
发表于 2006-12-11 10:19 |只看该作者
实例都没建成功,应该与db2nodes.cfg没关系!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2006-12-11 10:56 |只看该作者
原帖由 大梦 于 2006-12-11 10:19 发表
实例都没建成功,应该与db2nodes.cfg没关系!


有道理。正常情况下db2icrt成功后才会有db2nodes.cfg。


楼主说一下./db2icrt -u db2fenc1 db2inst1后报错是什么?

论坛徽章:
0
5 [报告]
发表于 2006-12-11 11:36 |只看该作者
检查你的patch是否都打全,如果有漏打得patch,即使装上了db2程序,db2icrt和create das的时候都会有问题

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
6 [报告]
发表于 2006-12-11 12:35 |只看该作者
同意楼上

如何解决在 Solaris 上创建 DB2 实例时遇到的 DBI1281E 错误?
Document #: 1807545D20000

Body:

[标题] 如何解决在 Solaris 上创建 DB2 实例时遇到的 DBI1281E 错误?


环境:

产品:DB2 UDB
平台:Solaris
版本:v8

问题描述:


当用户在版本 8 的 Solaris 上进行 8 版本 DB2 的安装时,如果安装过程中选择了创建实例的操作,当安装结束后,检查安装日志,有时会发现如下信息:

---------------------------------------------------------------------------
:
Command to be run: "/opt/IBM/db2/V8.1/instance/db2icrt -a SERVER -s ese -u db2fenc1 -w 32 -p db2c_db2inst1 db2inst1".
ERROR:An error occurred while creating the instance "db2inst1". The return code
is "1". Create the instance manually using the command 'db2icrt'.

ERRORBI1281E The database manager configuration file could not be
initialized.

Explanation:

An error occurred when attempting to initialize the database
manager configuration file. A DB2 instance could not be created
or migrated.

User Response:

Refer to the log file for problem determination. Resolve the
problem and try the command again. If the problem persists,
please contact IBM Support.

DBI1079I Output is saved in the log file /tmp/db2icrt.log.1864.
---------------------------------------------------------------------------

查询 db2icrt.log.1864 中的错误信息,可以看到类似如下信息:

Program name = db2idbm
Instance home dir = /home/db2inst1, Sysadm group = db2grp1
Instance type = 4, Auth type = SERVER
Update DBM cfg SYSADM_GROUP errcode = 139
DBI1281E The database manager configuration file could not be
initialized.

此时如果尝试手动创建实例,即以 root 用户在 /opt/IBM/db2/V8.1 下使用 db2icrt 命令创建实例时,同样会遇到上述报错。


解答:

查阅 8 版本 DB2 的“ 快速入门手册” 中关于 Solais 平台上的安装描述可以看到,在 Solaris 版本 8 上安装 DB2 时,要求操作系统起码要同时安装有补丁 108434- 03 和 108528- 12。如果在安装了其它操作系统的补丁之后,DB2的某些相关操作,如创建实例,遇到上述 “DBI1282E,errcode=139”的错误时,则可以尝试安装 Solaris 操作系统的补丁 108827-35 以解决问题。

对于上述我们遇到的客户创建实例时的问题,在安装了操作系统补丁 108827-35 之后就解决了。

论坛徽章:
5
荣誉会员
日期:2011-11-23 16:44:17CU大牛徽章
日期:2013-09-18 15:15:15CU大牛徽章
日期:2013-09-18 15:15:45未羊
日期:2014-02-25 14:37:19射手座
日期:2014-12-26 22:55:37
7 [报告]
发表于 2006-12-11 14:29 |只看该作者
db2 v9目前有补丁么?
/tmp/db2icrt.log.20290.的详细内容。
不过RHAS4的补丁倒是应该考虑打全了再说。

论坛徽章:
0
8 [报告]
发表于 2006-12-11 15:12 |只看该作者
是否要修改操作系统的内核参数

论坛徽章:
0
9 [报告]
发表于 2006-12-12 15:51 |只看该作者
可能需要修改内核参数。shmMax:33554432 不够。
For SHMMAX, the minimum required on x86 systems would be 268435456 (256 MB) and for 64-bit systems, it would be 1073741824 (1 GB).

论坛徽章:
0
10 [报告]
发表于 2006-12-12 15:57 |只看该作者
msgMaxSegmentSize:16 msgMaxQueueSize:16384

MSGMAX should be change to 64 KB (that is, 65535 bytes), and MSGMNB should be increased to 65535 on Server systems.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP