home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / datatl25.zip / DCTDSGN.Z / EWSQDMTS.QRY < prev    next >
Text File  |  1997-09-11  |  2KB  |  58 lines

  1. #NAME#
  2. DA_DB2390TablespaceGlossary
  3. #DESCRIPTION#
  4. The DB2/390 tablespace glossary query returns the characteristics of the tablespaces which are referenced by the specified tablespace name. 
  5. It returns the such information as the freepage and percent free parameters, what storage group, bufferpool, and/or ICF catalog the tablespace uses and information about any tablespace partitions.   
  6.  
  7. View type:  DAQDB2390Tablespace
  8.  
  9. Modifications:
  10. Change the search criteria of the tablespace name using the = (equals), IN or LIKE elements in the SQL WHERE clause.  The WHERE clause may be changed to locate all Tablespaces which match  the specified characteristics.                                       
  11.  
  12. #MODIFIED#
  13.  
  14. #VERSION#
  15.  
  16. #SQL STATEMENT#
  17. SELECT DISTINCT
  18.   ts.db2390Tablespace,
  19.   ts.inPhysicalDesign..db2390PhysicalDesign,
  20.   ts.inDatabase..db2390Database,
  21.   ts.closeRule,
  22.   ts.compressFlag,
  23.   ts.ccsid,
  24.   ts.largeTS,
  25.   ts.lockSize,
  26.   ts.segSize,
  27.   ts.usesBufferpool..db2390Bufferpool,
  28.   ts.tsFreePage,
  29.   ts.tsPercentFree,
  30.   ts.tsGBPcache,
  31.   ts.usesStorageGroup..db2390Storagegroup,
  32.   ts.tsEraseRule,
  33.   ts.tsPrimaryQty,
  34.   ts.tsSecondaryQty,
  35.   ts.tsICFCatalog..ICFCatalog,
  36.   ts.partitionedByIndex..db2390Index,
  37.   ts.numPartitions,
  38.   ts.tsPartNumber,
  39.   ts.tsPartFreePages,
  40.   ts.tsPartPctFree,
  41.   ts.tsPartGBPcache,
  42.   ts.tsPartStogroup..db2390Storagegroup,
  43.   ts.tsPartEraseRule,
  44.   ts.tsPartPrimaryQty,
  45.   ts.tsPartSecondaryQty,
  46.   ts.tsPartICFCatalog..ICFCatalog,
  47.   p.addDate,
  48.   p.lastUpdate
  49. FROM OUTER
  50.   DAQDB2390Tablespace ts,
  51.   PartView p
  52. WHERE
  53.   ts.db2390Tablespace LIKE '<>%' AND
  54.   ts.db2390Tablespace=p.baseName AND
  55.   p.partType='DSRMRDTablespace'
  56. ORDER BY
  57.   ts.db2390Tablespace
  58.