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 > Problem with Backup Scripts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-05, 03:10
vijay4victory vijay4victory is offline
Registered User
 
Join Date: Sep 2005
Posts: 8
Problem with Backup Scripts

Hi all,
We are facing with an issue in our backup that runs overnight by a script. The problem is that since the backup file is a big one it is conventional that it prompts with a alert message either to continue(c) abort or terminate(t). It is a batch job and there is no user intervention. So it ends up abruptly showing error with reason code 4. Can anyone guide me if something could be done to resolve this. Is there by anymeans we can append some commands to the script so that it takes up the option c by default. Else is there by some other means we can make it successful.

Any useful suggestions are highly appreciated.



Cheers
Vijay
Reply With Quote
  #2 (permalink)  
Old 09-30-05, 11:00
youngj youngj is offline
Registered User
 
Join Date: Aug 2005
Posts: 1
Are you compressing the backup? This is what I do:
db2 backup database <dbname> user <uname> using <upasswd> to /some directory/ compress
Reply With Quote
  #3 (permalink)  
Old 09-30-05, 16:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can use the compress option within the backup command starting with 8.1.4.

You can also try the "without prompting" option at the end of the db2 backup command, assuming that the prompt is from DB2. See the Command Reference Manual for details.
__________________
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
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