Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBC Table that holds statistics info?

Status
Not open for further replies.

CapsuleCorpJX

IS-IT--Management
Jun 23, 2004
70
0
0
US
Is there a DBC table that holds the last time statistics was collected on a given table?
 
STATS information is held in one of two places, depending on whether its STATS for an index or a column.

I assume you'll want both.

The information is a little difficult to obtain from first principles but if you goolge for "HASHBUCKET SUBSTR" I'm sure you'll find what you're looking for.

I suggest you tweak this to something more useful for your own instance of Teradata and set this up as a VIEW.

Then use this within a batch script to automate STATS refresh on a regular basis.

Roger...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top