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 > DB2 v8.1 on Solaris 8 - Backup fails

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-05, 10:13
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Unhappy DB2 v8.1 on Solaris 8 - Backup fails

Hi all,

DB2 v8.1 fixpak 6 on Solaris 8

I am trying to do a backup task with the following script:

CONNECT TO DPS00001;
QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS;
CONNECT RESET;
BACKUP DATABASE DPS00001 TO "/home/dps/dpsbackup/" WITH 1 BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING;
CONNECT TO DPS00001;
UNQUIESCE DATABASE;
CONNECT RESET;

It fails to do the backup. I checked the db2diag.log, it says:

" A transaction is still active, please retry backup again.
Backup terminated."

I added "FORCE APPLICATION ALL;" to the above script but it did not help.

Thanks in Advance,
Newbie
Reply With Quote
  #2 (permalink)  
Old 01-30-05, 11:10
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Red face

Any Suggestions?
Reply With Quote
  #3 (permalink)  
Old 01-30-05, 14:41
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The FORCE APPLICATION ALL is ashynchronous and does not take effect immediately. Try adding a "sleep 10" to a unix script to wait 10 seconds. Or try using two FORCE APPLICATION ALL statements.

Also, you should do a "list applications show detail" to see if there are some connections that are automatically reconnecting, even after they are disconnected.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 01-30-05, 18:59
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2click.com has a script that does what Marcus has suggested

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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