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

recovery on-line backups a question on logs

Hi,
I am right in assuming to recover a database where logretain is on.
That I only need the logs that are reported in the list history.. for
instance;

db2 list history backup since 20040228190050 for db trdb
reports that the earliest log is:S0000012.LOG and the current log is:
S0000012.LOG

I only need that S0000012.LOG log to recover in a roll-forward
situation, plus the datbasebase dump.

Or can I just get the required log using..
db2 get db cfg for trdb | grep "First"
First active log file =
S0000012.LOG

Which returns the same log number.

thanks
PS
Nov 12 '05 #1
1 1783
Peter Sands wrote:
Hi,
I am right in assuming to recover a database where logretain is on.
That I only need the logs that are reported in the list history.. for
instance;

db2 list history backup since 20040228190050 for db trdb
reports that the earliest log is:S0000012.LOG and the current log is:
S0000012.LOG

I only need that S0000012.LOG log to recover in a roll-forward
situation, plus the datbasebase dump.

Or can I just get the required log using..
db2 get db cfg for trdb | grep "First"
First active log file =
S0000012.LOG

Which returns the same log number.

thanks
PS


You only need the logs if you have created an
online backup. Offline backups can be restored
without rolling forward thru the logs.

For online backups you need the logs that have been
produced from the beginning of the backup to the end.
That means you always have to rollforward the database
to at least the log that has been active at the end of
the backup.

In DB2 V8.1x the current log gets automatically
closed at the end of an online backup to ensure that a complete
set of logs is available for recovering from this backup.

In Version 7.2x you might need to manually issue the
db2 command 'archive log for db <dbname>' at the end
of an online backup to ensure that all logs are available for
recovering.

In your case there have not been much activity on
the database during the backup, so log S0000012.LOG
seems to be enough to rollforward your database.

Best regards

Eric
--
IT-Consulting Herber
***********************************************
Download the IFMX Database-Monitor for free at:
http://www.herber-consulting.de/BusyBee
***********************************************
Nov 12 '05 #2

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

Similar topics

2
by: Jens Kalkbrenner | last post by:
MS SQL-Server 7.0 Bypassing recovery for database 'EfW_765' because it is marked IN LOAD. What does this mean? Our customer is backing up is maindatabase and is recovering it to this database for...
0
by: Author Tarun Tyagi | last post by:
Hi, I am a Data Recovery Specialist and Professional Data Recovery Software Developer in New Delhi. I've placed the Complete SOURCE CODE of One of my Data Recovery Software for Sale (for...
4
by: joshsackett | last post by:
Hi All, I have a 2MB database set to SIMPLE recovery. This database is used only to generate new keys to web users. It has two columns - UID and LASTDATE. The UID column is only updated when users...
5
by: rcamarda | last post by:
I need a sql statment to return a list of tables for a given database where the Recovery Model option is Simple. TIA Rob
1
by: Vikrant | last post by:
On my DB2/UDB system, some tablespace 'Minimum recovery time' is 2000-11-19 or some '1999-10-04' or different, for some tablespace theres is no 'Minimum recovery time' , what does it tell me? ...
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
2
by: Strahimir Antoljak | last post by:
I am creating a new windows service and I would like to control its Recovery property. On a system administrator level the Recovery property is found in Control Panel -> Administrative Tools ->...
2
by: Racerx | last post by:
Hi All : I use db2 8.1 fixpack 3 on AIX. I recieved the following message in the diaglog ====================================================== ADM7513W Database manager has started. ...
2
by: Tin | last post by:
I bought a laptop and burned 4 recovery CDs for recovery purpose. Instead of burning as disc images, I just copied and pasted these 4 CDs to my USB HDD as 4 folders called "RecoveryCD 1",...
2
by: =?Utf-8?B?c3BhcmtsZWJhbg==?= | last post by:
My recovery disk on vista is almost full. I have performed a back up, deleted all but the most recent recovery point, done a disk clean up and also compressed the recovery disk. It is STILL almost...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.