473,499 Members | 1,689 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....is 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 1504
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*******@intertrade.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....is 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
2394
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? ...
1
1787
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...
4
9448
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...
16
3802
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...
7
2447
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
2461
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...
1
1855
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...
11
2216
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...
25
2807
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...
0
7134
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
7180
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
7229
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
7395
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
5485
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,...
1
4921
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...
0
4609
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...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
311
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...

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.