Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > SQL to monitore performance...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-02-08, 09:15
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 35
SQL to monitore performance...

Hello..

My database's very slow... I'd like know if there are some sql to know what process's more slow..... and what is getting more memory...


Thanks..
Fernando.
Reply With Quote
  #2 (permalink)  
Old 01-03-08, 07:37
dicipulofer dicipulofer is offline
Registered User
 
Join Date: Oct 2007
Posts: 35
I ran the sql.... and see that my phylog percent free's just in 2 percent..

It's bad to my database ?


select name[1,8] dbspace, -- name truncated to fit on one line
sum(chksize) Pages_size, -- sum of all chunks size pages
sum(chksize) - sum(nfree) Pages_used,
sum(nfree) Pages_free, -- sum of all chunks free pages
round ((sum(nfree)) / (sum(chksize)) * 100, 2) percent_free
from sysdbspaces d, syschunks c
where d.dbsnum = c.dbsnum
group by 1
order by 1;



dbspace percent free
loglog 18.99
phylog 2.23
prddbs 26.10
prdtmp1 99.45
prdtmp2 99.48
rootdbs 84.44
Reply With Quote
  #3 (permalink)  
Old 01-04-08, 15:55
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 777
Hi,

I suggets that run update statistics for all database, next run:
set explain on avoide_execute;
SELECT ..........

Then verify performance.

Gustavo.
Reply With Quote
  #4 (permalink)  
Old 01-05-08, 06:18
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Distrito Federal - Brasil
Posts: 197
onstat -g ses
onstat -g mem
__________________
________________________________________
César Inacio Martins
Distrito Federal - Brasil
________________________________________
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On