473,583 Members | 3,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Relationship between recv_hist_reten tn and archive log files

Hi. I was just wondering if someone could help me understand the
relationship between the recv_hist_reten tion value and archive logs
(and pruning of history file).

My understanding is that the history file will be automatically pruned
at the number of days specified in the recv_hist_reten tn parameter.
First of all, is that correct? Secondly, does the archive logs, that
are older than the value in recv_hist_reten tn value, also get deleted
automatically. Kind of like "prune history xxxxxxxxxx and delete".

Thanks in advance,

Kush

Oct 12 '06 #1
3 3453
Right, the file gets pruned of entries older than the number of days
specified, but...
NUM_DB_BACKUPS controls also what gets PRUNED. No entry that refers to logs
and backups part of the value (say 5 which makes the restore set) will be
deleted if older than the prune day value.
The following Google search woll help you: db2 prune and delete

ASFAIK, the actual backup images do not get deleted in V8.2.
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Kush" <ra*****@ca.ibm .coma écrit dans le message de news:
11************* *********@i3g20 00...legro ups.com...
Hi. I was just wondering if someone could help me understand the
relationship between the recv_hist_reten tion value and archive logs
(and pruning of history file).

My understanding is that the history file will be automatically pruned
at the number of days specified in the recv_hist_reten tn parameter.
First of all, is that correct? Secondly, does the archive logs, that
are older than the value in recv_hist_reten tn value, also get deleted
automatically. Kind of like "prune history xxxxxxxxxx and delete".

Thanks in advance,

Kush
Oct 12 '06 #2
If you are using Automatic backups, the backups greater than the
NUM_DB_BACKUPS are automatically deleted if they are on disk.

The logs are not so elegantly handled. A "PRUNE HISTORY xxxxxx AND
DELETE" is required to have DB2 delete old archive logs.

In V9, I have a query to generate the PRUNE statement using the new
sysibmadm.db_hi story view. The xxxxxx timestamp is:
select min(start_time) as minbkup
from sysibmadm.db_hi story
where operation = 'B'
and operationtype in ('F','N')

This subquery is wrapped in a larger query that formats the command.

Dale McInnis (IBM) unofficially mentioned that they were
re-architecting this process in a future version in an IDGUG
presentation.

Norm

Pierre Saint-Jacques wrote:
Right, the file gets pruned of entries older than the number of days
specified, but...
NUM_DB_BACKUPS controls also what gets PRUNED. No entry that refers to logs
and backups part of the value (say 5 which makes the restore set) will be
deleted if older than the prune day value.
The following Google search woll help you: db2 prune and delete

ASFAIK, the actual backup images do not get deleted in V8.2.
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Kush" <ra*****@ca.ibm .coma écrit dans le message de news:
11************* *********@i3g20 00...legro ups.com...
Hi. I was just wondering if someone could help me understand the
relationship between the recv_hist_reten tion value and archive logs
(and pruning of history file).

My understanding is that the history file will be automatically pruned
at the number of days specified in the recv_hist_reten tn parameter.
First of all, is that correct? Secondly, does the archive logs, that
are older than the value in recv_hist_reten tn value, also get deleted
automatically. Kind of like "prune history xxxxxxxxxx and delete".

Thanks in advance,

Kush
Oct 13 '06 #3
Thanks guys. This answers my question basically that I DO need "Prune
History xxxxx and DELETE" or "Prune Logifile xxxxx " . Thanks for your
answers.

Kush
Norm wrote:
If you are using Automatic backups, the backups greater than the
NUM_DB_BACKUPS are automatically deleted if they are on disk.

The logs are not so elegantly handled. A "PRUNE HISTORY xxxxxx AND
DELETE" is required to have DB2 delete old archive logs.

In V9, I have a query to generate the PRUNE statement using the new
sysibmadm.db_hi story view. The xxxxxx timestamp is:
select min(start_time) as minbkup
from sysibmadm.db_hi story
where operation = 'B'
and operationtype in ('F','N')

This subquery is wrapped in a larger query that formats the command.

Dale McInnis (IBM) unofficially mentioned that they were
re-architecting this process in a future version in an IDGUG
presentation.

Norm

Pierre Saint-Jacques wrote:
Right, the file gets pruned of entries older than the number of days
specified, but...
NUM_DB_BACKUPS controls also what gets PRUNED. No entry that refers tologs
and backups part of the value (say 5 which makes the restore set) will be
deleted if older than the prune day value.
The following Google search woll help you: db2 prune and delete

ASFAIK, the actual backup images do not get deleted in V8.2.
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Kush" <ra*****@ca.ibm .coma écrit dans le message de news:
11************* *********@i3g20 00...legro ups.com...
Hi. I was just wondering if someone could help me understand the
relationship between the recv_hist_reten tion value and archive logs
(and pruning of history file).
>
My understanding is that the history file will be automatically pruned
at the number of days specified in the recv_hist_reten tn parameter.
First of all, is that correct? Secondly, does the archive logs, that
are older than the value in recv_hist_reten tn value, also get deleted
automatically. Kind of like "prune history xxxxxxxxxx and delete".
>
Thanks in advance,
>
Kush
>
Oct 13 '06 #4

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

Similar topics

1
10344
by: Aladdin | last post by:
I am using the java.util.zip package to create zip files. I can create a new archive and add files to it without any trouble. But if I already have a zip file created, how do I add a new file to the archive without impacting the existing files? I looked through the APIs with no luck. I would rather avoid extracting all the files and...
43
2483
by: Dan Perl | last post by:
Here is a python feature that I would like: to be able to import modules from an archive like the jar files in Java. Maybe a regular tar file? Maybe a python specific file type, let's call it a 'par' file? It would be useful in packaging an python library. Sure, there's always the python packages, but a single file instead of a whole...
1
3446
by: DB2 Convert | last post by:
Hi, A few points to confirm as I am still new with DB2. 1. What will happen if archive logging is used, however there is no userexit or manual process to move those online archived logs to another directory. At this moment my LOGPRIMARY is set to 3. Will the logging hang? 2. Does LOGSECOND apply to circular logging only? If if use...
6
7792
by: JezB | last post by:
From a windows application, I want to provide an "archive" facility which will scan a specific directory and put specific files into some single "Archive file", a bit like a zip-file I guess, but more windows standard. Then I want to provide a function "Import from Archive" which will accept the name of such an archive file, and be able to...
1
2153
by: Damjan | last post by:
I am looking for a way to change a file that is inside a zip archive, in python of course. The thing is, I'm doing a CGI script that accepts a zip file (an OpenOffice document), I need to make some transformations to one of the files in the ZIP archive, but not touch any of the other files in it, and then send the result back. I've made...
7
1739
by: Enigma Curry | last post by:
I need to store a large number of files in an archive. From Python, I need to be able to create an archive, put files into it, modify files that are already in it, and delete files already in it. The easy solution would be to use a zip file or a tar file. Python has good standard modules for accessing those types. However, I would tend to...
1
2070
by: Piet | last post by:
I've been trying to use PCLzip to extract uploaded archives with the following code: $archive = new PclZip('temp/temp.zip'); if ($archive->extract(PCLZIP_OPT_PATH, 'temp/') == 0) { die("Error : ".$archive->errorInfo(true)); } It doesn't report an error, but the files don't show up. Attributes are 777 on the temp dir. If I list the...
34
5327
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File "<pyshell#10>", line 1, in <module> os.startfile("C:\Documents and Settings\Alex\My Documents\My
3
5173
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
7894
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...
0
7821
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...
1
7929
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...
0
8190
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6577
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5697
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...
0
3814
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3841
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2328
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

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.