473,782 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help withDB2 Recover Command

I have been testing the db2 recover command on a DB2 V8.2 Linux
database. The database contains a single partition. I am not
archiving logs but retaining them on disk. the backup image is to
disk as well. I performed the following in order :

1. OFFLINE BACKUP <time#1>
2. Create table S.T (c1 smallint)
3. Insert several rows into S.T - values 1,2,3,4,5
4. ONLINE BACKUP <time#2>
5. Insert several more rows 6,7,8,9
6. Delete rows 1,2
7. ONLINE BACKUP <time#3)

I then tried a few Recovery operations :

1. recover database mydb to <time#2>
- This works OK
2. recover database mydb to <just before time#2>.
- This works OK.
3. recover database mydb to end of logs.
- This seems to roll thru the previous recover commands just issued
4. recover database mydb to <time#3>
- This fails with a SQL1254 : No match for a database image file
was found

Q1. Can anyone explain what is going on with Recovery test 3? Is it
using the logs and sees the previous recovery operations?

Q2. In recovery test #4, why can't I recovery to PIT specified? I can
see the backup image in the directory with the proper timestamp.

May 14 '07 #1
0 1796

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

Similar topics

1
2772
by: Maurizio Berlusconi | last post by:
Hi all I have (my mistake) overwritten the beginning of a file where a long dictionary was pickled with another (pickled and much smaller) dictionary. Since only 10% or so of the original and important data was overwritten, I would be happy if I could somehow recover at least the part that I can still see. The situation is now the following. If I open the file in vi I can see :
1
1902
by: Rajesh Garg | last post by:
I have a scenario like this....... update esan set tes_address_city = 'TEST1' --at some time update esan set tes_address_city = 'TEST12' --at some time update esan set tes_address_city = 'TEST123' --at some time backup database TESTWMS to disk = 'D:\temp\RecoveryTest\TESTWMS.db' backup log TESTWMS to disk = 'D:\temp\RecoveryTest\TESTWMS01.log' I take these backups at the end of day....
5
3827
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 Oracle database means entire database, i.e.. all tablespaces (including indexes). I see only recover tablespace and recover indexspace (or index) commands in db2. Therefore, one has to specify all the tablespaces and indexspaces and recover them
1
1255
by: Hardy | last post by:
Hi, there's a db with 32 partitions. on the 22nd partition, all the index is located on a dms device container. due to some man-made mistakes, the data on the container is totally destroyed. then the access to the tables with indexes all went wrong... how can I deal with it? the whole db size is about 13T... thanks in advance:)
0
1082
by: JK | last post by:
Hi all, if I use RECOVER to END OF LOGS on a partitioned database, will the necessary RESTORE#s for the non-catalog partitions run in parallel or one after the other ? Haven't found anything and the docs and do not have a system to test right now. TIA for any answer Joachim
11
2342
by: MLH | last post by:
I don't know how it happened. I have hundreds of hours worth of work invested in a file I foolishly named DB9.mdb. I was intending on renaming the file soon. But I neglected to do so before getting caught up in a new project. When I did, I forgot about the filename I was working under. One day, and I don't know how long ago it was, I deleted db*.mdb and db*.ldb from the development directory as a routine part of disk housekeeping.
18
4611
by: __frank__ | last post by:
The following code use a macro and a label. I would to change it and use instead a more readable function and avoid the label. The macro DAQmxFailed checks for the return code of the various functions: DAQmxCreateTask() DAQmxStartTask() DAQmxReadAnalogScalarF64()
5
4612
by: ruben20 | last post by:
Hi: Is there any way to recover data from a corrupted table? I can only run SELECTs on certain WHERE conditions. I cannot vacuum, pg_dump, I've deleted the indexes and try to reindex, always get error: ERROR: could not access status of transaction 4244329 DETAIL: could not open file "/usr/local/pgsql/data/pg_clog/0004": No
2
1112
by: corinne08 | last post by:
the problem is.... Make a program with two functions. One is to take in records composed of a name and numerical score and store these in a file. The records can be looked up by name to recover the score. Both the name and score will be written in appropriately labeled text boxes by the user for input. The "new" command button will store the record and open the text boxes for a new one. We don't need delete, previous, or next, just search...
0
9641
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3643
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.