473,903 Members | 5,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is there a recover "db2 subsystem" command in DB2 for OS/390 ..?

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.
Nov 12 '05 #1
5 3834
"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.
Nov 12 '05 #2
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
Nov 12 '05 #3
"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.
Nov 12 '05 #4
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
Nov 12 '05 #5
"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.
Nov 12 '05 #6

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

Similar topics

6
4407
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:
1
7362
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
6
7532
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.
2
2940
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".
0
1693
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...
1
11240
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...
4
2440
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?
1
8007
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,...
1
2342
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...
0
10003
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...
0
9851
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
10882
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...
0
7213
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
5897
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...
0
6099
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4732
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
2
4312
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3327
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.