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 > Validate Multiple Views using a SQL script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-11, 22:31
mme mme is offline
Registered User
 
Join Date: May 2011
Posts: 5
Validate Multiple Views using a SQL script

We have Db2 9.7 here and added a column in one of the table. This particular table has a summary table on top

i.e. CREATE SUMMARY TABLE TOP_TABLE AS SELECT * FROM BASE_TABLE

Our problem is, we found more views (almost 40) use the summary table in the SELECT queries and now shows status as X. Is there any easier way to set the status back to N (normal I guess?) without dropping / recreating the view(s)? We don't want to drop / re-create and mess things up further

Any help would be appreciated.

Thanks
MMe
Reply With Quote
  #2 (permalink)  
Old 06-08-11, 02:42
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
You don't need to drop the views. Just create them again. You'll get a warning that an inoperativ view has been replaced.
Reply With Quote
  #3 (permalink)  
Old 06-08-11, 07:29
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Check out SYSPROC.ADMIN_REVALIDATE_DB_OBJECTS()
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