Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to find out when RUNSTATS & Re-org was executed last

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to find out when RUNSTATS & Re-org was executed last
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    Post subject:
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    Post subject: Reply to: How to find out when RUNSTATS & Re-org was exe
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    Post subject: Reply to: How to find out when RUNSTATS & Re-org was exe
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Tue Jun 01, 2010 10:37 am    Post subject: Reply to: How to find out when RUNSTATS & Re-org was exe
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    Post subject:
Reply with quote

I'm pretty sure the tablenames are correct :
http://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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us