473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Is there a v8 equiv of v7 db2_kill??

Red Hat AS

DB21085I Instance "md" uses "32" bits and DB2 code release "SQL08012"
with level identifier "02030106". Informational tokens are "DB2
v8.1.0.16", "s030508", "MI00048", and FixPak "2".

I am having various and sundry problems w/ my v8 DB not coming down
cleanly after a db2stop - It leaves mem segments lying around.. I
then have to reboot the server to clean up and db2start again...

In v7, I believe there was a db2_kill utility to help with this.

But I can't find db2_kill under v8 - is there an equivalent utility
or functionality?

TIA

allen
Nov 12 '05 #1
7 4369
db2_kill exists on v8. Just ran it on fp4:

C:\tmp>db2_kill
rah: GRANITE3
GRANITE3: db2nkill /i:DB2 /n:0 completed rc=0

Search on db2_kill here:
http://publib.boulder.ibm.com/infoce...help/index.jsp

al****@ndr.com wrote:
Red Hat AS

DB21085I Instance "md" uses "32" bits and DB2 code release "SQL08012"
with level identifier "02030106". Informational tokens are "DB2
v8.1.0.16", "s030508", "MI00048", and FixPak "2".

I am having various and sundry problems w/ my v8 DB not coming down
cleanly after a db2stop - It leaves mem segments lying around.. I
then have to reboot the server to clean up and db2start again...

In v7, I believe there was a db2_kill utility to help with this.

But I can't find db2_kill under v8 - is there an equivalent utility
or functionality?

TIA

allen


Nov 12 '05 #2
al****@ndr.com <al****@ndr.com> wrote:
Red Hat AS

DB21085I Instance "md" uses "32" bits and DB2 code release "SQL08012"
with level identifier "02030106". Informational tokens are "DB2
v8.1.0.16", "s030508", "MI00048", and FixPak "2".

I am having various and sundry problems w/ my v8 DB not coming down
cleanly after a db2stop - It leaves mem segments lying around.. I
then have to reboot the server to clean up and db2start again...
You might want to use "ipcs" and "ipcrm" to cleanup shared memory segments
and queues. This can avoid the reboot.
In v7, I believe there was a db2_kill utility to help with this.

But I can't find db2_kill under v8 - is there an equivalent utility
or functionality?


It should be under sqllib/bin/. You should probably also verify your
installation if you don't have db2_kill and if you also have various other
problems.

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #3
Well, I guess I'm hallucinating. It is *not* in my
FP4 DB2 Workgroup on Linux, either under ~/sqllib/bin
or /opt/IBM/db2/V8.1/...

What OS are you on?

On v7, it is in ~/sqllib/bin as an external executable.
Is it a DB2 SQL/CLP cmd in v8 (like CREATE TABLE)??

aj

On Thu, 20 Nov 2003 17:20:41 -0500, Blair Adamache
<ba*******@2muchspam.yahoo.com> wrote:
db2_kill exists on v8. Just ran it on fp4:

C:\tmp>db2_kill
rah: GRANITE3
GRANITE3: db2nkill /i:DB2 /n:0 completed rc=0

Search on db2_kill here:
http://publib.boulder.ibm.com/infoce...help/index.jsp

al****@ndr.com wrote:
Red Hat AS

DB21085I Instance "md" uses "32" bits and DB2 code release "SQL08012"
with level identifier "02030106". Informational tokens are "DB2
v8.1.0.16", "s030508", "MI00048", and FixPak "2".

I am having various and sundry problems w/ my v8 DB not coming down
cleanly after a db2stop - It leaves mem segments lying around.. I
then have to reboot the server to clean up and db2start again...

In v7, I believe there was a db2_kill utility to help with this.

But I can't find db2_kill under v8 - is there an equivalent utility
or functionality?

TIA

allen


Nov 12 '05 #4
<al****@ndr.com> wrote in message
news:3f****************@news.supernews.com...
Well, I guess I'm hallucinating. It is *not* in my
FP4 DB2 Workgroup on Linux, either under ~/sqllib/bin
or /opt/IBM/db2/V8.1/...

What OS are you on?

On v7, it is in ~/sqllib/bin as an external executable.
Is it a DB2 SQL/CLP cmd in v8 (like CREATE TABLE)??

aj

On my DB2 for Linux ESE Fixpak 4, db2_kill is a script that is located here
(note that db2inst1 is the instance owner):
/home/db2inst1/sqllib/bin

However, the script will not work under bash, you need ksh.
Nov 12 '05 #5
Here is the ksh script if you want it:

#! /bin/ksh -p
#-----------------------------------------------------------------------
# (C) COPYRIGHT International Business Machines Corp. 1997
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# NAME: db2_kill
#
# FUNCTION: db2_kill terminates all the engine processes drastically
# on all the nodes.
# It is never a formal way to terminate engine processes.
#
# db2_kill is supplied as-is as an example of how to perform this function.
# There is no warranty or support.
#-----------------------------------------------------------------------
RAHSLEEPTIME=86400
export RAHSLEEPTIME

