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 > Sybase's sysprocesses and sysdatabases equivalent in db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-06, 19:04
kamit24 kamit24 is offline
Registered User
 
Join Date: Feb 2006
Posts: 1
Sybase's sysprocesses and sysdatabases equivalent in db2

Hi,

One of the stored procedures in my application(on sybase and now being migrated to UDB DB2) uses the Sybase system tables sysprocesses and sysdatabases to find out the number of connections to a particular database at a given time. The problem with mapping this particular functionality to DB2 is that no specific connections are made to the schemas. Secondly, we do not have any DB2 equivalents for the above tables or tables which give the same information as far as we could find. I need to know the nymber of users connected to schema (or using the schema) and not to the database. Do we have anything equivalent in DB2

thanks,
Amit
Reply With Quote
  #2 (permalink)  
Old 02-07-06, 06:04
gardenman gardenman is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
Reply With Quote
  #3 (permalink)  
Old 02-07-06, 06:14
gardenman gardenman is offline
Registered User
 
Join Date: Apr 2004
Posts: 54
There is no equivalent of Sybase's sysdatabases in DB2 for LUW.
The best approach is using SCHEMA instead of the one.(IMHO)
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