Unix Technical Forum

how to stop all database manager processes even after db2stop

This is a discussion on how to stop all database manager processes even after db2stop within the DB2 forums, part of the Database Server Software category; --> Hi, Friends, I need to know how to stop all database process even after db2stop. How can I stop ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-17-2008, 06:12 AM
zgh1970
 
Posts: n/a
Default how to stop all database manager processes even after db2stop

Hi, Friends,
I need to know how to stop all database process even after db2stop.
How can I stop all database processes?
I have finished upgraded our system test and UAT region from 32-bit to
64-bit.
I followed the following for my system test region:
1. log on aix with root
2. stop the instance
3. db2iupdt -w 64 instance

--
4. restart instance

I found after step 3, I couldn't start the instacne after upgrade. I
rebooted the box and then it worked.

I think the problem is after I stoped the instance, some DBM process
was still running.

From DB2 information center, when using db2iupdt it requirs:
When updating an instance using this command, you must first stop any
database manager processes running against the instance you wish to
update

Thanks,
George Zhang
03/14
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-17-2008, 06:12 AM
Mark A
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

"zgh1970" <george.zhang@lombard.ca> wrote in message
news:a1273df2-91b1-48e9-a4a6-f2b7c110197e@2g2000hsn.googlegroups.com...
> Hi, Friends,
> I need to know how to stop all database process even after db2stop.
> How can I stop all database processes?
> I have finished upgraded our system test and UAT region from 32-bit to
> 64-bit.
> I followed the following for my system test region:
> 1. log on aix with root
> 2. stop the instance
> 3. db2iupdt -w 64 instance
>
> --
> 4. restart instance
>
> I found after step 3, I couldn't start the instacne after upgrade. I
> rebooted the box and then it worked.
>
> I think the problem is after I stoped the instance, some DBM process
> was still running.
>
> From DB2 information center, when using db2iupdt it requirs:
> When updating an instance using this command, you must first stop any
> database manager processes running against the instance you wish to
> update
>
> Thanks,
> George Zhang
> 03/14


Try ipclean command. This is usually specified in the fixpack install
instructions and should work in this case also..


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2008, 06:12 AM
Hardy
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

On Mar 14, 9:58*am, zgh1970 <george.zh...@lombard.ca> wrote:
> Hi, Friends,
> I need to know how to stop all database process even after db2stop.
> How can I stop all database processes?
> I have finished upgraded our system test and UAT region from 32-bit to
> 64-bit.
> *I followed * the following for my system test region:
> 1. log on aix with root
> 2. stop the instance
> 3. db2iupdt -w 64 instance
>
> --
> 4. restart instance
>
> I found after step 3, I couldn't start the instacne after upgrade. I
> rebooted the box and then it worked.
>
> I think the problem is after I stoped the instance, some DBM process
> was still running.
>
> From DB2 information center, when using db2iupdt it requirs:
> When updating an instance using this command, you must first stop any
> database manager processes *running against the instance you wish to
> update
>
> Thanks,
> George Zhang
> 03/14


try the combination of ipclean,slibclean,ipcrm.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2008, 07:35 AM
Knut Stolze
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

Hardy wrote:

> On Mar 14, 9:58Â*am, zgh1970 <george.zh...@lombard.ca> wrote:
>> Hi, Friends,
>> I need to know how to stop all database process even after db2stop.
>> How can I stop all database processes?
>> I have finished upgraded our system test and UAT region from 32-bit to
>> 64-bit.
>> I followed Â* the following for my system test region:
>> 1. log on aix with root
>> 2. stop the instance
>> 3. db2iupdt -w 64 instance
>>
>> --
>> 4. restart instance
>>
>> I found after step 3, I couldn't start the instacne after upgrade. I
>> rebooted the box and then it worked.
>>
>> I think the problem is after I stoped the instance, some DBM process
>> was still running.
>>
>> From DB2 information center, when using db2iupdt it requirs:
>> When updating an instance using this command, you must first stop any
>> database manager processes Â*running against the instance you wish to
>> update

>
> try the combination of ipclean,slibclean,ipcrm.


I would stick only with those things mentioned in the FP README. If it does
not work with this, contact IBM support to get the problem truly fixed.
Otherwise, you may run into the same issue in the future again - no point
for that.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-20-2008, 12:46 PM
stefan.albert
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

slibclean and ipclean ( mentioned in the readmes ) are sometimes
needed.
I normally do:
* check for running db2 processes - and kill'em (after db2stop /
db2_kill) ; recheck
* ipcs / then ipcrm for still existing objects ; recheck
* slibclean
Of course the health / fault monitors have to be OFF...
A reboot is of course a goog thing - if you have your instances not in
autostart mode
and the db2fmcd is commented out in /etc/inittab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-20-2008, 12:46 PM
Larry
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

