在Red Hat Enterprise Linux下自动启动DB2 [英] Autostart DB2 under Red Hat Enterprise Linux

查看:60
本文介绍了在Red Hat Enterprise Linux下自动启动DB2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我我做错了什么?


我在Red Hat Enterprise Linux 3(Update 1)上安装了DB2 8.1 + FP5,

使用命令行方法(即db2_install和vi和....)


似乎没有记录的一点是如何设置

系统启动,以便我的实例在启动时自动启动。


/ etc / inittab包含db2fmcd。

该实例具有DB2AUTOSTART = TRUE


知道缺少什么吗?


比尔

Can anyone tell me what I am doing wrong?

I installed DB2 8.1 + FP5 on Red Hat Enterprise Linux 3 (Update 1),
using the command line method (i.e. db2_install and vi and ....)

The one bit that didn''t seem to be documented was how to set the
system up so that my instance would start automatically at boot time.

The /etc/inittab has the db2fmcd included.
The instance has DB2AUTOSTART=TRUE

Any idea what is missing?

Bill

推荐答案

Bill Medland写道:
Bill Medland wrote:
有谁能告诉我我做错了什么?

我在Red Hat Enterprise Linux 3(Update 1)上安装了DB2 8.1 + FP5 ,
使用命令行方法(即db2_install和vi和....)

似乎没有记录的一点是如何设置
系统启动,以便我的实例将自动从b开始oot time。

/ etc / inittab包含db2fmcd。
实例有DB2AUTOSTART = TRUE

知道缺少什么吗?
<比尔
Can anyone tell me what I am doing wrong?

I installed DB2 8.1 + FP5 on Red Hat Enterprise Linux 3 (Update 1),
using the command line method (i.e. db2_install and vi and ....)

The one bit that didn''t seem to be documented was how to set the
system up so that my instance would start automatically at boot time.

The /etc/inittab has the db2fmcd included.
The instance has DB2AUTOSTART=TRUE

Any idea what is missing?

Bill




我确实知道缺少什么:你必须启动实例。这是

我怎么做我的:


在目录/etc/rc.d/init.d我有这样一个文件:


#!/ bin / sh

#chkconfig:35 98 02

#description:启动和停止IBM的db2 dbms。


BASE = / opt / IBM / db2

VERSION = V8.1


INSTANCE = / dataA / db2inst1


#设置路径。

PATH = / sbin:/ bin:/ usr / bin:/ usr / sbin


.. /etc/rc.d/init.d/functions


#检查我们是否有启动和停止程序。

test - x



I do have idea what is missing: you must start the instance(s). Here is
how I do mine:

In directory /etc/rc.d/init.d I have a file like this:

#!/bin/sh
# chkconfig: 35 98 02
# description: Start and Stop IBM''s db2 dbms.

BASE=/opt/IBM/db2
VERSION=V8.1

INSTANCE=/dataA/db2inst1

# Set the path.
PATH=/sbin:/bin:/usr/bin:/usr/sbin

.. /etc/rc.d/init.d/functions

# Check we have the start and stop programs.
test -x


INSTANCE / sqllib / adm / db2start ||退出0

test -x
INSTANCE/sqllib/adm/db2start || exit 0
test -x


INSTANCE / sqllib / adm / db2stop ||退出0

test -x
INSTANCE/sqllib/adm/db2stop || exit 0
test -x


这篇关于在Red Hat Enterprise Linux下自动启动DB2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