473,772 Members | 2,349 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 7252
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
4033
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
1239
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
2241
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
2699
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
11536
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
2107
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
3777
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
5517
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
1905
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
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
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
10106
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...
0
9914
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...
1
7461
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...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4009
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2851
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.