473,406 Members | 2,369 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,406 software developers and data experts.

db2 full-incremental-delta restore/recovery question

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

- backup -
* backup db2 in full
* insert record
* backup db2 in incremental
* insert record
* backup db2 in delta
* run command "archive log for db abc" and three log files archived to
tape

drop the database

- restore/recovery -
* restore delta backup - read from tape
* restore incremental backup - read from tape
* restore full backup - read from tape
* restore delta backup - read from tape

rollforwarding to end of log
5 log files applied and it was much fast than I thought, during
backup, there where at least 30 log files being created and archived
to tape. Most of them were in size of about 1 GB, but the archive log
applied was very small for roll forward.

what logs being applied (needed) and why the data (delta backup) being
read twice from tape? DB2 document no where tell the process in
detail, any one can help to explain?

Thanks,
Jimmy
Nov 12 '05 #1
1 3434
The reason the reason the delta backup is read twice is because it is the
most recent and therefore has the most recent values for the recovery
history.
The first read only gets the recovery history which is used to find A) the
most recent FULL from which to start and B) the intervening incremental full
or incremental deltas and C) the proper sequence in which to apply those.
AFAIK, the sequence should be in your case:
Incremental delta from tape - To get the sequence from history
Full image from tape
Full Incremental
Delta Inceremental - Again to get the last of your insert.
Roll Forward (If needed)
If you set your DIAGLEVEL to 4 in the dbm cfg, you will be able to get msgs.
which will indicate that flow.

As to your log files, I'm not sure I understand what you are saying. Abit
more detail in the mechanics might help.
HTH, Pierre.
"Jimmy Chen" <ji*********@hotmail.com> a écrit dans le message de
news:5e**************************@posting.google.c om...
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

- backup -
* backup db2 in full
* insert record
* backup db2 in incremental
* insert record
* backup db2 in delta
* run command "archive log for db abc" and three log files archived to
tape

drop the database

- restore/recovery -
* restore delta backup - read from tape
* restore incremental backup - read from tape
* restore full backup - read from tape
* restore delta backup - read from tape

rollforwarding to end of log
5 log files applied and it was much fast than I thought, during
backup, there where at least 30 log files being created and archived
to tape. Most of them were in size of about 1 GB, but the archive log
applied was very small for roll forward.

what logs being applied (needed) and why the data (delta backup) being
read twice from tape? DB2 document no where tell the process in
detail, any one can help to explain?

Thanks,
Jimmy

Nov 12 '05 #2

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

Similar topics

0
by: karolina | last post by:
Hi, I building a little site using PHP and mysql. Now I want to make full text searches on some columns in one table. The problem is that I have 25 colums in the table that I want to put at...
0
by: daking | last post by:
I'm trying to track down a Java performance issue, and believe it may be related to GC behavior. Quick background: j2se app server running Caucho Resin 2.1.12, on RHEL3 with Sun JDK 1.4.2_04,...
0
by: Tracey | last post by:
Hi there, I want to search Japanese characters with Full Text search function. I created a table (tbSearch) for Full-text search on SQL 2000, English Win2k Server. The table contains 4 fields,...
0
by: Denise | last post by:
Hi I have set up a full text index on one of my database tables and created a catalog. Then I started a full population on my catalog and got a message "Population of full text index started...
1
by: onewebclick | last post by:
Is there a way to detect a browser cache is full using javascript or HTML thorugh a web page and inform the user to clear the cache to improve performance of the website. It looks like google's...
11
by: rh00667 | last post by:
hi all, i'm confused now. how i can get the full path of an application? if myapp is in a directory which belongs to PATH, argv gives me the first token of cmd line, and not the real path of...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
Hi there. I posted an earlier issue under the name "That assembly does not allow partially trusted callers" but have now identified what the issue is. As explained before I am working in...
4
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
1
by: vivek samantray | last post by:
I have a query.When i try to create a index on one of the table the index gets created but when i take the output it stuill shows "TABLE ACCESS FULL" Please see below what i did QUERY ======...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.