免费注册 查看新帖 |

Chinaunix

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

在RH EL 4 上尝试新建数据库失败 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-30 15:59 |只看该作者 |倒序浏览
在RH EL 4 上尝试新建数据库失败

刚在Linux上安装了DB2 Express C
创建数据库不成功
1. 在命令行下创建
su - db2inst1
db2start
db2 create db test
然后我就一直处于等待状态,没有任何错误消息返回,等了半个多小时吧,放弃了

2. 然后尝试用Control Center
按着向导创建,最后点finish, 然后一个齿轮的对话框,也是一直等了一个多消失,然后放弃

下图是30分钟的解图,随后我还等了半个多小时


请问这种情况会是什么原因呢?
请高手指教

论坛徽章:
0
2 [报告]
发表于 2010-03-30 17:26 |只看该作者
把日志发出来吧

论坛徽章:
0
3 [报告]
发表于 2010-03-31 09:59 |只看该作者
日志是这样的
(/home/db2inst1/sqllib/db2dump/db2diag.log)
2010-03-30-20.48.18.097872-300 I1G1420 LEVEL: Event
PID : 5387 TID : 3079662496 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000
APPHDL : 0-7 APPID: *LOCAL.db2inst1.100331014817
AUTHID : DB2INST1
EDUID : 17 EDUNAME: db2agent (instance)
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 "SQL09052"
with level identifier "03030107".
Informational tokens are "DB2 v9.5.0.2", "s080811", "MI00238", Fix Pack "2".
DATA #2 : System Info, 436 bytes
System: Linux localhost.localdomain 6 2 i686
CPU: total:1 online:1 Cores per socket:1 Threading degree per core:1
Physical Memory(MB): total:504 free:59
Virtual Memory(MB): total:1528 free:1083
Swap Memory(MB): total:1024 free:1024
Kernel Params: msgMaxMessageSize:65535 msgMsgMap:65536 msgMaxQueueIDs:1024
msgNumberOfHeaders:65536 msgMaxQueueSize:65536
msgMaxSegmentSize:16 shmMax:268435456 shmMin:1 shmIDs:4096
shmSegments:4096 semMap:32000 semIDs:1024 semNum:32000
semUndo:32000 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)

2010-03-30-20.48.18.097728-300 I1422G475 LEVEL: Event
PID : 5387 TID : 3079662496 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000
APPHDL : 0-7 APPID: *LOCAL.db2inst1.100331014817
AUTHID : DB2INST1
EDUID : 17 EDUNAME: db2agent (instance)
FUNCTION: DB2 UDB, config/install, sqlfLogUpdateCfgParam, probe:20
CHANGE : CFG DB TEST : "Database_memory" From: "20" <computed> To: "22896" <computed>

2010-03-30-20.48.21.829254-300 I1898G441 LEVEL: Warning
PID : 5385 TID : 3054496672 PROC : db2wdog
INSTANCE: db2inst1 NODE : 000
EDUID : 2 EDUNAME: db2wdog
FUNCTION: DB2 UDB, routine_infrastructure, sqlerKillAllFmps, probe:5
MESSAGE : Bringing down all db2fmp processes as part of db2stop
DATA #1 : Hexdump, 4 bytes
0xB60FC57C : 0000 0000 ....

论坛徽章:
0
4 [报告]
发表于 2010-03-31 10:00 |只看该作者
Here it is, please help , thanks
db2inst1@localhost etc$ db2set -all
[i] DB2PROCESSORS=0
[i] DB2COMM=tcpip
[g] DB2SYSTEM=localhost.localdomain
[g] DB2INSTDEF=db2inst1
[g] DB2ADMINSERVER=dasusr1

vi /etc/hosts

   1. Do not remove the following line, or various programs
   2. that require network functionality will fail.

   127.0.0.1 localhost.localdomain localhost

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2010-03-31 12:00 |只看该作者
/etc/hosts 中加入本地 IP , 你的系统必须有自己的主机名。

论坛徽章:
0
6 [报告]
发表于 2010-03-31 13:07 |只看该作者
因为我在VMWARE虚拟机里装,现在没设ip
请问有127.0.0.1的不行吗?
谢谢

论坛徽章:
0
7 [报告]
发表于 2010-03-31 15:32 |只看该作者
现在在虚拟机里加了网卡,ip 172.16.110.130

所以host文件更新如下:
127.0.0.1 localhost.localdomain localhost
172.16.110.130     RHEL4

reboot 之后尝试创建数据库还是不行阿~

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2010-04-01 10:52 |只看该作者
.bashrc 文件和 .profile 文件改了吗?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
9 [报告]
发表于 2010-04-01 10:57 |只看该作者
另:创建实例以后,首先得启动 db2 ,然后才可以建立数据库。

论坛徽章:
0
10 [报告]
发表于 2010-04-01 12:40 |只看该作者
回复 8# snow888
.bashrc如下,需要怎么该:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# The following three lines have been added by UDB DB2.
if [ -f /home/db2inst1/sqllib/db2profile ]; then
    . /home/db2inst1/sqllib/db2profile
fi

profile是指db2profile吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP