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 > Informix > Check if database is used

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-26-04, 05:25
Leuchtkugel Leuchtkugel is offline
Registered User
 
Join Date: Oct 2004
Posts: 1
Check if database is used

Hi,

I´m verry new to Informix. I want to write a shell script, which figures out, if a database is currently accessed by user(s) and print the possible user(s) on the screen.

I think I have to use the sysuser table... Is this right?

Has anybody an example or a tipp?

Thanx in advance

Chris
Reply With Quote
  #2 (permalink)  
Old 10-26-04, 09:37
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
Why don't you just use onstat -u command, it will show you everybody who is using the instance. If you take a look at onstat -g sql session id it will show you the last sql that the user executed.
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