Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1601974
  • 博文数量: 184
  • 博客积分: 3044
  • 博客等级: 中校
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-25 15:04
文章分类

全部博文(184)

文章存档

2022年(4)

2021年(3)

2020年(1)

2019年(5)

2018年(13)

2017年(6)

2016年(10)

2015年(11)

2014年(11)

2013年(13)

2012年(23)

2011年(25)

2010年(2)

2008年(1)

2007年(5)

2006年(51)

分类:

2006-07-14 23:03:32

Linux下DB2 8.1重装的问题

一、卸载过程:
1)运行 ./db2_deinstall
2)编辑etc下services文件,删除db2相关端口
3)编辑etc下shadow文件,删除db2相关用户实例
4)编辑etc下group文件,删除db2相关用户组,即dasadm1

二、安装:
运行 ./db2setup -r db2wse.rsp
其中db2wse.rsp为响应文件,配置如下:

PROD = WORKGROUP_SERVER_EDITION
* Instance Creation Settings
* --------------------------
INSTANCE = db2inst1
db2inst1.NAME = db2inst1
db2inst1.GROUP_NAME = db2iadm1
db2inst1.HOME_DIRECTORY = /home/db2inst1
db2inst1.PASSWORD = db2inst1
db2inst1.AUTHENTICATION = SERVER

db2inst1.AUTOSTART = YES
db2inst1.SVCENAME = db2cdb2inst1
db2inst1.PORT_NUMBER = 50001

* Fenced User Creation Settings
* -----------------------------
db2inst1.FENCED_USERNAME = db2fenc1
db2inst1.FENCED_GROUP_NAME = db2fadm1
db2inst1.FENCED_HOME_DIRECTORY = /home/db2fenc1
db2inst1.FENCED_PASSWORD = db2fenc1

* Administration Server Creation Settings
* ---------------------------------------
DAS_USERNAME = dasusr1
DAS_GROUP_NAME = dasadm1
DAS_HOME_DIRECTORY = /home/dasusr1
DAS_PASSWORD = dasusr1


三、安装后,系统建立了dasusr1用户和dasadm1用户组。
系统提示文件/tmp/db2setup.log如下:

“DB2 安装程序”日志文件的开始时间:Fri Nov 25 09:51:53 2005 CST
============================================================

操作系统信息:Linux 2.4.21-27.EL.#1 Wed Dec 1 22:08:15 EST 2004 i686
要安装的产品: DB2 通用数据库工作组服务器版
安装类型: 典型
选择的组件:
产品消息 — en_US.iso88591
基本客户机支持
代码页转换表 — Unicode 支持
代码页转换表
ICU 实用程序
Java 帮助(HTML) — en_US.iso88591
复制
SQL 过程
控制中心帮助(HTML) — en_US.iso88591
Java 公共文件
第一步
DB2 实例安装向导
Java 支持
配置助手
运行时环境
通信支持 — TCP/IP
管理服务器
DB2 数据源支持
基本 DB2 UDB 支持
样本数据库源
UDB 工作组服务器版的产品特征符
控制中心
语言:
目标目录: /opt/IBM/db2/V8.1
需要的空间: 342 MB

新实例:
实例名: db2inst1
认证: SERVER
重新引导时启动实例: 是
TCP/IP 配置:
服务名: db2cdb2inst1
端口号: 50001
实例用户信息:
用户名: db2inst1
组名: db2iadm1
主目录: /home/db2inst1
受防护的用户信息:
用户名: db2fenc1
组名: db2fadm1
主目录: /home/db2fenc1

“DB2 管理”服务器:
实例用户信息:
用户名: dasusr1
组名: dasadm1
主目录: /home/dasusr1


正在执行输入验证:.......成功
正在检查许可证协议接受:.......成功
要运行的命令:"/bin/rpm -ivh '/opt/software/db2install/8.1/db2/linux/IBM_db2msen81-8.1.0-0'.i386.rpm"。
Preparing... ##################################################
IBM_db2msen81 ##################################################


要运行的命令:"/bin/rpm -ivh '/opt/software/db2install/8.1/db2/linux/IBM_db2cliv81-8.1.0-0'.i386.rpm"。
Preparing... ##################################################
IBM_db2cliv81 ##################################################


......
(这里省略若干)

要运行的命令:"/bin/rpm -ivh '/opt/software/db2install/8.1/db2/linux/IBM_db2engn81-8.1.0-0'.i386.rpm"。
Preparing... ##################################################
IBM_db2engn81 ##################################################


