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 > BACKUp errors

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-04, 10:49
ckintner ckintner is offline
Registered User
 
Join Date: May 2004
Location: Bordentown, NJ
Posts: 27
BACKUp errors

DB2 V8.1.5.449 OS Win2003

I have a .bat file that issues a db2 backup command in the scheduled tasks. when it runs, it finishes with rc=8 and the db is not backed up. where can i see the errors?

Thanks,
Craig
Reply With Quote
  #2 (permalink)  
Old 07-15-04, 11:54
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Error messages go to the standard output stream. You can redirect it to a file in you batch and look at the SQL error code. There also may be something in the db2diag.log file.

Does the batch file run OK if you invoke it from the command line?
Reply With Quote
  #3 (permalink)  
Old 07-15-04, 12:21
ckintner ckintner is offline
Registered User
 
Join Date: May 2004
Location: Bordentown, NJ
Posts: 27
yes. the file works fine from the command line. how do i direct the o/p to a file?
Reply With Quote
  #4 (permalink)  
Old 07-15-04, 13:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Code:
backup.bat > backup.log
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