home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / database / informix / 2696 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.4 KB

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: turbo extents used
  5. Message-ID: <1992Dec14.172007.22578@informix.com>
  6. Date: 14 Dec 92 17:20:07 GMT
  7. References: <1g35g0INN6st@emory.mathcs.emory.edu>
  8. Sender: news@informix.com (Usenet News)
  9. Organization: Informix Software, Inc.
  10. Lines: 22
  11.  
  12. Root@letterkenn-emh1.army.mil writes:
  13. >Is there a way in Informix-Turbo (not ON-Line) to determine how many extents
  14. >a table is currently using? I figure one of those handy figurest in tbstat
  15. >must indicate that....
  16. >Thanks.
  17. >Ann Barnes
  18.  
  19. If the table is active (and you can make it active by going into isql and
  20. issuing a LOCK TABLE statement), then tbstat -t will show the number of
  21. extents allocated for the table (nextns).  There is a trick, however, in that 
  22. tbstat shows the table with its tblspace number (partition number in Turbo 
  23. parlance) not the table name.  To get a list of table names and their 
  24. respective (hex) partition/tblspace numbers, use the following query:
  25.  
  26.     select tabname, hex(partnum) from systables;
  27.  
  28. Dave
  29. -- 
  30. Disclaimer: These opinions are not those of Informix Software, Inc.
  31. **************************************************************************
  32. "I look back with some satisfaction on what an idiot I was when I was 25,
  33.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  34.