473,624 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

question about online backups

Hello,

DB2 7.2 on AIX.

I take online backups EVERY night and rsync my log folder every hour
after running the DB2 ARCHIVE LOG command to make sure I dump the log
buffer to a log file.

Now the question...

Assuming I take a backup Monday, Tuesday, Wednesday, and all my logs are
rsync'ed every hour, as described above.

Can I restore my DB using my online backup of Monday and my logs (for
the rollforward) that I have been rsync'ing since then, EVEN though I
have been taking other online backups since then?


Next question.....

-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 06:18 S0016038.LOG
-rw------- 1 db2inst1 db2iadm1 4419584 Jun 02 06:00 S0016037.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 05:52 S0016039.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 05:52 S0016036.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 05:31 S0016035.LOG
-rw------- 1 db2inst1 db2iadm1 3481600 Jun 02 05:00 S0016034.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 04:37 S0016033.LOG
-rw------- 1 db2inst1 db2iadm1 4014080 Jun 02 04:00 S0016032.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 03:43 S0016031.LOG
-rw------- 1 db2inst1 db2iadm1 303104 Jun 02 03:00 S0016030.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 02:57 S0016029.LOG
-rw------- 1 db2inst1 db2iadm1 1912832 Jun 02 02:00 S0016028.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 01:44 S0016027.LOG
-rw------- 1 db2inst1 db2iadm1 2486272 Jun 02 01:00 S0016026.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 00:47 S0016025.LOG
-rw------- 1 db2inst1 db2iadm1 1208320 Jun 02 00:00 S0016024.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 01 23:49 S0016023.LOG
-rw------- 1 db2inst1 db2iadm1 1032192 Jun 01 23:00 S0016022.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 01 22:52 S0016021.LOG
-rw------- 1 db2inst1 db2iadm1 5120000 Jun 01 22:00 S0016020.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 01 21:37 S0016019.LOG
-rw------- 1 db2inst1 db2iadm1 4493312 Jun 01 21:00 S0016018.LOG
I have listed my logs in order of date. AS you can see the numbering of
the .LOG files are not necessarily sequential....i s there a reason for
that? (Look at file S0016039.LOG).
Is this bad?
Will this affect the resore (Roll Forward) of an Online backup?

Thank you very much in advance,

Christos
Nov 12 '05 #1
1 1522
Once you restore an image (independant of Mon.,Tue.,...), any image,
thretore process brings the SQLOGCTL.lFH file.
It contains info as to what logging environment was at backup time.
One piece of info is the first log file number (for ex. SQL006018.LOG)
needed to start the roll forward.
Once it has that, the roll forward process will call each log in sequence
irrespective of the timestamp.
Probably logs 6038 and 6039 had to be "touched" by DB2 after it had closed
6037 and therefore the discrepancy in sequence.

If you have the image mountd in its path, go there and use the db2ckbkp
command to extract the info about the first log file needed.
If you could be in V8.2, your recovery history file would tell you this
also.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Christos Kalantzis" <ch*******@inte rtrade.com> a écrit dans le message de
news: 1GEne.32734$9A2 .29262@edtnps89 ...
Hello,

DB2 7.2 on AIX.

I take online backups EVERY night and rsync my log folder every hour
after running the DB2 ARCHIVE LOG command to make sure I dump the log
buffer to a log file.

Now the question...

Assuming I take a backup Monday, Tuesday, Wednesday, and all my logs are
rsync'ed every hour, as described above.

Can I restore my DB using my online backup of Monday and my logs (for
the rollforward) that I have been rsync'ing since then, EVEN though I
have been taking other online backups since then?


Next question.....

