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

how to detect unavailable tables?

We recently identified a table on a primary HADR database that had been
loaded with the parm "nonrecoverable" thus the table was unavailable to
the HADR standby copy. The table was identified by the diag log message
ADM5571. After we resolved the problem (resync'ing the HADR standby) we
have been investigating the best way to report on any tables that may
become "unavailable" to the HADR standby database. The main reason for
the concern is that we have a lot of tables in one database that have
been defined as not logged initially and we need to verify that there
HADR standby copy for these tables is available.

There does not appear to be any one command that verifies the
availability of the HADR standby tables. The only way to regenerate the
ADM5571 message is to reorg the HADR primary tables and then review the
diag log on the standby, searching for the ADM5571 msg.

Is there a way to identify unavailable tables on the HADR standby
database without having to failover or reorg the primary tables?

1) we cannot use db2look as it don't record the ALTERs with NLI and we have many tables which are altered after some time of creation.
2) we are on v9.1 aix 5.3
so newly (v9.5fp4) introduced para BLOCKNONLOGGED is not helpful.

-TAC
Jun 23 '09 #1
1 4108
vijay2082
112 100+
Probably you can create a script as below and run the desired schema.

db2 -x "select 'load query table
'||ltrim(rtrim(tabschema))||'.'||ltrim(rtrim(tabna me))|| ' ;' from
syscat.tables where TYPE='T' and tabschema='DB2ADMIN' with ur" >
chk_tbl.sql

db2 -tvf chk_tbl.sql -z out_tbl.txt


Look for output like :

load query table DB2ADMIN.MYTABLE1
Tablestate:
Unavailable


Cheers, Vijay
Aug 20 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Motherchucker | last post by:
I'm running FreeBSD and trying to install mod_php4-4.3.3 from an updated ports tree. When it tries to fetch libtool-1.4.3.tar.gz, I get the following output and it eventually fails. I ended up...
4
by: vulcaned | last post by:
Hi All, Hopefully I explain this well........ In Access97 I have a form which has a tab control on it, each tab has a sub-form which is bound to its appropriate table(I'll call them 'Detail'...
9
by: Steve Buster | last post by:
All right, I have read every forum, newsgroup etc about this issue and no one seems to know how to fix it. I am getting a "Server Application Unavailable" exception running my .NET 1.1...
7
by: who be dat? | last post by:
I need some help here. I'm creating a list on a page where the list is created from a dataset with two tables linked with a datarelation. The first table is a list of groups while the second...
2
by: eBob.com | last post by:
I've got the basics of an XML ini file working. I.E. I can stash away and retrieve user preferences. (Code below.) But how do I handle a new preference? Say I have A and B. And then I invent...
5
by: phillip.s.powell | last post by:
$sql = "SELECT IF((SHOW TABLES LIKE '$subselectTableName'), count(*), NULL) AS numRows FROM $subselectTableName"; I am trying to write a SQL statement that will tell me if a table exists or not,...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
8
by: BJ | last post by:
Problem: How can I code up a client side process to detect if the network is available? Synopsis: I am writing ASP.NET input forms for a Panasonic Tuff book. The users will be walking around...
2
by: Yisehaq | last post by:
hello Everyone I am working on a CD which contains data to be explored usingOLAP tools. (Pivot tables) I have made it an autorun and the pages comes and using pivot tables component one can...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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
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.