473,414 Members | 1,575 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,414 software developers and data experts.

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 "administration 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 5268
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.google.c om...
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 "administration 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 "administration 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
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...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
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...
4
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...
8
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...
0
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...
1
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...
0
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...
0
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...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
0
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...

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.