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 > Script to find all the tables in a specific chunk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-13-05, 23:24
rupee2003 rupee2003 is offline
Registered User
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 53
Script to find all the tables in a specific chunk

Can someone point to me a script which lists all the tables present in a specific chunk

Appreciate your help
Reply With Quote
  #2 (permalink)  
Old 02-14-05, 03:49
nitin_math nitin_math is offline
Registered User
 
Join Date: Nov 2004
Posts: 143
Hello,

I used the following script to find out I/O for tables. You can modify it according to your convenience.

select fname,
name,
dbsname,
tabname,
pagreads+pagwrites pagtots
from sysptprof,
syschunks,
sysdbspaces,
sysptnhdr where trunc(hex(sysptprof.partnum)/1048576) = chknum
and syschunks.dbsnum = sysdbspaces.dbsnum
and sysptprof.partnum = sysptnhdr.partnum
and (pagreads+pagwrites) != 0
order by 5 desc

Bye
Reply With Quote
  #3 (permalink)  
Old 02-14-05, 14:25
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
You can also refer to oncheck -pe output
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