要运行的命令:"/bin/rpm -ivh '/opt/software/db2install/8.1/db2/linux/IBM_db2smpl81-8.1.0-0'.i386.rpm"。
Preparing... ##################################################
IBM_db2smpl81 ##################################################


要运行的命令:"/bin/rpm -ivh '/opt/software/db2install/8.1/db2/linux/IBM_db2wssg81-8.1.0-0'.i386.rpm"。
Preparing... ##################################################
IBM_db2wssg81 ##################################################


要运行的命令:"/bin/rpm -ivh '/opt/software/db2install/8.1/db2/linux/IBM_db2cc81-8.1.0-0'.i386.rpm"。
Preparing... ##################################################
IBM_db2cc81 ##################################################


正在安装 DB2 文件集:.......成功
正在注册 DB2 许可证:.......成功
正在设置缺省全局概要文件注册表变量:.......成功
错误:******************* START OF DB2DASCFG LOG *********************

2005-11-25-09.53.20.934286 pid:8812 tid:3068848960 level:2
DB2 tools - DB2 administration server - dropDas() probe:20
called ossRemoveInstanceInfo()
return code 0x900001F6 No matching record found
argument #1 (7 bytes)
dasusr1

******************* END OF DB2DASCFG LOG *********************

错误:执行命令 "/opt/IBM/db2/V8.1/instance/dascrt -u dasusr1 -d"
期间出错。“DB2 管理服务器”可能未正常工作。返回值为 "1"。

错误:DBI1103E The Administration Server already exists.

Explanation:

The system detects that the Administration Server has already
been created on your system. You can only create one
Administration Server on each system.

User Response:

If you want to re-create the Administration Server, you have to
drop the Administration Server first before re-creating it.


DBI1079I Output is saved in the log file /tmp/dascrt.log.8824.

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.



错误:创建“DB2 管理服务器”时发生了一个或多个错误。“DB2
管理服务器”可能不能正常工作。请手工创建“DB2
管理服务器”。如果问题仍然存在,请与技术服务代表联系。

正在创建“DB2 管理服务器”:.......故障
错误:未能将当前 DB2INSTANCE 切换为 "db2inst1"。返回码为 "-2029059916"。

正在初始化实例列表:.......成功
正在定制 DB2 实例配置:.......成功
错误:DBI1131E The user ID db2inst1 is invalid.

Explanation:

An attempt to access the given user ID failed. One of the
following situations has occurred:

o This user ID does not exist on the system.

o The home directory of this user is not set up properly.

o One of the user attributes needed by DB2 is unset.

o The UID of this user is 0



User Response:

Make sure a valid user ID with valid home directory, shell,
primary group and secondary group has been used. Create a new
user if necessary.


DBI1079I Output is saved in the log file /tmp/db2iupdt.log.8867.

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.



错误:在 "/home/db2inst1/sqllib/db2systm" 中找不到“数据库管理器”配置文件。

错误:未能将值 "DB2AUTOSTART=YES" 添加至 "db2inst1"
实例的“概要文件注册表”。返回值为 "5094"。

错误:未能将值 "DB2COMM=TCPIP" 添加至 "db2inst1"
实例的“概要文件注册表”。返回值为 "5094"。

错误:尝试为 "db2inst1"
实例设置“数据库管理器配置”参数和“概要文件注册表”变量时出错。返回码为
"5094"。

正在创建 DB2 实例:.......成功
正在注册 DB2 许可证:.......成功
错误:将“DB2 管理服务器”的配置参数 "DASADM_GRP" 更新为 "dasadm1"
时出错。返回值为 "-8050"。

错误:利用指定的管理组来更新“DB2 管理服务器”的配置时出错。请使用 GET ADMIN
CONFIGURATION 命令来确保 DASADM_GRP 设置是正确的。要修改任何“DB2
管理服务器”配置参数的值,使用 UPDATE ADMIN CONFIGURATION 命令。

正在配置“DB2 管理服务器”:.......故障
正在更新全局概要文件注册表:.......成功
阅读(4258) | 评论(1) | 转发(1) |
0

上一篇:KDT

下一篇:今天很闷

给主人留下些什么吧!~~

bruin762014-02-26 11:34:48

同学,你搞DB2够早的啊
我学会卸载DB2,也就比你早一年