If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Force Application All

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-03, 16:12
Koz Koz is offline
Registered User
 
Join Date: May 2002
Posts: 43
Force Application All

When running a FORCE APPLICATION, I receive the following message in return:

DB20000I The FORCE APPLICATION command completed successfully.
DB21024I This command is asynchronous and may not be effective immediately.

I was wondering if it waits until all current transaction complete or if it rolls them back.

Some of our offline backups have been receiving the follow error:
SQL1035N The database is currently in use. SQLSTATE=57019

I was thinking of runnig a loop until the "LIST APPLICATIONS" comes up Null......

Any suggestions would be appriciated...

Thanks in advance....
Reply With Quote
  #2 (permalink)  
Old 12-08-03, 16:46
Kota Kota is offline
Registered User
 
Join Date: Jun 2003
Posts: 113
I think it should rollback as you are terminating the apps. If this is the
only database residing under that instance, do
db2 force applications all; db2stop force;db2start.
Then start the offline backup.

May not be the best way of doing it.
Reply With Quote
  #3 (permalink)  
Old 12-09-03, 04:39
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Prefered Sequence

The prefered sequence is

db2 force applications all
db2 terminate
db2 backup database <database-name>
db2stop
db2start

I advise you not to use a stop force as I've faced an error when the db restarts saying that an agent could not be allocated due to a previous stop force command.

Hope this helps

Nitin
Reply With Quote
  #4 (permalink)  
Old 12-09-03, 06:34
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Moderator of this forum sathyaram_s has his own www page, where force application script is available. Please see db2 click page for more info.

Hope this helps,
Grofaty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On