首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | HR | 镜像
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
搜索中心 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>linux数据库>其他>正文

Linux下DB2的安装问题:SQL1220N

http://www.oklinux.cn  2008-06-19  linuxidc   会员收藏  游客收藏  【 】 
您查看的文章来源于http://www.oklinux.cn

环境:Linux REDHAT5
DB2 FOR Linux 32bit

由于该版本无法改变安装目录,默认安装在/opt下,所以事先要分配足够的空间给/目录,或者专门为/opt分配空间。

安装过程无任何异常,但是安装完毕后,执行db2start出错:

1.06/18/2008 17:25:00 0 0 SQL1220N The database manager shared memory set cannot be allocated

2.查找帮助db2 ? SQL1220N。发现可能是共享内存设置少了。有以下建议。
On Linux 32-bit, increase the kernel parameter shmmax to 256 MB. On Linux 64-bit, increase the kernel parameter shmmax to 1GB.

用ipcs -l命令看了一下系统配置
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 3939665
max total shared memory (kbytes) = 4G
min seg size (bytes) = 1
系统有4G的最大共享内存。

vi /etc/sysctl.conf 查看结果
kernel.core_uses_pid = 1
kernel.shmmax=4034217728
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024

db2licm -l 查看,db2序列号为永久的,不过期。

这个修改了之后还是无法启动

网上搜索。IBM网站有这么一篇文章。提到了这个问题的处理方法。

Problem

This technote provides troubleshooting methods for when you attempt to start an instance (db2start) and encounter the following error: SQL1220N The database manager shared memory set cannot be allocated.

Cause

One possibility is that during the creation of the instance the file sqllib/.ftok was not created.

Problem Details
After the creation of a new instance the db2start command can fail with the following message:

06/02/2005 11:45:48 0 0 SQL1220N The database manager shared memory set cannot be allocated.
SQL1032N No start database manager command was issued. SQLSTATE=57019

DB2 was unable to allocate its shared memory set.

Solution

A quick work-around is to use the executable db2ftok (found in sqllib/bin) to create a new seed file sqllib/.ftok. The .ftok file is generated based on the current time and other information. When starting the instance, DB2 reads the .ftok file and creates a standard interprocess communication key (IPC key) which is later supplied to other subroutines for memory allocation.

After the .ftok file has been created, issue the db2start command again.

Please note that in order to determine the reason why the .ftok file was absent in your particular environment, contact DB2 UDB Support and submit a problem record.

按照其说明,执行db2ftok,再db2start,Ok。

问题回顾:问题解决之后,回过头来分析,可能是/opt空间属性有问题,导致安装过程中不能产生.ftok文件,因为安装完成后,执行db2start,提示无权执行,后来修改了目录属主为db2inst1就可以执行了,然后就出现了上面的错误。 (作者:dongyufeng)


上一篇:Linux下安装MySQL常见问题处理   下一篇:红帽:RHEL4和5的技术服务期限延长至4年

收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·Linux下安装MySQL常见问题处理
·Oracle控制文件多元化处理
·Ubuntu上试用sql developer
·MySQL数据库8小时失效问题的官方解释及处理
·解决MySQL从库延迟问题的几种方法
·Linux中安装Oracle乱码问题的解决
·怎样提高MySQL装载数据的效率讲解
·MySQL存储过程学习小结
·Ubuntu 8.04 上安装Oracle 11G的方法
·解决Oracle XDB与Tomcat等的8080端口的冲突
·Linux下卸载MySQL rpm包出现error: specifies multipl
·找不到mysql.sock的解决方案
·Linux下Oracle数据库,dbstart持续不动,数据库无法启
·vb连接MySQL遇到的问题解决方法
·Windows下的换行回车与Linux的回车
·关于oralce9iR2 for Linux的dbstart设置与dbshut脚本
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·Oracle 10g for solaris准备工作和实例
·Oracle主键的设置
·Oracle查询表、视图、序列等信息查询
·Oracle笔记之简单查询、限定查询和排序
·Oracle物理结构概述
·Oracle中nul()函数
·Oracle数据库归档模式的切换
·Oracle 10g 编程艺术
·在RadHat 5上安装Oracle 10g
·Oracle和MySQL对比
·采用Oracle的dbms_obfuscation_toolkit
·Oracle中的Raw类型解释
  阅读排行
·MySQL中文乱码解决方案集锦
·Oracle面试题及答案整理
·Linux下安装Oracle数据库完整笔记
·MySQL导入导出.sql文件步骤
·Oracle10g RAC for Linux配置全过程
·Oracle建表过程初学
·Linux平台下配置MySQL主从复制
·Linux系统下启动MySQL的命令及相关知识
·Oracle 建立临时表语法及使用技巧
·Oracle数据库里查看表空间使用状况
·Linux下Oracle sqlplus中文显示乱码的
·Linux下安装Oracle客户端
·MySQL服务器上添加一个允许远程访问的
·手工配置Oracle 10G Enterprise Manage
·Linux平台下启动oracle 11g EM控制台
网摘收藏: