473,769 Members | 3,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UDB Questions

Hello!! Had some questions about UDB...

1. In the disaster recovery section, the manual states: "

"If your plan for disaster recovery is to recover the entire database
on another machine, you require at least one full database backup and
all the archived logs for the database. Even if you have a separate
backup image of every table space, you cannot use them to recover the
database.".

I don't quite appreciate this. Backup image of ever table space
*should* ensure recoverability of all the 'data' in the database. By
recovering all the tablespaces, I will not have recovered the meta-data
associated with the database (UDFs etc.) but at least all the user data.
However the manual however specifically negates it. Seems there is something
I am missing.

2. UDB manuals have frequent references to "administra tion notification
log file". What is this file and where is it located on Linux? How
often should it be browsed for system messages?

3. The manual states: "When considering active log space, it may be
better to have a larger number of smaller log files. For example, if there
are 2 very large log files and a transaction starts close to the end of
one log file, only half of the log space remains available." What does
it mean by 'only half of the log space remains available'?

4. The manual recommends: "If you are enabling an existing database for
rollforward recovery, change the number of primary logs to the sum of
the number of primary and secondary logs, plus 1.". What is the basis of
this recommendation? Can we not specify logsecond for recoverable
databases?

TIA
Raquel.
Nov 12 '05 #1
6 5285
Hi Raquel,
Tablespace backups are allowed only if the database is recoverable, which
means that they cannot run offline. Therefore, after a tablespace is
restored, a rollforward must always be executed. If you have backed up all
of your tablepaces but don't have any logs, there is no way you can recover
the database.
The administration notification file is a file called db2.nfy, and it's
located in the same directory where the db2diag.log resides, which is
<instance home directory>/sqllib/db2dump. Among other things, it records
messages coming from the Health Monitor. Because its generally much smaller
than db2diag.log, it's also much easier to browse for diagnostic info.
As for the number of logs to allocate, there are many school of thoughts
when it comes to choosing the best strategy. If your database is recoverable
and you're using a userexit to archive the logs, small logs may cause the
program to be called very often in case the database content changes
frequently. On the other side, having larger logs may cause problems during
a recovery if one of the logs is corrupted; therefore, the larger the log,
the larger the amount of data that is lost. Other considerations apply to
when a database is first accessed; with circular logging, the primary logs
are allocated when either the database is activated or when someone connects
to it. If the logs are large in size and their number is high, it may take
some time for DB2 to allocate all of them. The same is true for secondary
logs; when DB2 needs to allocate them, their size can play an important role
in determining how long it takes to allocate them. My personal choice if for
a small number of primary logs and a large number of secondary logs. As for
their size, I look at the workload.
Hope this helps.
Mauro.
"Raquel" <ra************ ****@yahoo.com> wrote in message
news:9a******** *************** ***@posting.goo gle.com...
Hello!! Had some questions about UDB...

1. In the disaster recovery section, the manual states: "

"If your plan for disaster recovery is to recover the entire database
on another machine, you require at least one full database backup and
all the archived logs for the database. Even if you have a separate
backup image of every table space, you cannot use them to recover the
database.".

I don't quite appreciate this. Backup image of ever table space
*should* ensure recoverability of all the 'data' in the database. By
recovering all the tablespaces, I will not have recovered the meta-data
associated with the database (UDFs etc.) but at least all the user data.
However the manual however specifically negates it. Seems there is something I am missing.

2. UDB manuals have frequent references to "administra tion notification
log file". What is this file and where is it located on Linux? How
often should it be browsed for system messages?

3. The manual states: "When considering active log space, it may be
better to have a larger number of smaller log files. For example, if there
are 2 very large log files and a transaction starts close to the end of
one log file, only half of the log space remains available." What does
it mean by 'only half of the log space remains available'?

4. The manual recommends: "If you are enabling an existing database for
rollforward recovery, change the number of primary logs to the sum of
the number of primary and secondary logs, plus 1.". What is the basis of
this recommendation? Can we not specify logsecond for recoverable
databases?

TIA
Raquel.

Nov 12 '05 #2
Raquel, an answer to your No. 1
The database in DB2 UDB LUW is a physical entity with its own config.
file and logs as well as some control files that are located in the
database path at creation. End directory ...../SQLnnnnn
As well at db create a unique seed number is generated.
All these are required to exist in the target system if you plan to
recover a db with only its tablespaces. This means that a reccovery
strategy based on tablespaces REQUIRES the target db to ecist.
When one or more tablespaces are recovered to a target db the recovery
process ALWAYS verifies the existing tablespaces in the target against
the list of tablespaces contained in the image. They must match.

Of course, if you recover from a full db backup, you can restore new as
everything is in the image. This is not the case in an image that
contains only one or more images of tablespaces backups.

UDB for LUW has a complete db, this is not like a DB2 for z/OS where the
DB2 system is basically a huge tablespace repository where tablespaces
can be "copied" between db2 sussystem.
HTH, Pierre.

Raquel wrote:
Hello!! Had some questions about UDB...

1. In the disaster recovery section, the manual states: "

"If your plan for disaster recovery is to recover the entire database
on another machine, you require at least one full database backup and
all the archived logs for the database. Even if you have a separate
backup image of every table space, you cannot use them to recover the
database.".

I don't quite appreciate this. Backup image of ever table space
*should* ensure recoverability of all the 'data' in the database. By
recovering all the tablespaces, I will not have recovered the meta-data
associated with the database (UDFs etc.) but at least all the user data.
However the manual however specifically negates it. Seems there is something
I am missing.

2. UDB manuals have frequent references to "administra tion notification
log file". What is this file and where is it located on Linux? How
often should it be browsed for system messages?

3. The manual states: "When considering active log space, it may be
better to have a larger number of smaller log files. For example, if there
are 2 very large log files and a transaction starts close to the end of
one log file, only half of the log space remains available." What does
it mean by 'only half of the log space remains available'?

4. The manual recommends: "If you are enabling an existing database for
rollforward recovery, change the number of primary logs to the sum of
the number of primary and secondary logs, plus 1.". What is the basis of
this recommendation? Can we not specify logsecond for recoverable
databases?

TIA
Raquel.


--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

Nov 12 '05 #3
Thanks Pierre. You definitely clear things up for me.

Raqauel.
Nov 12 '05 #4
Thanks Mauro. Your explanation was very helpful.

Raquel.
Nov 12 '05 #5
Mauro Cazzari wrote:
Tablespace backups are allowed only if the database is recoverable, which
means that they cannot run offline. Therefore, after a tablespace is
restored, a rollforward must always be executed. If you have backed up all
of your tablepaces but don't have any logs, there is no way you can recover
the database.


Just wanted to clarify... a recoverable database is a prerequisite for
tablespace backup/restore, but you can still perform both offline and
online backup/restore operations.

kdr
--
=============== =============== =============== =============== =========
Kelly D. Rodger IBM Canada
DB2 UDB Development Backup & Restore
=============== =============== =============== =============== =========

Nov 12 '05 #6
Yes. Both at the tablespace and db level.
Regards, Pierre.

Kelly D. Rodger wrote:
Mauro Cazzari wrote:
Tablespace backups are allowed only if the database is recoverable, which
means that they cannot run offline. Therefore, after a tablespace is
restored, a rollforward must always be executed. If you have backed up
all
of your tablepaces but don't have any logs, there is no way you can
recover
the database.

Just wanted to clarify... a recoverable database is a prerequisite for
tablespace backup/restore, but you can still perform both offline and
online backup/restore operations.

kdr


--
Pierre Saint-Jacques - Reply to: sesconsjunk at attglobaljunk dot com
Reconstruct address: Remove the two junk and replace at and dot by
their symbols.
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

Nov 12 '05 #7

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

Similar topics

0
4102
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for all companies between year 2000-2005 in my website http://www.geocities.com/allinterviewquestion/ So please have a look and make use of it.
0
4597
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
7226
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
4
2512
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for cross-posting. I am trying to build a "checklist", where a user can navigate to an ASP page on the intranet which shows a list of "questions" that the user can check off. I am trying to figure out how to do this so that it is scalable, but I am...
8
7984
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying to catch up again with Python. I am now appearing for Job Interviews these days and I am wondering if anybody of you appeared for a Python Interview. Can you please share the questions you were asked. That will be great help to me.
0
1500
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
1
1625
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
0
4510
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers7.html C# Interview Questions and Answers 6 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers-6.html C# Interview Questions and Answers 5...
0
3432
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions http://interviewdoor.com/technical/C-Interview-Questions.htm C# Interview Questions http://interviewdoor.com/technical/C-sharp-Interview-Questions.htm C++ Interview Questions http://interviewdoor.com/technical/C++-Interview-Questions.htm
0
2943
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions http://interviewdoor.com/technical/C-Interview-Questions.htm C# Interview Questions http://interviewdoor.com/technical/C-sharp-Interview-Questions.htm C++ Interview Questions http://interviewdoor.com/technical/C++-Interview-Questions.htm
0
9423
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
10211
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
10045
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
9994
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
9863
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
8870
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...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.