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 > SYSCAT.SEQUENCES on OS390 DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-10, 07:37
mahesh_terdal mahesh_terdal is offline
Registered User
 
Join Date: Feb 2009
Posts: 27
SYSCAT.SEQUENCES on OS390 DB2

Hello All,

Our product fails to establish connection with DB2 on OS 390.

It tries to fetch sequence details from the sequence object SYSCAT.SEQUENCES but we receive an error table undefined.

We don't have a OS390 to test out whats causing the trouble, can any one let me know if OS390 have sequence object SYSCAT.SEQUENCES ?

If not what is the equivalent schema object. DB2 version is DB2 OS/390 9.1.5.

Any help would be highly appreciated.

Thanks and Regards,
Mahesh
Reply With Quote
  #2 (permalink)  
Old 06-23-10, 07:44
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
The catalog views SYSCAT.*** do not exist in DB2 for z/OS.
Access SYSIBM.SYSSEQUENCES instead

Last edited by umayer; 06-23-10 at 07:49.
Reply With Quote
  #3 (permalink)  
Old 06-23-10, 07:50
mahesh_terdal mahesh_terdal is offline
Registered User
 
Join Date: Feb 2009
Posts: 27
Thanks a lot for swift response!!

So db2 on OS 390 don't have SYSCAT.SEQUENCES and SYSIBM.SYSSEQUENCES is the equivalent.

But when I tested on my Windows version of DB2 I see both of the objects(syscat.sequences and sysibm.sequences), so my question is that, is there any way using whcih I can continue to use syscat.sequences on os390 as well?

Thanks a lot again!!
Reply With Quote
  #4 (permalink)  
Old 06-23-10, 08:10
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
Sysibm.syssequences ist the name of the catalog table and syscat.sequences is a view defined on that table.

If you want to use SYSCAT.SEQUENCES on your DB2 for z/OS, simply execute

CREATE VIEW SYSCAT.SEQUENCES
AS SELECT * FROM SYSIBM.SYSSEQUENCES ;

GRANT SELECT ON SYSCAT.SEQUENCES TO anyone-who-needs-it;

on your DB2 for z/OS.
Reply With Quote
  #5 (permalink)  
Old 06-23-10, 08:12
mahesh_terdal mahesh_terdal is offline
Registered User
 
Join Date: Feb 2009
Posts: 27
Many Many thanks!!

I will try it and keep you posted.

Thanks again,
Mahesh
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