If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Working with views

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-21-04, 09:10
RudiVdm RudiVdm is offline
Registered User
 
Join Date: Sep 2003
Posts: 17
Red face Working with views

My problem is twofold :

I have created views in DB2 , but lately they seems to be obtaining the requested data from a cache, ie : the view isn't being refreshed. I know this, because as soon as I drop the view and re-create it again, the data I'm looking for is there.

So could anyone help me with A) Checking to see what code was used to create a specific view, B) How to fix the caching problem.

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-21-04, 09:27
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Working with views

I'm not sure if I understand your problem ...

AFAIK, a view is never materialized and cached ... The view is stored in dB2 as a definition only .... Whenever a view is referred, using the defn db2 gets the table from the bufferpool or disk to build the resultset ...

To see the view definition, use SYSCAT.VIEWS

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-21-04, 13:11
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Are you talking about materialized query tables or DB2 views?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On