473,385 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Please send Automated DB2 Backup Script on Windows machine

Hi,

Please send Automated DB2 Backup Script on Windows machine to me.

Full backup, Incremental backup and Delta backup scripts.

OS : Windows 2003
Nov 20 '12 #1
1 4312
Frinavale
9,735 Expert Mod 8TB
It looks like there is a lot of information and examples on how to accomplish this in this article: An Introduction to DB2 UDB Scripting on Windows.

This is the code posted in the example "Listing 6" in the article:
Expand|Select|Wrap|Line Numbers
  1. @echo off:
  2. :------------------------------------------------::
  3. :: This is a Windows Shell Script that must be run
  4. inside a DB2 Command:: Window (db2cmd).
  5. :------------------------------------------------::
  6. set SCRIPT_NAME=%~n0 set SCRIPT_VER=1.0 set
  7. DB2INSTANCE=DB2 set DB2DATABASE=SAMPLE
  8.  
  9. title %SCRIPT_NAME% v%SCRIPT_VER%
  10.  
  11. echo Starting database backup of %DB2DATABASE% on
  12. %date% at %time%... DB2 BACKUP DATABASE SAMPLE if not
  13. %errorlevel% == 0 ( 
  14. echo Database backup of
  15. %DB2DATABASE% failed, RC=%errorlevel% 
  16. else 
  17. echo
  18. Database backup of %DB2DATABASE% completed on %date% at
  19. %time%. 
  20. )
I suggest you read the article to fully understand this topic.


-Frinny
Nov 20 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gary Herron | last post by:
Hi list, Can someone who has built the SpreadModule on a windows machine please send me the results of the build (or just point me an a binary distribution). Here's why: I'm starting to...
1
by: Dino | last post by:
hello, every night i'm running a simple cronjob which created sql-dumps from serevral web applications using a syntax like this: mysqldump --add-drop-table -uuzzer -hmyhost -pmypw mydatabase...
1
by: jadher | last post by:
I try to access an asp page in a machine that has windows integrated authentication turned on. I use System.Net.Networkcredentials as well as System.Net.Webrequest and Webresponse. I receive...
5
by: lennart | last post by:
Here's the scenario. Take backup on production machine Restore backup on development machine OS and fixpak identical, but - and I suspect this has something to do with it - the dbadm user...
2
by: Ike | last post by:
Is anyone aware of a MySQL Backup Script out there that works automatically to back up a database, say once every 24 hours? Thanks, Ike
5
by: flupke | last post by:
Hi, i made a backup script to backup my postgres database. Problem is that it prompts for a password. It thought i could solve this by using popen2. I tested popen2 with dir (i'm on windows...
1
by: bhd282 | last post by:
I am unable to find out how to locate and update some of the configuration parameters for automated backup, ie, outside of the Control Center's Automation Maintenance Wizard. I am able to...
0
by: bhd282 | last post by:
am unable to find out how to locate and update some of the configuration parameters for automated backup, ie, outside of the Control Center's Automation Maintenance Wizard. I am able to...
1
by: bhd282 | last post by:
Regarding this message: ADM10502W Health indicator "Database Backup Required" ("db.db_backup_req") is in state "Automated backup failed" on "database" "db2inst2.WAREHOUS". Is there any place...
2
by: techsri | last post by:
Hi, We are going to launch a website which offers free e-learning courses to the users. we are facing some problems to build my site. The problem is about, We want add push email feature to our...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.