Jul 2: Real-Time SQL Monitoring in SQL Developer
If you haven't seen 11g's Real Time SQL Monitoring feature, you need to. It's one of the most useful Oracle performance troubleshooting tools I've seen since I started working with Oracle too long ago. I was first aware of it via Greg Rahn's blog post.
To date I've used it via DB Control for demos and it's sweet, but one of the problems with any demo based on DB/Grid Control is that it's use is likely to be limited to those who have DBA access. Yes, you can set up view access to GC so that people can monitor performance of targets that they have sufficient account privileges on, but a lot of sites won't want the overhead of setting that up for developers and app support teams.
So I was intrigued when I noticed Tom Kyte mention that Oracle have been working on making more of these tools available to developers. After a quick email, a look at his slides and some further help from Sue Harper, I was able to try out RTSM in SQL Developer 1.5.4
Once you have selected Tools->Monitor SQL

you'll see a grid table of records. This will include all monitored statements, including this example parallel query that I'm running just now.

If I right-click any of the statements and select 'Show SQL Details' I'll see the Real Time SQL Monitoring screen, which is deeply cool.
One criticism, though. On my dinky laptop screen, the execution plan steps don't display properly as that column's too narrow. I can resize it
but then it just annoyingly sets it back to it's original width every time the screen refreshes. Hopefully that's something that can be fixed, for those of us with dinky monitors
Thanks to Sue and Tom for their help ...
#1 - Marcin Przepiorowski said:
2009-07-02 08:51 - (Reply)
Hi,
What about license ? SQL monitoring can be used only then you have a tuning pack - http://download.oracle.com/docs/cd/B28359_01/license.111/b28287/options.htm
So it can be use only for EE as you can't order any pack to SE.
regards,
Marcin
#2 - Doug Burns said:
2009-07-02 09:01 - (Reply)
Thanks - excellent point and I should have mentioned that. It's a Tuning Pack feature but I think OTN licence for personal experimentation should allow people to play with it at home if they don't have Tuning Pack licenses at work.
I've got too used to EE/Diagnostics/Tuning sites over the past few years ![]()
#3 - Doug Burns said:
2009-07-02 13:53 - (Reply)
A couple of people have pointed out that I was blogging at 4:30am. I hadn't thought about the fact you'd see that in the images.
I'm working in, erm, Singapore at the moment. Honestly.
#4 - Marco Gralike said:
2009-07-06 19:28 - (Reply)
Yeah working ![]()
#5 - Andrey Dmitrenko 2009-07-22 07:28 - (Reply)
It works with 11g only. Unfortunately, since we are still using 10g because of stability.
#6 - Doug Burns said:
2009-07-22 08:00 - (Reply)
I thought that would be clear from the very first sentence of the blog post ...
"If you haven't seen 11g's Real Time SQL Monitoring feature, you need to."
Wasn't it?
#7 - Edwin 2010-06-25 05:37 - (Reply)
RTSM is not showing any of the queries getting executed. I am using oracle 11g and sql developer 2.1.1.64
#8 - Doug Burns said:
2010-06-27 22:00 - (Reply)
Edwin,
This is some advice Sue Harper once gave me when I vaguely recall I might have been running into the same problem as usual. Not sure, but it might help.
Cheers,
Doug
"Once you have selected Tools - > Monitor SQL, do you see a grid table of
records? If you do, then right-click on any of the records and select
"Show SQL Details". You do need to
have run some SQL to populate the initial set of records, but you seem
to have them as you say you only see the text display. If you have a log
window open or SQL Developer is not maximized, then you might not see
the full SQL txt, this is rectified by closing the log window or
maximizing SQL Dev. If the query is long running and not complete, the
time lines will continue to update with the window open."
#9 - Ersin Tarhan said:
2011-12-27 09:53 - (Reply)
This tool work only 11G.
#10 - Doug Burns said:
2011-12-29 10:04 - (Reply)
Erm, as I already stated in the first line of the post?
If you haven't seen 11g's Real Time SQL Monitoring feature, you need to.


Tracked: Jul 03, 16:29
Tracked: Jul 03, 16:32