473,385 Members | 1,468 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.

Backup of DB2 on Windows 2003 using open file option

I have no experience with DB2 as such, but I've been tasked with configuring
backup of a server running DB2 v8 on Windows Server 2003. I do have some
experience with backups in general though. The backup software I'll be using
is Backup Exec 10, but Backup Exec doesn't have a specific agent for DB2, as
it does for SQL and Oracle. The supplier of Backup Exec claims I can use the
Open File option of Backup Exec to backup DB2.
I find this a bit strange, I would have thought reading locked database
files and backing up was a bad thing to do, because I of course have to
guarantee I can restore the database to a consistent state in case of crash.
I've posted a similar question of Veritas' support forum, and the reply was
essentially "we can't guarantee it will work with open file".
Of course I can shut down DB2 and do a cold backup, or use the dump feature
( I assume DB2 has a dump feature) but I'm specifically looking for on-line
backups.
/charles
Nov 12 '05 #1
6 5163
"Charles Morrall" <ch*************@telia.com> wrote in message
news:fo*******************@newsb.telia.net...
I have no experience with DB2 as such, but I've been tasked with configuring backup of a server running DB2 v8 on Windows Server 2003. I do have some
experience with backups in general though. The backup software I'll be using is Backup Exec 10, but Backup Exec doesn't have a specific agent for DB2, as it does for SQL and Oracle. The supplier of Backup Exec claims I can use the Open File option of Backup Exec to backup DB2.
I find this a bit strange, I would have thought reading locked database
files and backing up was a bad thing to do, because I of course have to
guarantee I can restore the database to a consistent state in case of crash. I've posted a similar question of Veritas' support forum, and the reply was essentially "we can't guarantee it will work with open file".
Of course I can shut down DB2 and do a cold backup, or use the dump feature ( I assume DB2 has a dump feature) but I'm specifically looking for on-line backups.
/charles

DB2 has on-line backups. But you will need the log files that are active
during the backup if you want to restore an on-line backup. However, if you
have DB2 8.2 (free upgrade from 8.1 just by applying the latest fixpak) then
there is an option in the on-line backup to also include the necessary log
files in the backup image. See the Command Reference manual.

You cannot backup DB2 just by backing up the file systems (I should say you
cannot successfully restore DB2), unless you backup/restore the entire disk
drive (all drives that DB2 is using) while DB2 is off-line.
Nov 12 '05 #2
Of course I can shut down DB2 and do a cold backup, or use the dump

feature
( I assume DB2 has a dump feature) but I'm specifically looking for

on-line
backups.
/charles

DB2 has on-line backups. But you will need the log files that are active
during the backup if you want to restore an on-line backup. However, if
you
have DB2 8.2 (free upgrade from 8.1 just by applying the latest fixpak)
then
there is an option in the on-line backup to also include the necessary log
files in the backup image. See the Command Reference manual.

You cannot backup DB2 just by backing up the file systems (I should say
you
cannot successfully restore DB2), unless you backup/restore the entire
disk
drive (all drives that DB2 is using) while DB2 is off-line.


By "DB2 has on-line backups" do you mean I can export an on-line database
(dump) while the database is running, and in the next stage use my backup
application to backup the export to tape (or disk in my case)?
/charles
Nov 12 '05 #3
"Charles Morrall" <ch*************@telia.com> wrote in message
news:tB*******************@newsb.telia.net...


By "DB2 has on-line backups" do you mean I can export an on-line database
(dump) while the database is running, and in the next stage use my backup
application to backup the export to tape (or disk in my case)?
/charles

Yes, you can backup while DB2 is running and people are updating the data.
However it is best to do the backup at time when the least amount of updates
are being done, because this will reduce the number of logs that need to be
saved with the backup, and reduce the restore time (if a restore is needed).

After the backup is taken, you could copy the file to tape, and reverse the
process for the restore. Products like TSM (Tivoli Storage Manager) that
have a DB2 interface will do this automatically for you without the 2 step
process and also backup your other file systems..

