Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11

    Answered: auto runstats exclude table

    db2 linux 9.7.7 ese on intel
    I am administering a customer and new to this customer
    We received info that some tables have been excluded from auto-runstats (how ?)
    we can see that many table are having auto-runstats in defined window
    when using automaint_get_policyfile with maintenance window we see the window defined
    but when using auto_runstats as parameter : the list of excluded/selected files is empty
    auto maintenance is activated for runstats
    is there another way to exclude auto runstats for specific table then policyfile ?
    for this specific table the stats_time is still 2014-07....
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  2. Best Answer
    Posted by mark.b

    "
    Quote Originally Posted by przytula_guy View Post
    is there a way to identify tables that have statistics manually updated (because some tables do not move and are not handled automatically)
    Try this:
    Code:
    select tabschema, tabname, stats_time, invalidate_time
    from syscat.tables
    where type='T' and timestampdiff(2, char(stats_time - invalidate_time))=0
    "


  3. #2
    Join Date
    Sep 2012
    Posts
    11
    Provided Answers: 1
    Could table cardinality be volatile?
    VOLATILE=C

    What comes to mind is that automatic runstats will exclude such tables automatically.

  4. #3
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    thanks for the update
    this has been checked and is not the case
    the only explanation I see : statistics have been updated manually in SYSSTAT schema and this excludes the auto_runstats in the future

    is there a way to identify tables that have statistics manually updated (because some tables do not move and are not handled automatically)
    Last edited by przytula_guy; 11-10-15 at 06:10.
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  5. #4
    Join Date
    Jul 2013
    Location
    Moscow, Russia
    Posts
    666
    Provided Answers: 55
    If UDI counter is small enough DB2 can decide that runstats is not necessary.
    What's returned by this:
    Code:
    db2pd -db mydb -tcbstats | grep -E "Address|MYTABLE"
    Regards,
    Mark.

  6. #5
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    thanks for the update
    idx.G_CAT is a table we know has manual stats - for other we do not know
    [db2icat5@s998jplnx090 ~]$ db2pd -d cat500 -tcbstats |grep -E "Address|G_CAT"
    Address TbspaceID TableID PartID MasterTbs MasterTab TableName SchemaNm ObjClass DataSize LfSize LobSize XMLSize

    0x00007FF9F16B5F58 35 4 n/a 35 4 G_CAT IDX Perm 1620096 0 0 0
    Address TableName SchemaNm Scans UDI RTSUDI PgReorgs NoChgUpdts Reads FscrUpdates Inserts Updates Deletes OvFlReads OvFlCrtes RowsComp RowsUncomp CCLogReads StoreBytes BytesSaved
    0x00007FF9F16B5F58 G_CAT IDX 545 57502089 57502089 3032120 14721626 3362572485*1285915 19851405 9703244 507203 4520799272 421362 29554659 3362901226*15257 - -
    [db2icat5@s998jplnx090 ~]$
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  7. #6
    Join Date
    Jul 2013
    Location
    Moscow, Russia
    Posts
    666
    Provided Answers: 55
    Quote Originally Posted by przytula_guy View Post
    is there a way to identify tables that have statistics manually updated (because some tables do not move and are not handled automatically)
    Try this:
    Code:
    select tabschema, tabname, stats_time, invalidate_time
    from syscat.tables
    where type='T' and timestampdiff(2, char(stats_time - invalidate_time))=0
    Last edited by mark.b; 11-17-15 at 09:45. Reason: probably a better 'where' clause
    Regards,
    Mark.

  8. #7
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    thanks for all info. Being at idug this week and trying this out next week...
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •