Refine your search:

I would like to display the average time Oracle is taking to perform a check point. I have filtered out the following from the log file which show the timestamp for the beginning of the check point as well as the end.

Note the common link is the SCN number. So this example below would yeild 5 seconds.

Mon Oct 24 15:06:58 2011 Completed checkpoint up to RBA [0x1cbf.2.10], SCN: 8494298653192

Mon Oct 24 15:06:53 2011 Beginning log switch checkpoint up to RBA [0x1cbf.2.10], SCN: 8494298653192

How would one go about calculating this?

Thanks!

asked 24 Oct '11, 12:31

john.kennan's gravatar image

john.kennan
111
accept rate: 0%


One Answer:

There are several ways. First, you need to make sure SCN is extracted as a field (I call it SCN below), and that of course the time stamps on each event are correctly detected. Then, the most efficient would be:

... | stats range(_time) as duration by SCN

more transparently:

... | stats min(_time) as start max(_time) as end by SCN | eval duration=end-start

Less efficiently, but more intuitively:

... | transaction SCN

as the transaction command will automatically compute duration from the first and last event times.

link

answered 24 Oct '11, 12:57

gkanapathy's gravatar image

gkanapathy ♦
32.3k4827
accept rate: 41%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,643
×343
×15

Asked: 24 Oct '11, 12:31

Seen: 1,491 times

Last updated: 24 Oct '11, 12:57

Copyright © 2005-2012 Splunk Inc. All rights reserved.