Just remember to also backup the logs that are active during the backup, or
use 8.2 and indicate that you want the needed logs in the backup image.
Nov 12 '05 #4
> Yes, you can backup while DB2 is running and people are updating the data.
However it is best to do the backup at time when the least amount of updates are being done, because this will reduce the number of logs that need to be saved with the backup, and reduce the restore time (if a restore is needed).
After the backup is taken, you could copy the file to tape, and reverse the process for the restore. Products like TSM (Tivoli Storage Manager) that
have a DB2 interface will do this automatically for you without the 2 step
process and also backup your other file systems..

Just remember to also backup the logs that are active during the backup, or use 8.2 and indicate that you want the needed logs in the backup image.

One thing to add, you must enable "log retain" (or specify an archive exit
program) in the DB CONFIG in order to do an on-line backup. The default is
circular logging when you create a database.
Nov 12 '05 #5
Charles Morrall wrote:
I have no experience with DB2 as such, but I've been tasked with configuring backup of a server running DB2 v8 on Windows Server 2003. I do have some experience with backups in general though. The backup software I'll be using is Backup Exec 10, but Backup Exec doesn't have a specific agent for DB2, as it does for SQL and Oracle. The supplier of Backup Exec claims I can use the Open File option of Backup Exec to backup DB2.
I find this a bit strange, I would have thought reading locked database files and backing up was a bad thing to do, because I of course have to guarantee I can restore the database to a consistent state in case of crash. I've posted a similar question of Veritas' support forum, and the reply was essentially "we can't guarantee it will work with open file".
Of course I can shut down DB2 and do a cold backup, or use the dump feature ( I assume DB2 has a dump feature) but I'm specifically looking for on-line backups.
/charles


I haven't seen the Veritas product for a few years, but I think the
intent was to make a quick image (or copy ?) of the open file
elsewhere, and then include that in the backup instead of the actual
open file. The logs should then allow consistent restore.

However, DB2 version 8.2 has its own great backup utility (including
compression) which might obviate the situation, although I don't know
about on-line -- comment from the experts? Both the Vertas (Backup
Exec) and the CA (Arcserve & Brightstor) products have open file
capabilities (not even options any more), so I assume that they work
somehow.
Don't expect anyone to say that "We guarantee it will work ..."

Stan

Nov 12 '05 #6
> I haven't seen the Veritas product for a few years, but I think the
intent was to make a quick image (or copy ?) of the open file
elsewhere, and then include that in the backup instead of the actual
open file. The logs should then allow consistent restore.

However, DB2 version 8.2 has its own great backup utility (including
compression) which might obviate the situation, although I don't know
about on-line -- comment from the experts? Both the Vertas (Backup
Exec) and the CA (Arcserve & Brightstor) products have open file
capabilities (not even options any more), so I assume that they work
somehow.
Don't expect anyone to say that "We guarantee it will work ..."

Stan

The experts have already commented.

Backing up operating system files will not suffice for a backup of DB2 while
it is running. Even off-line, a file system backup would have to include all
disks on the system that DB2 touched.
Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tim Gahnstrom | last post by:
rdiff-backup is aperently written in Python and when I run it in a special way I get some funy Python errors. Does anyone know if linux python have some issues with working with fat32 or usb...
6
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
11
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows...
1
by: Andrew E | last post by:
I just took over DBA responsibilities for an Oracle 8i database running on Linux. Although I've been working with relational databases for some time, I'm a bit green on Oracle so forgive me. My...
2
by: Spieg | last post by:
I've a program with VB6 working with SQLServer 2000. I have a Central Station with the program runnin with full prvileges and that can perform all the actions on the DB. There are also some...
6
by: Sue W via AccessMonster.com | last post by:
We have a database that is in use 24/7, and does not get backed up by our network backup software because it is always open. Does anyone have experience with backup software specifically designed...
3
by: rdemyan via AccessMonster.com | last post by:
I'm thinking about providing a relatively easy method for users to restore the front end from a backup. The purpose is to allow for restoring if the front end becomes corrupt. Here are some...
3
by: xeqister | last post by:
Hi, I have a DB2 database (version 7) running on Windows 2000 server and recently facing problem to backup my database. I got an error "Disk was full" after half way running the backup. My...
1
by: micofarmer | last post by:
We are running a PHP web-based frontend with a Postgres 7.2 backend on a Windows 2000 Server box with automated backups of the server being handled by Legato. We are experiencing several problems...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.