-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 06:18 S0016038.LOG
-rw------- 1 db2inst1 db2iadm1 4419584 Jun 02 06:00 S0016037.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 05:52 S0016039.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 05:52 S0016036.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 05:31 S0016035.LOG
-rw------- 1 db2inst1 db2iadm1 3481600 Jun 02 05:00 S0016034.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 04:37 S0016033.LOG
-rw------- 1 db2inst1 db2iadm1 4014080 Jun 02 04:00 S0016032.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 03:43 S0016031.LOG
-rw------- 1 db2inst1 db2iadm1 303104 Jun 02 03:00 S0016030.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 02:57 S0016029.LOG
-rw------- 1 db2inst1 db2iadm1 1912832 Jun 02 02:00 S0016028.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 01:44 S0016027.LOG
-rw------- 1 db2inst1 db2iadm1 2486272 Jun 02 01:00 S0016026.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 02 00:47 S0016025.LOG
-rw------- 1 db2inst1 db2iadm1 1208320 Jun 02 00:00 S0016024.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 01 23:49 S0016023.LOG
-rw------- 1 db2inst1 db2iadm1 1032192 Jun 01 23:00 S0016022.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 01 22:52 S0016021.LOG
-rw------- 1 db2inst1 db2iadm1 5120000 Jun 01 22:00 S0016020.LOG
-rw------- 1 db2inst1 db2iadm1 8200192 Jun 01 21:37 S0016019.LOG
-rw------- 1 db2inst1 db2iadm1 4493312 Jun 01 21:00 S0016018.LOG
I have listed my logs in order of date. AS you can see the numbering of
the .LOG files are not necessarily sequential....i s there a reason for
that? (Look at file S0016039.LOG).
Is this bad?
Will this affect the resore (Roll Forward) of an Online backup?

Thank you very much in advance,

Christos


Nov 12 '05 #2

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

Similar topics

20
2423
by: My Internet | last post by:
Hello, I am in the process to define if our product can use PostgreSQL. Do you know what type of application use PostgreSQL, and also what is the size of the database for these projects? Our application has a table with more than 300000 rows. There are complexe query with many joins. And we must respect some time constraints. Also the application is running 24 hours per day, so the product must be stable, with
1
1798
by: Peter Sands | last post by:
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
4
9464
by: manwiththeaxe.70 | last post by:
I have recently begun to migrate our DB2 UDB v7.2 enterprise databases up to DB2 UDB v8.2. One question I can't seem to understand is why would I want to run an offline backup for a database now that the online backup includes the necessary log files. Is there a reason why I would need or want to go through the hassle of getting exclusive control of a db for an offline backup?
16
3820
by: DataPro | last post by:
New to Sql Server, running SQL Server 2000. Our transaction log file backups occasionally fail as the size of the transaction log gets really huge. We'd like to schedule additional transaction log backups. Does that require an exclusive on the database or can the db be used during a transaction log backup? Also, does switching to a bulk mode recovery model before a bulk operation then switching back to full recovery mode after present...
7
2458
by: manobas | last post by:
I am getting -911 on online incremental or delta backup , anybody have any explanation, backups go to tsm. thanks
8
2467
by: Raj | last post by:
-Is it possible to recover a tablespace just from a full offline backup and offline incremental backup? If not possible -Can we recover tablespace from Full backup , Wednesdays incremental backup (logs before wednesday are lost) to a point in time on Friday Thanks, Raj
1
1863
by: Asphalt Blazer | last post by:
Hi, I have an ODS for which I need to do a full online backup. It is taking us 1 hour and 44 minutes to do this. The command is below: db2 "backup database $DBNAME ONLINE to $DBPATH with 4 buffers buffer 4096 parallelism 2 compress include logs without prompting" Well I want to bring it down to an hour atleast because this backup is encroaching on our other scheduled jobs. So I was planning to do this
11
2239
by: RoB | last post by:
Hi all, I'm coming from the Informix world and I have a customer using DB2 8.2.3 for Linux on Red Hat Enterprise ES. The customer is performing filesystem backups of the containers etc every night but they are not shutting down the database server while doing this. I only assume that this most likelly would leave an inconsistant backup image as there is nothing assuring that the modified pages in the buffer pool get written to disk...
25
2825
by: doznot | last post by:
Let's say you want to use Moodle to teach an introductory class in PHP programming. Some of the students have little or no computer experience. In addition to background reading and topics-oriented assignments supplied by Moodle, you want to build an online text editor into the course, so students can type their PHP programs and HTML directly into files on the server, so they don't have to fight with NotePad on Windows PCs in a lab, and...
0
8231
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
8168
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
8672
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8614
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
8330
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,...
1
6107
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
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
4167
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.