473,406 Members | 2,620 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,406 software developers and data experts.

Looking for listing of MQT reason codes...

BD
Hi, all.

I'm trying to implement a REFRESH IMMEDIATE MQT to help with
performance of a particularly sluggish query.

I cannot create it with REFRESH IMMEDIATE, because of reason code
"10", whatever that is. I am able to implement it with REFRESH
DEFERRED, but that's not really suitable.

I need to get a handle on these reason codes.

I've checked the Master Index in the db2 docs, but have thus far
struck out.

I've Googled, and see explanations of various MQT failure reason
codes, but not "10".

Can anyone point me to a listing of these codes and their meanings?
I'm running 8.2 on LUW. Also needs to work on 8 for z/OS (cross-
platform development-yay).

Thanks for any pointers!

BD
Apr 9 '08 #1
2 2560
On Apr 9, 7:22 pm, BD <robert.d...@gmail.comwrote:
Hi, all.

I'm trying to implement a REFRESH IMMEDIATE MQT to help with
performance of a particularly sluggish query.

I cannot create it with REFRESH IMMEDIATE, because of reason code
"10", whatever that is. I am able to implement it with REFRESH
DEFERRED, but that's not really suitable.

I need to get a handle on these reason codes.

I've checked the Master Index in the db2 docs, but have thus far
struck out.

I've Googled, and see explanations of various MQT failure reason
codes, but not "10".

Can anyone point me to a listing of these codes and their meanings?
I'm running 8.2 on LUW. Also needs to work on 8 for z/OS (cross-
platform development-yay).

Thanks for any pointers!

BD
The easiest way to look for info regarding error messages is to ask
db2 as in:

[db2inst1@wb-01 ~]$ db2 "? SQL20058N"

SQL20058N The fullselect specified for the materialized query
table "<table-name >" is not valid. Reason code =
"<reason-code>".

Explanation:
[...]
10 When REFRESH IMMEDIATE is specified and the FROM clause
references more than one table, only an inner join, without using
the explicit INNER JOIN syntax, is supported.
[...]
User Response:

Change the fullselect in the CREATE TABLE statement so that it
conforms to the rules based on the materialized query table
options and whether or not the materialized query table is
replicated.

The action corresponding to the reason code is:
[...]
10 Create the materialized query table as REFRESH DEFERRED, or
use an inner join without the explicit INNER JOIN syntax.
[...]

Regarding zos I don't know

/Lennart
Apr 9 '08 #2
BD
The easiest way to look for info regarding error messages is to ask
db2 as in:

[db2inst1@wb-01 ~]$ db2 "? SQL20058N"
Very helpful, thanks!
Apr 9 '08 #3

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

Similar topics

1
by: Beringer | last post by:
Hello, I am currently looking for databases that contain available prescription medications and diagnosis codes (i.e. ICD9 medical diagnosis codes) that have been created using SQL. Anybody...
5
by: - CT - | last post by:
Is it possible to use javascript to get a list of files from the current directory where the html page that contains the javascript is being called? The reason is that I want to find all ".jpg"...
2
by: Sri | last post by:
where can we find explanation/description for reason codes ? Sri
4
by: Thomas Christmann | last post by:
Hi! First let me apologize for asking this question when there are so many answers to it on Google, but most of them are really contradicting, and making what I want to do very performant is...
2
by: Tim_Mac | last post by:
this could be seen as petty... but i noticed if you browse a folder on a .net 2 virtual directory, you get the directory listing. but the font styles are set to 8 point verdana which is...
11
by: Claude Henchoz | last post by:
Hi Is there any way of listing partitions on a (win32) computer without using WMI? Cheers, Claude
9
by: shorti | last post by:
db2 V8.2 I have been looking for a good way to log the 'reason code' when we hit an sqlcode that uses them. From what I can tell the reason code is stored in sqlca.sqlerrmc. But, there seems...
8
by: PW | last post by:
Hi, There is code in Alison Balter's excellant "Mastering Access 2003" to create a list of error codes and descriptions but it only generates error messages 3 through 94. Is there a website...
4
by: techusky | last post by:
I have a *very* simple script written that displays the directory listing of the current working directory, but I am having some difficulty when I try to change folders. Basically, I have my $dir...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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...

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.