Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Re: MQTs under ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 8791 of 9231
Post > Topic >>

Re: MQTs under z/OS - how to get IMMEDIATE REFRESH functionality

by BD <robert.drea@[EMAIL PROTECTED] > Apr 25, 2008 at 11:44 AM

> To the best of my knowledge REFRESH IMMEDIATE is not sup****ted in DB2
> for zOS.

This is my understanding as well - what I'm trying to establish is a
mechanism of maintaining an MQT with some assurance that updates to it
will remain closely tied with updates to its source tables. I'm okay
with relying on triggers and stored procs, but have not (for example)
had success in coding a stored proc which calls a 'refresh table'
statement, even though it's mentioned in the z/OS SQL guide as a
sup****ted statement for a stored proc.

I recognize that I cannot initiate a REFRESH TABLE from within a
trigger directly - I've read in the SQL dox about the dozen-or-so
valid statements for triggers.

I believe I should be able to code a stored proc to do it, but the
following proc does not compile:

CREATE PROCEDURE MYSCHEMA.MQTREFRESH ()
LANGUAGE SQL
BEGIN
REFRESH TABLE MQT1;
END

It returns an 'unexpected token "REFRESH TABLE"' message, expecting a
token of "SPACE"

If I schema-qualify the MQT name, returns an "unexpected token
MQT1...following MYSCHEMA." message.

Please don't misunderstand - I'm not looking for help coding a stored
proc (I recognize I'm not particularly experienced with them, either).
I'm simply trying to understand how, under z/OS, do DBAs who want the
IMMEDIATE REFRESH functionality of an MQT, get that kind of
functionality? If I want an MQT with some assurance that updates to it
will occur as closely as possible in time to the updates on the source
tables, what's the best strategy, in the absence of an IMMEDIATE
REFRESH MQT?

Do people build tables manually, and rely on manually-coded triggers,
somehow 'emulating' the immediate functionality?

Thanks kindly for the response...

BD
 




 4 Posts in Topic:
MQTs under z/OS - how to get IMMEDIATE REFRESH functionality
BD <robert.drea@[EMAIL  2008-04-14 16:05:10 
Re: MQTs under z/OS - how to get IMMEDIATE REFRESH functionality
BD <robert.drea@[EMAIL  2008-04-24 15:39:20 
Re: MQTs under z/OS - how to get IMMEDIATE REFRESH functionality
Serge Rielau <srielau@  2008-04-24 19:24:12 
Re: MQTs under z/OS - how to get IMMEDIATE REFRESH functionality
BD <robert.drea@[EMAIL  2008-04-25 11:44:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 28 20:22:57 CDT 2008.