473,387 Members | 1,760 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,387 software developers and data experts.

Recover Using INCREMENTAL AUTOMATIC

UDB v8 fp 6a on AIX 5.1.0.0

Below is a manual incremental recover from compressed backup datasets.
With external compress backup datasets, can it be coded to do an
automatic incremental recover? The manual incremental recover works
just fine, but having trouble getting the automatic incremental recover
to work. Thanks for your help

# INCREMENTAL BACKUP
mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1I
mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2I

uncompress
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .1.Z

uncompress
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .2.Z

cat
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .1
/db2backup04/db2inst4/backups/SAMPLE.pipe1I &
cat
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .2 /db2backup05/db2inst4/backups/SAMPLE.pipe2I &
nice db2 restore database SAMPLE incremental from
/db2backup04/db2inst4/backups/SAMPLE.pipe1I ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2I taken at 20041202155537
with 2 buffers buffer 2048 parallelism 1 without prompting
rm /db2backup04/db2inst4/backups/SAMPLE.pipe1I
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2I
#FULL BACKUP
mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1
mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2

uncompress
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .1.Z

uncompress
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.200
41130071003.2.Z

cat
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202153832 .1 /db2backup04/db2inst4/backups/SAMPLE.pipe1 &
cat
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202153832 .2 /db2backup05/db2inst4/backups/SAMPLE.pipe2 &
nice db2 restore database SAMPLE incremental from
/db2backup04/db2inst4/backups/SAMPLE.pipe1 ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2 taken at 20041202153835 with
2 buffers buffer 2048 parallelism 1 without prompting

rm /db2backup04/db2inst4/backups/SAMPLE.pipe1
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2

# INCREMENTAL BACKUP

mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1I
mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2I

uncompress
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .1.Z

uncompress
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041130071003 .2.Z

cat
/db2backup04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .1 /db2backup04/db2inst4/backups/SAMPLE.pipe1I &
cat
/db2backup05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041202155534 .2 /db2backup05/db2inst4/backups/SAMPLE.pipe2I &


nice db2 restore database SAMPLE incremental from
/db2backup04/db2inst4/backups/SAMPLE.pipe1I ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2I taken at 20041202155537
with 2 buffers buffer 2048 parallelism 1 without prompting

rm /db2backup04/db2inst4/backups/SAMPLE.pipe1I
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2I

Nov 12 '05 #1
3 3111
Ian
apple wrote:
UDB v8 fp 6a on AIX 5.1.0.0

Below is a manual incremental recover from compressed backup datasets.
With external compress backup datasets, can it be coded to do an
automatic incremental recover? The manual incremental recover works
just fine, but having trouble getting the automatic incremental recover
to work. Thanks for your help


If you modify (i.e. compress, relocate, etc) the files that DB2 produces
during a backup, I would be flabbergasted if DB2 can automatically
recover.

You might try using the COMPRESS option on backup, so you don't have to
manually compress the backups after the fact.

Nov 12 '05 #2
Thanks Ian for the reply.

Where is the Compress option on the backup that you specified. I don't
see it in the manuals. Here's how we backup:

mkfifo /db2backup04/db2inst4/backups/SAMPLE.pipe1I

mkfifo /db2backup05/db2inst4/backups/SAMPLE.pipe2I

cat /db2backup04/db2inst4/backups/SAMPLE.pipe1I | nice -n 10 compress >
/db2back
up04/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041207071004 .1.Z
&
cat /db2backup05/db2inst4/backups/SAMPLE.pipe2I | nice -n 10 compress >
/db2back
up05/db2inst4/backups/SAMPLE.0.db2inst4.NODE0000.CATN0000.20041207071004 .2.Z
&
nice db2 backup database SAMPLE online INCREMENTAL to
/db2backup04/db2inst4/backups/SAMPLE.pipe1I ,
/db2backup05/db2inst4/backups/SAMPLE.pipe2I with 2 buffers buffer 1024
parallelism 1

rm /db2backup04/db2inst4/backups/SAMPLE.pipe1I
rm /db2backup05/db2inst4/backups/SAMPLE.pipe2I

Nov 12 '05 #3
Never mind. I found it.

Nov 12 '05 #4

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

Similar topics

1
by: jane | last post by:
HI, I had a question on incremental backup. We had an incremental backup every weekend. We did full backup every other week. That is one week incremental + full , the other week is...
1
by: Jimmy Chen | last post by:
Recently I've done a db2 backup and restore/recovery, but the process for recovering the database was different than what I thought to be. here is what I did: DB2 is set in online mode -...
5
by: Prem K Mehrotra | last post by:
I come from Oracle background. In Oracle, when one wants to do a point in time recovery, one can specify recover database until timestmap. Oracle's database maps to a db2 subsystem, i.e., in...
3
by: apple | last post by:
UDB v8 fp 6a on AIX 5.1.0.0 Below is a manual incremental recover from compressed backup datasets. With external compress backup datasets, can it be coded to do an automatic incremental recover?...
2
by: Mary | last post by:
Hello, I am having a problem with the cl compiler. I have written a C class (RegConnect.c) which uses Win32 API functions such as RegOpenKey, RegCloseKey etc. Initially when I was trying to...
6
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library...
0
by: prerak_v_shah | last post by:
Hi All, These days I was working on IBM DB2 database for windows with my .Net Application. Now, it was required to backup database created on one machine to the other machine. I was also able...
35
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files....
2
by: ghardaway | last post by:
My text box and all of its content disappeared from my screen. It is still there in print preview mode, and my automatic pagination does account for the page. How do I recover it so that it is...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.