#-----------------------------------------------------------------------
# Function : runningEE
#
# - Returns true if the system is running EE; false otherwise.
#-----------------------------------------------------------------------
function runningEE
{
ee=1

if [ -f "$userhome/sqllib/db2nodes.cfg" -o \
-n "$RAHOSTFILE" ]; then
#
# Make sure the db2nodes.cfg is not for single node environment
#
numberOfLines=`grep -v '^ *#' $userhome/sqllib/db2nodes.cfg | wc -l |
awk -F' ' '{print $1}'`
if [[ $numberOfLines -eq 1 ]]; then

hostFromFile=`cat $userhome/sqllib/db2nodes.cfg | awk -F' ' '{print
$2}'`
shortHostFromFile=${hostFromFile%%.*}

hostFromCommand=`hostname`
shortHostFromCommand=${hostFromCommand%%.*}

#
# Only execute the locally if the number of lines in db2nodes.cfg
is 1 and
# that the hostname specified is the same as the local hostname
#
if [[ $shortHostFromFile != $shortHostFromCommand ]]; then
echo "The short host name in db2nodes.cfg is not the same the
local hostname."
exit 2 ;
fi

else
ee=0
fi
fi

return $ee
}

# We expect DB2INSTANCE variable is set
if [ -z "$DB2INSTANCE" ]; then
echo "DB2INSTANCE environment variable is not set."
exit 1;
fi

# An easy way to find out the home directory
# of DB2INSTANCE
userhome=~${DB2INSTANCE}
eval userhome=$userhome

# Unset RAHOSTLIST environment
# variable since it will
# interfere with rah.
unset RAHOSTLIST

runningEE
if [[ $? -eq 1 ]]; then
exec db2nkill 0
else
exec rah "|>> db2nkill []"
fi
Nov 12 '05 #6
al****@ndr.com wrote:
Well, I guess I'm hallucinating. It is *not* in my
FP4 DB2 Workgroup on Linux, either under ~/sqllib/bin
or /opt/IBM/db2/V8.1/...

What OS are you on?

On v7, it is in ~/sqllib/bin as an external executable.
Is it a DB2 SQL/CLP cmd in v8 (like CREATE TABLE)??


In v7, it was only part of EEE. In v8, then, it's only part of ESE.
Nov 12 '05 #7
Sorry, I'll have to disagree. I have a v7 WorkGroup Server (WSE)
running on Red Hat 7.3 under FP 9 that has db2_kill in ~/sqllib/bin

However, I suspect you are correct about db2_kill only being in ESE
under v8. Wonder why its not in the WorkGroup version?

aj

On Tue, 25 Nov 2003 17:32:15 GMT, Darin McBride
<dm******@naboo.to.org.no.spam.for.me> wrote:
al****@ndr.com wrote:
Well, I guess I'm hallucinating. It is *not* in my
FP4 DB2 Workgroup on Linux, either under ~/sqllib/bin
or /opt/IBM/db2/V8.1/...

What OS are you on?

On v7, it is in ~/sqllib/bin as an external executable.
Is it a DB2 SQL/CLP cmd in v8 (like CREATE TABLE)??


In v7, it was only part of EEE. In v8, then, it's only part of ESE.


Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Donald Gordon | last post by:
Hi I'm trying to retrieve an HTML document in UTF-8 format using LWP, but have hit a snag: the document redefines the Content-type: header from "text/html" to "text/html; charset=UTF-8" using a...
1
by: Troy | last post by:
Hello- I have a need to allow a user to reload a page on a chosen interval (selected from a select box) or to chose not to reload the page at all (default). I would like to do this in...
8
by: Nige | last post by:
I've got an old web site that comes up before its replacement in Google listings. I've read the document on Google about sending a "301" code from the server:...
3
by: Marcia Gulesian | last post by:
Is there a way to replace the URL value below, on the fly? <META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.some.org/some.html">
10
by: Udi Zisser | last post by:
Hello, any idea why this does not work? or how do i get this thing to work? <BASE HREF="http://localhost/thedude/"> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html"> I'm adding...
10
by: Newry | last post by:
Hi, If you have both this HTTP header: Content-Type: text/html; charset=ISO-8859-1 and this HTML element in the <head>: <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
0
dmjpro
by: dmjpro | last post by:
i use a code ..... in my html page like .... <meta http-equiv = 'Window-target' content = '_blank'> what will be the effect .... what i know about the http-equiv = 'Window-target' ......
2
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hello, I have an ASP.NET 2.0 application with the following meta tag to refresh the page after a minute. <meta http-equiv="Refresh" content="60; URL=Default.aspx" /> I need to be able to...
2
by: runway27 | last post by:
i have a registration page which is a self submitting form <form action="<?php echo $_SERVER; ?>" method="POST" id="test2" name="registrationform"> where in a user fill a form, after the data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.