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 > Invalid routines in DB2 system schemas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-07-11, 12:15
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
Invalid routines in DB2 system schemas

When I do -
Code:
db2 "SELECT ROUTINESCHEMA, ROUTINENAME FROM SYSCAT.ROUTINES WHERE VALID <> 'Y'"
in my database, I am getting many routines from SQLJ, SYSCAT, SYSFUN, SYSIBM, SYSPROC schemas as Invalid.

What could have invalidated these routines & How can I make them valid? Thanks.
Reply With Quote
  #2 (permalink)  
Old 06-07-11, 12:38
tonkuma tonkuma is online now
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,193
What were the values of VALID column?

DB2 9.7 for LUW SQL Reference, Volume 1
Appendix D. System catalog views
SYSCAT.ROUTINES
Column Name: VALID
Description:
Quote:
Applies to LANGUAGE = 'SQL' and routines
having parameters with default; blank otherwise.
v N = Routine needs rebinding
v X = Routine is inoperative and must be recreated
v Y = Routine is valid

Last edited by tonkuma; 06-07-11 at 12:52. Reason: Add Description for N,X,Y
Reply With Quote
  #3 (permalink)  
Old 06-07-11, 13:12
rajaraja_cholan rajaraja_cholan is offline
Registered User
 
Join Date: Dec 2008
Posts: 31
I have blank as value for Valid column. So, they are indeed valid routines. Thanks Tonkuma for pointing it out.
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