Unix Technical Forum

RE: Timestamp of last archive

This is a discussion on RE: Timestamp of last archive within the Informix forums, part of the Database Server Software category; --> Good idea. Exact SQL to retrieve the time stamp of the last LO archive is: SELECT stamp0 FROM sysmaster:sysdbstab ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:15 PM
Alexey Sonkin
 
Posts: n/a
Default RE: Timestamp of last archive


Good idea.

Exact SQL to retrieve the time stamp of the last LO archive is:

SELECT stamp0 FROM sysmaster:sysdbstab WHERE dbsnum = 1

It gives exactly the same data as 'archive' page
of the 'oncheck -pr' output

------------------------------------------
Alexey Sonkin


> From: David Williams [mailto:djw@smooth1.fsnet.co.uk]
>
> "TBP" <TBP@Nospam.Nothere.Co.Uk> wrote in message
> news:c6nq4r$1bcm$1@sp15en20.hursley.ibm.com...
> > Rüdiger Mähl wrote:
> > > Hi folks,
> > >
> > > is there any way to get the timestamp of the last
> > > archive from any [system] table?
> > >
> > > I know about oncheck -pr.
> > >
> > > TIA,
> > >
> > > Rüdiger

> > Not sure about a system table, but onstat -g arc will show the last (2 I
> > think) archive details.

>
> Look at $INFORMIXDIR/etc/sysmaster.sql.
>
> select unique l2date(level0) from sysdbstab gets the date
>
> since l2date does value/86400 and there are 86400 days in a day this must
> be
> a number of seconds
> value so value mod 86400 would be the number of seconds from I guess the
> start of the day???



sending to informix-list
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com