473,672 Members | 2,597 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

db2stop taking time

Hi All,

When i am trying to take offline backup of my production db .. it is
taking more time in db2stop command (around 15 min.) while earlier max
was 2 mins. what might be the reason for this delay.

To stop the db I am using following sequence of commands:-
db2set db2comm=
db2 force application all
db2stop force
db2_kill
db2start
db2force application all
backup command

Please tell me if I have to use some other command or remove some ...

Thanks
Sandy
Oct 23 '08 #1
5 7239
why do you want to stop the DB anyway?

a force and deactivate should be OK for an offline backup
On Oct 23, 11:45*pm, "sandeep.i...@g mail.com" <sandeep.i...@g mail.com>
wrote:
Hi All,

When i am trying to take offline backup of my production db .. it is
taking more time in db2stop command (around 15 min.) while earlier max
was 2 mins. what might be the reason for this delay.

To stop the db I am using following sequence of commands:-
db2set db2comm=
db2 force application all
db2stop force
db2_kill
db2start
db2force application all
backup command

Please tell me if I have to use some other command or remove some ...

Thanks
Sandy
Oct 24 '08 #2
wanted to stop DB for taking offline backup.
just to confirm these 3 command will be suffice

db2set db2comm=
db2 force application all
db2 deactivate db
Please suggest
thanks
sandy
Oct 24 '08 #3
Ian
sa**********@gm ail.com wrote:
wanted to stop DB for taking offline backup.
just to confirm these 3 command will be suffice

db2set db2comm=
No reason to do this.
db2 force application all
db2 deactivate db
That's fine.

Oct 25 '08 #4
On Oct 23, 11:45*pm, "sandeep.i...@g mail.com" <sandeep.i...@g mail.com>
wrote:
Hi All,

When i am trying to take offline backup of my production db .. it is
taking more time in db2stop command (around 15 min.) while earlier max
was 2 mins. what might be the reason for this delay.

To stop the db I am using following sequence of commands:-
db2set db2comm=
db2 force application all
db2stop force
db2_kill
db2start
db2force application all
backup command

Please tell me if I have to use some other command or remove some ...

Thanks
Sandy
Did you change LOGFILSIZ, LOGPRIMARY, CHNGPGTHRES(?), SOFTMAX?

Not sure if I got all relevant parameters, but your database might
need a while before it gets into a consistent state. The force
applications command is asynchronous, so there may even be a rollback
active, if you had working applications during that time.
Oct 26 '08 #5
There is a reason NOT to do this - if you use DPF (a partitioned DB
environment).
I suppose, that db2_all would fail...?
On Oct 25, 6:19*am, Ian <ianb...@mobile audio.comwrote:
sandeep.i...@gm ail.com wrote:
wanted to stop DB *for taking offline backup.
just to confirm these 3 command will be suffice
db2set db2comm=

No reason to do this.
db2 force application all
db2 *deactivate db

That's fine.
Oct 27 '08 #6

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

Similar topics

2
4027
by: Kumar | last post by:
Need urgent help... I am trying to make a change in one column (primary key). I dropped the primary key which dropped other 2-3 foreign keys referencing this column. I made the changes. Re-built Primary key as well as Foreign keys which were dropped.
1
1235
by: thomson | last post by:
Hi all, I have created a Web Application in my system, This application is accessed only in the local network. I have observed that in some machine When there is a post back it will be taking lot of time , but at the same time in some other machine it is not at all taking any time . Iam not able to identify the root cause,
2
2237
by: db2group88 | last post by:
Hi, we are using db2 V8.2 on windows, i try to deleted the data from the table but i change my mind and stop the process, then if i do db2stop, seems it is doing a rollback and take the same amount of time as delete rows to try to stop the server, is there any better way to do this? thanks
1
2694
by: Laurence | last post by:
Hi folks, The sentence "If you are an HACMPâ„¢ user, you must use the ha_db2stop command to stop DB2 instead of the db2stop command. If you use the db2stop command instead of the ha_db2stop command, you will trigger a failure event.". If I also do HADR with HACMP, should I also use the ha_db2stop command, or just db2stop command? Thanks in advance,
11
11527
by: zgh1970 | last post by:
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
2
2102
by: Kumarswamy | last post by:
Hi, I have a problem, i have used one condition in where clause ..... but it is taking some time to return values....... so my procedure is taking lot of time....... for the same table if i query with another column in where clause within fraction of second i getting values....... This query is taking some time...... SELECT entrykey,uniquekey FROM frt_app.ENTRIES_WES WHERE uniquekey=9422077251
4
3750
by: db2dbdba | last post by:
Hi All, How can I check for when a db2stop command is last issued? Or when a db2 force applications all command is last issued? Thanks in advance R
3
5491
by: danfan46 | last post by:
Hi! I'm trying to set up a database instance on a prime Linux server, using db2 V9.5 with fixpack 1 applied. I issued db2set DB2RSHCMD=/usr/bin/ssh After adding 2 partitions, when issuing db2stop (as instance owner), I have to give the password 6 times. When i the run db2start it suffices with 3 times. What did I miss?
6
1895
by: Gouri.Mahajan7 | last post by:
Hello, When I press the button on the web page I am loading the user control on the web page. This user control is invoking some methods of the web service. The control on the web page is loaded very soon when running on the local machine ( measns where the web service is running). But it is taking lot of time when loaded on the remote machine. Can anybody please explain me how to solve this problem?
0
8486
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8931
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8828
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8680
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.