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 6 6440
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
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
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
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
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(tabsc hema) concat '.' concat rtrim(TABNAME)) as
TABNAME,TBSPACE ID
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
On Feb 19, 10:21 am, "Joachim Klassen" <JoKlas...@emai l.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(tabsc hema) concat '.' concat rtrim(TABNAME)) as
TABNAME,TBSPACE ID
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 ".
db2 " rollforward database G2P01 to 2004-02-13-07.08.50.000000 and
stop tablespace (G2P01TB37) online "
|
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 case, what is the difference between
'database restore (performed in point 1 above) Vs the 'tablespace
restore' (performed in point 2 above).
|
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
datavg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
db2templv jfs 52 52 1 open/syncd ...
|
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 in load) to revover the tablespace?
Thanks,
Raj
|
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
- the tablespace is backed up on the primary system
- tables are created in the new tablespace and data is inserted (and a
couple of logs are...
| |
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 enabled archival logging (enabled userexit and logretain) and
changed log path to a different location.
as the log path and logging method was...
|
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 (logs before wednesday are lost) to a point in time on Friday
Thanks,
Raj
|
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 individual tablespace backup as below
C:\dir1>db2 "backup db card tablespace(syscatspace,userspace1,t1)"
Backup successful. The timestamp for this backup...
|
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
experience w/MS SQL 2000) and am finding that DB2 doesn't seem to be
as user friendly as MS SQL (or is that just me?!). I figure this is
progress...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
| |