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

Regarding Online Backup logs

(Using UDB 7.2 FP11). Given this output from LIST BACKUP HISTORY FOR
MYDB: (It's an online backup image)
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------ --------------
B D 20040217102712001 N D S0000194.LOG S0000196.LOG
----------------------------------------------------------------------------
and:
MYDB:
First active log file = S0000194.LOG


Does that mean I have to copy logs S0000194.LOG - S0000196.LOG in
addition to the online backup image *even if* these logs are marked
'still in use'? Wouldn't I run into log-consistency problems?

Or must I repeatedly issue the command ARCHIVE LOG FOR DB MYDB until
'First active log file' > S0000196.LOG and then copy the logs?

Thanks for your advice.
Nov 12 '05 #1
3 3336
Almund Sebi <ny***@gmx.net> wrote:
(Using UDB 7.2 FP11). Given this output from LIST BACKUP HISTORY FOR
MYDB: (It's an online backup image)
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------ --------------
B D 20040217102712001 N D S0000194.LOG S0000196.LOG
----------------------------------------------------------------------------


and:
MYDB:
First active log file = S0000194.LOG


Does that mean I have to copy logs S0000194.LOG - S0000196.LOG in
addition to the online backup image *even if* these logs are marked
'still in use'? Wouldn't I run into log-consistency problems?


"Still in use" in this context means that the logs are still required in
case you roll back one of your open transactions. You can copy the log,
but don't delete it from the active log path.

dave
Nov 12 '05 #2
I gather from "I have to copy" that you're not using the user exit.
You should issue the following after your online backup terminates:
F:\SQLLIB\BIN>db2 ? archive log
ARCHIVE LOG FOR DATABASE alias-bdd [USER id-util [USING mot-de-passe]]
[Clause-ON-NumPartitionBdd]

Clause-ON-NumPartitionBdd :
ON {{DBPARTITIONNUM | DBPARTITIONNUMS} (numéro-partition-bdd
[TO numéro-partition-bdd] , ... ) | ALL DBPARTITIONNUMS [EXCEPT
{DBPARTITIONNUM | DBPARTITIONNUMS} (numéro-partition-bdd
[TO numéro-partition-bdd] , ...)]}

Substitute the French for your object names. The command will cut the "196"
log to make it full. You will still have to check if it is still part of
the active log path before you can copy it to archive.
If you were using the user exit, this would happen automatically for you,
wether the log was active or not.
The difference is: You can't copy the log as it is locked to db2 because it
is active. DB2 user exit can copy the active log as it is locked to itself
and it can copy the log.

HTH, Pierre.
"Almund Sebi" <ny***@gmx.net> a écrit dans le message de
news:94**************************@posting.google.c om...
(Using UDB 7.2 FP11). Given this output from LIST BACKUP HISTORY FOR
MYDB: (It's an online backup image)
Op Obj Timestamp+Sequence Type Dev Earliest Log Current Log Backup ID
-- --- ------------------ ---- --- ------------ ------------ -------------

-
B D 20040217102712001 N D S0000194.LOG S0000196.LOG


--------------------------------------------------------------------------

--
and:
MYDB:
First active log file = S0000194.LOG


Does that mean I have to copy logs S0000194.LOG - S0000196.LOG in
addition to the online backup image *even if* these logs are marked
'still in use'? Wouldn't I run into log-consistency problems?

Or must I repeatedly issue the command ARCHIVE LOG FOR DB MYDB until
'First active log file' > S0000196.LOG and then copy the logs?

Thanks for your advice.


Nov 12 '05 #3
Thank you for your insights.
I decided that I'll write a User Exit program, as it's much simpler
than I thought at first glance.
Nov 12 '05 #4

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

Similar topics

1
by: Christos Kalantzis | last post by:
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...
4
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...
2
by: Raghava | last post by:
hi all, i was working on DB2 and came across an issue. i.e. can a tablespace be rollforwarded to POINT-IN-TIME? the scenario is as follows: i created a data base and a tablespace in it. i have...
5
by: Gladiator | last post by:
Hai..... I have a database............ i took an online backup for tht..... After tht mistakenly i dropped the database.......... now i dont have the logs also....... now after i restore the...
3
by: Konstantin Andreev | last post by:
Hello, everybody. I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning Visually with Examples", but still unable to answer this simple...
10
by: Konstantin Andreev | last post by:
Hello. Some time ago I asked in this conference, - How to use an ONLINE BACKUP to restore database onto another system? - but got no answers. Therefore I can conclude it is not possible. But......
4
by: aj | last post by:
DB2 LUW v8.2 FP 14 RHAS 2.1 I have a DB2 online DB backup that was done w/ the INCLUDE LOGS option. I am interested in restoring that backup, and rolling forward ONLY the logs contained in the...
5
by: Konstantin Andreev | last post by:
Hello, all. I can't figure out <subjectfrom documentation. I had configured LOGARCHMETH1 = DISK:/bak/logs so all full log files are copied *out* of the active log path. Let I issue | #...
2
by: alex250374 | last post by:
Hi all, db2 9.1 fixpak 0 aix 5.3 I have a big problem every time I start an online backup with include logs via veritas comes out an error!!! The db2diag shows:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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.