I come from Oracle background. In Oracle, when one wants to do a point
in time
recovery, one can specify recover database until timestmap. Oracle's
database maps to a db2 subsystem, i.e., in Oracle database means
entire database, i.e.. all tablespaces (including indexes).
I see only recover tablespace and recover indexspace (or index)
commands in db2.
Therefore, one has to specify all the tablespaces and indexspaces and
recover them
to a spaecific rba (is that right).
I did not see a recover database command in db2. That can be quite
useful.
My db2 subsystem runs 24x7. Db2 provides a quiesce command to make
various tablespaces consistent to a point in time. Why do I need this
command, if database is 24x7 and I will be always backing up using
shrlevel change.
I am new to db2, so please pardon if I am asking some nnewbie
questions ...
Thanks. 5 3827
"Prem K Mehrotra" <pr**********@h otmail.com> wrote in message
news:43******** *************** ***@posting.goo gle.com... I come from Oracle background. In Oracle, when one wants to do a point in time recovery, one can specify recover database until timestmap. Oracle's database maps to a db2 subsystem, i.e., in Oracle database means entire database, i.e.. all tablespaces (including indexes).
I see only recover tablespace and recover indexspace (or index) commands in db2. Therefore, one has to specify all the tablespaces and indexspaces and recover them to a spaecific rba (is that right).
I did not see a recover database command in db2. That can be quite useful.
My db2 subsystem runs 24x7. Db2 provides a quiesce command to make various tablespaces consistent to a point in time. Why do I need this command, if database is 24x7 and I will be always backing up using shrlevel change.
I am new to db2, so please pardon if I am asking some nnewbie questions ...
Thanks.
When you speak about DB2 you ALWAYS need to specify what platform (OS) you
are on. You are obviously on OS/390 or z/OS, since DB2 for Linux, Unix, and
Windows allows backup and restore at the database level just like Oracle.
DB2 for OS/390 does not allow recovery (restore) at the sub-system level.
The reason for this has to do with the nature of the mainframe vs. smaller
platforms, where there is often one (or a few) production DB2 sub-system
that is shared by all applications. On Linux, Unix, and Windows platforms,
it is often the case that one application has it owns database server or at
least its own sub-system (database).
You do not have to specify RBA. You can just say "recover" and DB2 will
apply the last image copy and roll the logs the forward to the current time.
Recovering to an RBA is fairly unusual. Most people just "Recover" (to
current point in time) or recovery to a (image) copy.
Quiece has some other features such as taking a synchpoint on the log. This
makes it a bit quicker to recover if there are no changes to the database
(or few changes) between the time you do the quiece and the backup. As you
mentioned, it also helps if you need to recover to an RBA.
Mark:
Thanks a lot. Yes I am on OS/390. Is is correct that the primary
purpose
of quiesce is fast recovery and not data comsistency. Is quiesce like
a checkpoint in Oracle.
If my database is 24x7, I do not have to run quiesce command because
it seems to require shrlevel read.
Prem
"Prem K Mehrotra" <pr**********@h otmail.com> wrote in message
news:43******** *************** ***@posting.goo gle.com... Mark:
Thanks a lot. Yes I am on OS/390. Is is correct that the primary purpose of quiesce is fast recovery and not data comsistency. Is quiesce like a checkpoint in Oracle.
If my database is 24x7, I do not have to run quiesce command because it seems to require shrlevel read.
Prem
You don't have to issue a quiece. But it does write the changed pages from
the bufferpool to disk for the specified tablespace(s) and records the RBA
in the SYSCOPY catalog table. This can be an aid to faster recovery and data
consistency. It is recommended (but not required) that you run the quiece
before an image copy, even if it is sharelevel change.
I am not sure what you mean by "it seems to require sharelevel read." The
quiece command typically only takes one or two seconds (at most) to execute.
Mark:
After reading the doceument carefully, yes the command does not require
shrlevel reference, it seems to have same effect as shrlevel reference.
while quiesce is going on, one cannot do any updates, that's where I got the
impression of SHRLEVEL reference.
Thanks a lot for clarifying.
Prem
"Prem K Mehrotra" <pr**********@h otmail.com> wrote in message
news:43******** *************** ***@posting.goo gle.com... Mark:
After reading the doceument carefully, yes the command does not require shrlevel reference, it seems to have same effect as shrlevel reference.
while quiesce is going on, one cannot do any updates, that's where I got
the impression of SHRLEVEL reference.
Thanks a lot for clarifying.
Prem
It runs very quickly, so I would not worry about it unless you have
extremely high transaction rates. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dmitri |
last post by:
Hi there,
Does anybody know what is DB2 UDB admin API equivalent to "db2 terminate"
command?
Some background:
I'm developing monitoring application(http://chuzhoi_files.tripod.com). I
want to be able to specify a node number during attachment, so I'm using
sqlesetc (API for "set client attach_dbpartitionum" command). If user
specifies an incorrect node number, DB2 will fail with something like:
|
by: LazyAnt |
last post by:
Does DB2 process "ALL" subquery by "nested iteration" strategy, or
using its own special algorithm?
For example, assume r(A, B, C) and s(D, E, F) are two relations,
consider the following query:
Q1: select r.*
from r
where r.A> 5 and
r.C > all (select s.D
from s
|
by: Patrick A |
last post by:
All -
I have the following in the Field row of a column in a query that runs
fine against a local table:
MSA: InStr(!!,!)
I'm now trying to run the query against a linked DB2 table. I get a
"Connection Failed" error.
|
by: Ingrid |
last post by:
Hola a todos
Tengo instalado db2 udb wse en su pc y necesito conectar a varios usuarios
utilizando el administration client, logro hacer la coneccion pero el
usuario administrador en forma remota no puede crear base de datos le da el
siguiente error:
SQL22223N La instancia "DB2" no existe en el sistema principal
"srv-bd".
|
by: wxqun |
last post by:
I'm try tuning a SELECT statement which is used by a Cognos cube on a
DB2 V7.2 +FP13. After I did the tuning, the "dynexpln" shows the
"total cost" is down to 8214567 from 37345265, also I try to run the
SQL in the cmd line, it now only took several minutes to return about
50M rows instead of +10 hours.
The cube is re-built after the tuning, and I could see the same SQL
running by "get snapshot for application.." , also the "list...
| |
by: jyoti202 |
last post by:
Hi,
Need help for this as i have been looking for it but could not get any results.
We are using java as front end and DB2 as backend, i m getting the exception while executing a particular query with following error description:
DB2 SQL error: SQLCODE: -901, SQLSTATE: 58004, SQLERRMC: sqlno_itr_plan::next :rc( 0)
SQLCODE: -901 this error code says "Non severe System error"
This query was working fine till...
|
by: Rahul B |
last post by:
Hi,
When i do a "db2 list applications", i get the required applications
with their ip addresses.
However, some of the application Ids are ip addresses while some
application Ids are arbitrary(like GA500A2B.K105.014AC7050331) and of
the form "GA500%'.
Can somebody explain what are these indifferent application ids?
|
by: bswanstrom |
last post by:
Hi there, trying to execute a db2 sql statement from a command line from UNIX. Here is the command I'm running
db2 export to /work/ftp/lt/sku_insert.csv of del select digits'('UPC_NO')', UPC, ITEM_DESC_SHORT, VENDOR_NO, SHOES, VENDOR_PID, VENDOR_PID_DESC, WOMENS, DEPT_NO, SPACE,SPACE1, VENDOR_COLOR_DESC, SIZE_DESC_SHOES, SPACE2, CLASS_NO, SPACE3, SPACE4, NRF_COLOR_DESC, VENDOR_SIZE_DESC, SPACE5, SPACE6, SPACE7, SPACE8, SPACE9, SPACE10,...
|
by: Kozy |
last post by:
Hello everyone,
I have a problem with federation between Oracle and DB2. Once every few weeks my DB2 federation request "dies". What happens is DB2 thinks it is still geting information from oracle, but on Oracle there is nothing executing. This connection then stays active for undefined amount of time ( 5 days was the last accurance).
Killing the process doesnt work, all I can do to remove it is to restart the server.
Db2stop force...
|
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...
|
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...
| |
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,...
|
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
| |