IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find out when RUNSTATS & Re-org was executed last


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Mon May 31, 2010 2:44 pm
Reply with quote

Hi,

Can you please let me know when the RUNSTATS & ReORG was executed last time.

Regards,
Kiran.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Mon May 31, 2010 2:55 pm
Reply with quote

They were executed yesterday.

V9 : check out SYSIBM.SYSTABLESPACESTATS
V8 : check out SYSIBM.TABLESPACESTATS

STATSTIME in SYSTABLES , SYSINDEXES
TIMESTAMP in SYSCOPY where TYPE in ('W','X')
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon May 31, 2010 11:03 pm
Reply with quote

Hi GuyC

Thanks icon_lol.gif
Back to top
View user's profile Send private message
chinnielr

New User


Joined: 11 Jul 2005
Posts: 87

PostPosted: Tue Jun 01, 2010 10:35 am
Reply with quote

GuyC,

When I executed the following query

select * from sysibm.tablespacestats it says "SYSIBM.TABLESPACESTATS could not be found".

Our shop uses DB2 version 8 Release 1.

Even I tried with SYSTABLESPACESTATS and it is also not found.

Regards,
Chinni.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Jun 01, 2010 10:37 am
Reply with quote

what about looking at the manuals for the relevant system tables names ??
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Jun 01, 2010 12:58 pm
Reply with quote

I'm pretty sure the tablenames are correct :
publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db2.doc.admin/rtstcrt.htm#rtstcrt


Real Time Statistics is optional in V8, so maybe it hasn't been set up in your shop.

the old-fashioned way :
runstats : STATSTIME in SYSTABLES , SYSINDEXES
reorg : TIMESTAMP in SYSCOPY where TYPE in ('W','X')
Back to top
View user's profile Send private message
satyender

New User


Joined: 05 Jan 2008
Posts: 50
Location: Olympia, WA, USA

PostPosted: Fri Jun 04, 2010 5:12 am
Reply with quote

chinnielr,

Herein is the query:


SELECT * FROM SYSIBM."SYSTABLESPACESTATS";

UPDATESTATSTIME
--------------------------
2009-09-03-11.27.30.270217
2009-09-03-11.27.30.270259
2009-09-03-11.27.30.270288
2009-09-03-11.27.30.270329
2009-09-03-11.27.30.270369
2009-09-03-11.27.30.274428
2009-09-03-11.27.30.274461



REORGLASTTIME
--------------------------
2009-09-03-11.06.32.071429
2009-09-03-11.06.35.526080
2009-09-03-11.06.37.119042
2009-09-03-11.06.38.800379
2009-09-03-11.06.40.284214
2009-09-03-11.07.47.618183
2009-09-03-11.07.48.842852
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Fri Jun 04, 2010 12:14 pm
Reply with quote

satyender wrote:
SELECT * FROM SYSIBM."SYSTABLESPACESTATS";

always nice when somebody repeats an already given answer which was insufficient.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Find a record count/numeric is multip... COBOL Programming 1
Search our Forums:

Back to Top