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 > How to regenerate view (AIX/DB2)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-01-07, 12:40
ajaykd ajaykd is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
How to regenerate view (AIX/DB2)

Hi,

I want to drop an expression from the generated table column in DB2 (AIX) v8.1. I am getting the following error:

56098(-727)[IBM][CLI Driver][DB2/AIX64] SQL0727N An error occurred during implicit system action type "3". Information returned for the error includes SQLCODE "-101", SQLSTATE "54001" and message tokens "". SQLSTATE=56098

>> Type 3 in documentation implies that there is one or more view which needs to be regenerated.

Can somebody tell me how to regenerate the view on DB2/AIX?

<<
Additionally I googled and found the following code
ALTER VIEW view REGENERATE;
But it did not work on DB2/AIX as it strangely works (?) on z/OS2 only
>>

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-01-07, 13:59
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
What's important here is SQLCODE "-101": "Statement too long or too complex". Try increasing the value of the STMTHEAP database configuration parameter.
Reply With Quote
  #3 (permalink)  
Old 06-04-07, 12:05
ajaykd ajaykd is offline
Registered User
 
Join Date: Jun 2007
Posts: 2
Thumbs up

Hi,

I could not find better way of doing it. After spending hours I came to the conclusion that dropping and recreating the views is the only feasible solurion. So I dropped the views, which were causing problems, then I dropped the expression of generated column and then recreated views. And VOILA it worked just fine

Thanks everyone for your suggestions.

- AJ
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