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 > Calculating Informix DB Size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-06-11, 02:46
suryaaravindh suryaaravindh is offline
Registered User
 
Join Date: Jun 2011
Posts: 3
Calculating Informix DB Size

Hi,

How do I find out the size of Informix db in Unix Solaris 8.

Please help. Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 07-08-11, 10:34
estjump estjump is offline
Registered User
 
Join Date: Jul 2011
Posts: 2
DB-Size for 2k-Pages

try out this:

SET ISOLATION TO DIRTY READ;

SELECT dbsname,
round(sum(nptotal)*2/1024,2) total_mb,
round(sum(npused)*2/1024,2) used_mb,
round(sum(npdata)*2/1024,2) data_mb
FROM sysmaster:systabnames t1, sysmaster:sysptnhdr t2
WHERE t1.partnum = t2.partnum
AND dbsname != "HASHTEMP"
AND tabname != "TBLSpace"
GROUP BY dbsname
ORDER BY 2 desc;
Reply With Quote
  #3 (permalink)  
Old 07-11-11, 03:47
InformixWilli InformixWilli is offline
Registered User
 
Join Date: Sep 2010
Location: Germany, Brunswick
Posts: 52
Use this for IDS 11.50 and above (pagesize doesn't matter):

Code:
SELECT    dbsname,
          round(sum(nptotal)*(t2.pagesize/1024)/1024,2) mb_total,
          round(sum(npused)*(t2.pagesize/1024)/1024,2) mb_used,
          round(sum(npdata)*(t2.pagesize/1024)/1024,2) mb_data
FROM      sysmaster:systabnames t1, sysmaster:sysptnhdr t2
WHERE     t1.partnum = t2.partnum
AND       dbsname != "HASHTEMP"
AND       dbsname != "BEFIMAGE"
AND       dbsname != "SORTTEMP"
AND       tabname != "TBLSpace"
GROUP BY  dbsname, t2.pagesize
ORDER BY  2 desc;
__________________
WilhelmW
IBM Certified Database Associate

wilhelmw.de - www.isr.de
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