473,748 Members | 2,617 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Archived log path directory

Ok, so these are the two pieces of information regarding the location
of archived logs during a rollforward recovery in a recoverable
database:

1. OVERFLOWLOGPATH configuration parameter can specify a location for
DB2 to find log files that are needed for rollforward operations.

2. The database configuration file parameter 'userexit' specifies
whether the database manager invokes a user exit program to retrieve log
files during rollforward recovery of databases.

So, it seems that the algorithm during a rollforward recovery is:

DB2 checks to see if at all, userexit parameter is enabled.
1. if userexit is enabled, DB2 checks the value of OVERFLOWLOGPATH
configuration parameter to find the location of archived logs. So, with
userexit enabled, if a valid value OVERFLOWLOGPATH is not provided, DB2
only checks the active log path directory for the archived logs needed
for rollforward recovery and will most probably fail (because userexit
will most probably have copied the logs to 'archive log path directory').

2. If userexit is not enabled, all the archived logs needed for
rollforward recovery must exist in the 'active log path directory'. In this
case (when userexit is not enabled), OVERFLOWLOGPATH will be ignored even
if it is provided.

I did not find it documented anywhere that DB2 actually invoked
userexit during rollforward recovery to find the location of 'archive log path
directory'. It seems that OVERFLOWLOGPATH is the sole parameter which
gives DB2 the information about the location of 'archive log path
directory'.

Is my understanding correct?

Also, during rollforward operations, does UDB 'copy' the logs from
'archive log path directory' to 'active log path directory' or does it
directly read the logs from the 'archive log path directory' itself? I know
that during a rollback or crash recovery operation, all the logs to be
processed by DB2 must be present in the 'active log path directory'.
So, is it the same for rollforward operations too?

TIA
Raquel.
Nov 12 '05 #1
1 4606
ra************* ***@yahoo.com (Raquel) wrote in message news:<9a******* *************** ***@posting.goo gle.com>...
Ok, so these are the two pieces of information regarding the location
of archived logs during a rollforward recovery in a recoverable
database:

1. OVERFLOWLOGPATH configuration parameter can specify a location for
DB2 to find log files that are needed for rollforward operations.

2. The database configuration file parameter 'userexit' specifies
whether the database manager invokes a user exit program to retrieve log
files during rollforward recovery of databases.

So, it seems that the algorithm during a rollforward recovery is:

DB2 checks to see if at all, userexit parameter is enabled.
1. if userexit is enabled, DB2 checks the value of OVERFLOWLOGPATH
configuration parameter to find the location of archived logs. So, with
userexit enabled, if a valid value OVERFLOWLOGPATH is not provided, DB2
only checks the active log path directory for the archived logs needed
for rollforward recovery and will most probably fail (because userexit
will most probably have copied the logs to 'archive log path directory').

2. If userexit is not enabled, all the archived logs needed for
rollforward recovery must exist in the 'active log path directory'. In this
case (when userexit is not enabled), OVERFLOWLOGPATH will be ignored even
if it is provided.


This is how I have understould it, and so far I have not found
anything peculiar about it. If userexit is enabled, the userexit
program is called whenever the database archives a log or if a
rollforward is invoked. Thus, when you write your userexit program you
have free hands to do whatever you like with the logfile. I my self
have a cfg file in /etc (where I keep the log archive path amongst
other things). Then the userexit program reads the cfg file whenever
it is invoked.
HTH
/Lennart
Nov 12 '05 #2

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

Similar topics

31
3924
by: John Roth | last post by:
I'm adding a thread for comments on Gerrit Holl's pre-pep, which can be found here: http://tinyurl.com/2578q Frankly, I like the idea. It's about time that all of the file and directory stuff in the os module got objectified properly (or at least with some semblance of OO propriety!) In the issues section:
1
53483
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then Directory.CreateDirectory(dirName) Label1.Text = "Directory created" Else
8
17488
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IOException: The directory name is invalid.
34
3262
by: Reinhold Birkenfeld | last post by:
Hi, the arguments in the previous thread were convincing enough, so I made the Path class inherit from str/unicode again. It still can be found in CVS: /python/nondist/sandbox/path/{path.py,test_path.py} One thing is still different, though: a Path instance won't compare to a regular string.
2
23383
by: Rob Cowie | last post by:
Hi, Given a string representing the path to a file, what is the best way to get at the filename? Does the OS module provide a function to parse the path? or is it acceptable to split the string using '/' as delimiters and get the last 'word'. The reason I'm not entirely happy with that method is that it is platform specific. I would prefer to use a built in method if possible. Cheers,
3
7964
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else do I need to do?
4
5525
by: madzambonis | last post by:
Here is the situation.... We have Primary Server A linked to Standby Server B via HADR. Primary Server A has recently installed LOGARCHMETH1 to archive logs and a 2nd homegrown script that compresses the archived logs once in the archive log directory. Standby Server B has our old script that moves logs from active to archive directories and then compresses them every 30 minutes.
13
2810
by: lawpoop | last post by:
Hello all - I have a two part question. First of all, I have a website under /home/user/www/. The index.php and all the other website pages are under /home/user/www/. For functions that are used in multiple files, I have php files under / home/user/www/functions/. These files simply have So, in index.php and other files, I have
7
1741
by: Daniel | last post by:
Hello, I'm writing some unit tests for my python software which uses packages. Here is the basic structure: mypackage __init__.py module1 __init__.py mod1.py
0
8996
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...
1
9333
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
9254
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8255
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6799
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
6078
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
4608
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3319
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
3
2217
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.