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

Senior Member


Joined: 14 Mar 2007
Posts: 10479
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 RACF- How to find the Last access of ... rahul shanmuganatan All Other Mainframe Topics 7 Thu Jun 21, 2018 3:19 pm
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
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

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