SQL0902C A system error (reason code = "") occurred.
Subsequent SQL statements cannot be processed. SQLSTATE=58005
[db2inst1@poohbah db2inst1]$
Red Hat Linux 7.1 上的内核参数错误:
[db2inst1@mikado db2inst1]$ db2start
01-03-2002 11:19:14 1 0 SQL1063N DB2START processing was successful.
01-03-2002 11:19:16 0 0 SQL1063N DB2START processing was successful.
SQL1063N DB2START processing was successful.
[db2inst1@mikado db2inst1]$ db2 connect to sample
SQL1084C Shared memory segments cannot be allocated. SQLSTATE=57019
[db2inst1@mikado db2inst1]$
诊断:
未正确设置 Linux 内核参数。
解决方案:要修正该问题,可按照 第 3 步所描述的那样更改内核参数。
可以通过更新 /etc/sysctl.conf 文件,使这个更改在重新引导时自动操作。
如下验证操作是否成功:
[db2inst1@poohbah db2inst1]$ db2 connect to sample
Database Connection Information
Database server = DB2/LINUX 7.2.0
SQL authorization ID = DB2INST1
Local database alias = SAMPLE
消息:SQL30081N 或 SQL1013N 症状:
在 Linux 和 Windows 2000 上,您会获得下列错误:
C:\\>db2 connect to sample
C:\\>db2 connect to sample
SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API being used: "SOCKETS".
Location where the error was detected: "".
Communication function detecting the error: "connect".
Protocol specific error code(s): "10060", "*", "*".
SQLSTATE=08001
C:\\>db2 connect to grommit
SQL1013N The database alias name or database name "GROMMIT" could not be found.
SQLSTATE=42705
诊断:
您正在设法连接的数据库不存在。
解决方案:对于这两条消息,使用下列命令来列出实例中所有数据库的名称:
db2 attach to yourinstancenamehere
db2 list database directory
连接到存在的数据库,或者如下创建一个新的数据库:
db2 create database sample
确保您连接到正确的实例。如果您有任何疑问,输入下列命令来查看所有实例名:
db2ilist
结束语
我希望本文已经引起了您对 MPP 数据库的兴趣。它是一个令人兴奋的数据库计算领域,Linux 环境让每个人都可以非常容易地访问它。
如果您有多台 Linux 机器并且想要构建一个群集,请参阅 Infiniband opens the throttle,它描述了 Infiniband 互连技术的使用,但是您可以先从以太网上运行群集开始。
我对您的反馈意见非常感兴趣,并希望不久再写一篇有关 MPP 数据库处理的一些关键问题的文章。






