472,957 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,957 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 5128
"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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.