473,508 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tablespace rollforward condition

Hello,

I have an oddity on a production database. I get the following from
the DB CFG :

Backup pending = NO

Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO

but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????

How can I find out which tablespace is in conflict?

Mairhtin O'Feannag

aka mairhtin at mairhtin dot com

Jan 30 '07 #1
6 6426
On Jan 30, 11:10 pm, "morch" <f...@mairhtin.comwrote:
Hello,

I have an oddity on a production database. I get the following from
the DB CFG :

Backup pending = NO

Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO

but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????

How can I find out which tablespace is in conflict?

Mairhtin O'Feannag

aka mairhtin at mairhtin dot com
Hi,

Kindly ensure whether your SYSCAT tablespace is in Consistent state..

it's
vj-dba

Feb 1 '07 #2
All tablespaces are state 0. Including syscat :

=db2 list tablespaces show detail | grep State
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
State = 0x0000
On Feb 1, 3:43 am, vijay...@gmail.com wrote:
On Jan 30, 11:10 pm, "morch" <f...@mairhtin.comwrote:
Hello,
I have an oddity on a production database. I get the following from
the DB CFG :
Backup pending = NO
Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO
but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????
How can I find out which tablespace is in conflict?
Mairhtin O'Feannag
aka mairhtin at mairhtin dot com

Hi,

Kindly ensure whether your SYSCAT tablespace is in Consistent state..

it's
vj-dba

Feb 1 '07 #3
Anyone? Anyone?

Mairhtin
On Jan 30, 10:10 am, "morch" <f...@mairhtin.comwrote:
Hello,

I have an oddity on a production database. I get the following from
the DB CFG :

Backup pending = NO

Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO

but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????

How can I find out which tablespace is in conflict?

Mairhtin O'Feannag

aka mairhtin at mairhtin dot com

Feb 13 '07 #4
C'MON... SOMEONE must have an answer to this. :) Please!!

Mairhtin

On Jan 30, 10:10 am, "morch" <f...@mairhtin.comwrote:
Hello,

I have an oddity on a production database. I get the following from
the DB CFG :

Backup pending = NO

Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO

but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????

How can I find out which tablespace is in conflict?

Mairhtin O'Feannag

aka mairhtin at mairhtin dot com

Feb 16 '07 #5
On 16 Feb., 23:28, "morch" <f...@mairhtin.comwrote:
C'MON... SOMEONE must have an answer to this. :) Please!!

Mairhtin

On Jan 30, 10:10 am, "morch" <f...@mairhtin.comwrote:
Hello,
I have an oddity on a production database. I get the following from
the DB CFG :
Backup pending = NO
Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO
but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????
How can I find out which tablespace is in conflict?
Mairhtin O'Feannag
aka mairhtin at mairhtin dot com
Weird - a pragmatic method to test it would be:

Just pick by random a table from each tablespace and do a "select *
with fetch first 1 rows only". If all selects work well then db2 cfg
lies - if not you'll know which tablespace has a problem. You can
generate the necessary select with a sql query like this:
with temp1 as
(SELECT max(rtrim(tabschema) concat '.' concat rtrim(TABNAME)) as
TABNAME,TBSPACEID
FROM SYSCAT.TABLES where tbspaceid 0
group by tbspaceid)
select 'SELECT * FROM ' concat tabname concat ' FETCH FIRST 1 ROWS
ONLY;' as SELECT_STMT from temp1

This method will not cover tablespaces where only indexes are stored
in. In this case you will need to modify the selects in such a way
that an index access will happen

HTH
Joachim

Feb 19 '07 #6
On Feb 19, 10:21 am, "Joachim Klassen" <JoKlas...@email.comwrote:
On 16 Feb., 23:28, "morch" <f...@mairhtin.comwrote:
C'MON... SOMEONE must have an answer to this. :) Please!!
Mairhtin
On Jan 30, 10:10 am, "morch" <f...@mairhtin.comwrote:
Hello,
I have an oddity on a production database. I get the following from
the DB CFG :
Backup pending = NO
Database is consistent = NO
Rollforward pending = TABLESPACE
Restore pending = NO
but no tablespaces are in a state other than 0 when I do a list
tablespaces show detail. ?????
How can I find out which tablespace is in conflict?
Mairhtin O'Feannag
aka mairhtin at mairhtin dot com

Weird - a pragmatic method to test it would be:

Just pick by random a table from each tablespace and do a "select *
with fetch first 1 rows only". If all selects work well then db2 cfg
lies - if not you'll know which tablespace has a problem. You can
generate the necessary select with a sql query like this:
with temp1 as
(SELECT max(rtrim(tabschema) concat '.' concat rtrim(TABNAME)) as
TABNAME,TBSPACEID
FROM SYSCAT.TABLES where tbspaceid 0
group by tbspaceid)
select 'SELECT * FROM ' concat tabname concat ' FETCH FIRST 1 ROWS
ONLY;' as SELECT_STMT from temp1

This method will not cover tablespaces where only indexes are stored
in. In this case you will need to modify the selects in such a way
that an index access will happen

HTH
Joachim
http://www-1.ibm.com/support/docview...=utf-8&lang=en

Looks like a known bug. I have a couple production databases showing
the same thing.

-T

Feb 19 '07 #7

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

Similar topics

1
8140
by: APK | last post by:
Hi, I am trying to restore a tablespace from a tablespace backup image using following command. db2 " restore db G2P01 tablespace ( G2P01TB37 ) online from /db2_backups taken at 20040213070850...
4
10261
by: Raquel | last post by:
How are the following two commands different as far as the 'end result' of the restores is concerned: 1. db2 RESTORE DB mydb 2. db2 RESTORE DB mydb TABLESPACE In other words, in the above...
0
1475
by: Lan W via DBMonster.com | last post by:
I tried to restore DB2 UDB two databases into two different instances on AIX server. the raw devices size of rShortSpace0 and rShortSpace1 on the two instances are the same. # lsvg -l datavg...
6
3659
by: Raj | last post by:
How can we do an online restore of a tablespace using the incremental backup's? we are on a partitioned database... Also, how could we use backup copy made by the load (using the copy to option...
4
4627
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
2
2749
by: Raghava | last post by:
hi all, i was working on DB2 and came across an issue. i.e. can a tablespace be rollforwarded to POINT-IN-TIME? the scenario is as follows: i created a data base and a tablespace in it. i have...
8
2463
by: Raj | last post by:
-Is it possible to recover a tablespace just from a full offline backup and offline incremental backup? If not possible -Can we recover tablespace from Full backup , Wednesdays incremental backup...
1
4524
by: Sam Durai | last post by:
Env: DB2 v9.1 Server / Win XP. DB is enabled for Archival Logging. Was playing around with rebuild tablespace feature. My database 'CARD' has tablespace named t1,t2,t3. Taken couple of...
1
2573
by: NewbieDB2DBA | last post by:
I'm running DB2 UDB v8.2 on Windows 2003 SP2. How do I get a tablespace out of Roll Forward in Progress state?! I've tried everything I can think of, but I'm extremely new to DB2 (more...
0
7225
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
7123
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
7324
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
7495
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...
0
5627
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,...
1
5052
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...
0
4707
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...
0
3193
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...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.