Can one stop the instance being logged on as root? Or does one need to
be logged on as instance owner to do that?

Larry E.

Knut Stolze wrote:
> Hardy wrote:
>
>
>>On Mar 14, 9:58 am, zgh1970 <george.zh...@lombard.ca> wrote:
>>
>>>Hi, Friends,
>>>I need to know how to stop all database process even after db2stop.
>>>How can I stop all database processes?
>>>I have finished upgraded our system test and UAT region from 32-bit to
>>>64-bit.
>>>I followed the following for my system test region:
>>>1. log on aix with root
>>>2. stop the instance
>>>3. db2iupdt -w 64 instance
>>>
>>>--
>>>4. restart instance
>>>
>>>I found after step 3, I couldn't start the instacne after upgrade. I
>>>rebooted the box and then it worked.
>>>
>>>I think the problem is after I stoped the instance, some DBM process
>>>was still running.
>>>
>>>From DB2 information center, when using db2iupdt it requirs:
>>>When updating an instance using this command, you must first stop any
>>>database manager processes running against the instance you wish to
>>>update

>>
>>try the combination of ipclean,slibclean,ipcrm.

>
>
> I would stick only with those things mentioned in the FP README. If it does
> not work with this, contact IBM support to get the problem truly fixed.
> Otherwise, you may run into the same issue in the future again - no point
> for that.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-20-2008, 12:46 PM
Knut Stolze
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

Larry wrote:

> Can one stop the instance being logged on as root? Or does one need to
> be logged on as instance owner to do that?


If you are root, you can do a simple:

su - db2inst1 -c "db2stop"

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-20-2008, 12:46 PM
Larry
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

But the OP said that he issued a stop instance under root. Couldn't that
be the cause of the remaining processes?

Larry E.

Knut Stolze wrote:
> Larry wrote:
>
>
>>Can one stop the instance being logged on as root? Or does one need to
>>be logged on as instance owner to do that?

>
>
> If you are root, you can do a simple:
>
> su - db2inst1 -c "db2stop"
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-20-2008, 12:46 PM
zgh1970
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

On Mar 17, 7:37*am, "stefan.albert" <stefan.alb...@spb.de> wrote:
> slibclean and ipclean ( mentioned in the readmes ) are sometimes
> needed.
> I normally do:
> * ** check for running db2 processes - and kill'em (after db2stop /
> db2_kill) ; recheck
> * ** ipcs / then ipcrm for still existing objects ; recheck
> * ** slibclean
> Of course the health / fault monitors have to be OFF...
> A reboot is of course a goog thing - if you have your instances not in
> autostart mode
> and the db2fmcd is commented out in /etc/inittab

Hi, Stefaan,
Thank you for the reply.
When we used db2stop, slibclean and fault monitors OFf.
then we upgrade db2 instance to 64-bit.
Will db2satrt make all process required on?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-20-2008, 12:46 PM
stefan.albert
 
Posts: n/a
Default Re: how to stop all database manager processes even after db2stop

normally "root" doesn't have the authority to do DB2 stuff - but if
root is in the SYSADM_GROUP and the environment is set correctly for
the instance (source db2profile in $INSTHOME/sqllib) it should work.
Of course the su... Knut wrote is a bit easier.

What processes do you need? I can't give a "complete" answer for your
setup.
A FP install normally inserts the line in /etc/inittab for fault
monitor (it will be started)
db2start will start all the configured services...
The admin server (if needed) must be started seperately - afaik

On Mar 17, 5:32*pm, zgh1970 <george.zh...@lombard.ca> wrote:
> On Mar 17, 7:37*am, "stefan.albert" <stefan.alb...@spb.de> wrote:> slibclean and ipclean ( mentioned in the readmes ) are sometimes
> > needed.
> > I normally do:
> > * ** check for running db2 processes - and kill'em (after db2stop /
> > db2_kill) ; recheck
> > * ** ipcs / then ipcrm for still existing objects ; recheck
> > * ** slibclean
> > Of course the health / fault monitors have to be OFF...
> > A reboot is of course a goog thing - if you have your instances not in
> > autostart mode
> > and the db2fmcd is commented out in /etc/inittab

>
> Hi, Stefaan,
> Thank *you for the reply.
> When we used db2stop, slibclean and fault monitors OFf.
> then we upgrade db2 instance to 64-bit.
> Will db2satrt make all process required on?
>
> Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:53 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com