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 > SQL0440N error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-10, 14:22
mail4mz mail4mz is offline
Registered User
 
Join Date: Aug 2010
Posts: 17
SQL0440N error

Hi All,

I have following error when I try to get data from syscat.tablespaces. However everything works fine when I have similar SQL to get get from syscat.tables. Any idea on this issue? I also check the privilage of syscat.tables and syscat.tablespaces. They are the same.

Thanks,

Mike
----------------------------- Commands Entered ------------------------------
Select 'list tablespace containers for ' || tbspaceid || ' show details;'
from syscat.tablespaces
where tbspace like 'SGIRA%'
;
------------------------------------------------------------------------------
Select 'list tablespace containers for ' || tbspaceid || ' show details;' from syscat.tablespaces where tbspace like 'SSS%'
SQL0440N No authorized routine named "||" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884

SQL0440N No authorized routine named "||" of type "FUNCTION " having compatible arguments was found.
Reply With Quote
  #2 (permalink)  
Old 12-21-10, 14:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Concatenation only works on character data.
Reply With Quote
  #3 (permalink)  
Old 12-21-10, 14:54
mail4mz mail4mz is offline
Registered User
 
Join Date: Aug 2010
Posts: 17
How can I list the container of all tablespaces. I can only find the following command to list, but it can show the container for individual tablespace. Is there any way I can get the container of all tablespaces?

list tablespace containers for # show details

Thanks a lot!

Mike
Reply With Quote
  #4 (permalink)  
Old 12-21-10, 15:05
Lenny77 Lenny77 is offline
Registered User
 
Join Date: Jul 2009
Location: NY
Posts: 886
Lightbulb

Quote:
Originally Posted by mail4mz View Post
How can I list the container of all tablespaces. I can only find the following command to list, but it can show the container for individual tablespace. Is there any way I can get the container of all tablespaces?

list tablespace containers for # show details

Thanks a lot!

Mike
n_i gave you a point.
You have to change:

Code:
Select 'list tablespace containers for ' || CHAR(tbspaceid) || ' show details;'
from syscat.tablespaces
where tbspace like 'SGIRA%'
;
Reply With Quote
  #5 (permalink)  
Old 12-21-10, 15:06
mail4mz mail4mz is offline
Registered User
 
Join Date: Aug 2010
Posts: 17
Got it. Thx a lot!
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