Real-Time SQL Monitoring in SQL Developer

Doug's Oracle Blog

  • Home
  • Papers
  • Books
  • C.V.
  • Fun
  • Oracle Blog
  • Personal Blog

Jul 2: Real-Time SQL Monitoring in SQL Developer

Features in this post require both Diagnostics and Tuning Pack licenses.

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 ;-) Even so, it saved me during my last course teach because 11g DB Control started to play up on my laptop, so I was able to fall back on the SQL Developer option. It's definitely worth a look.

Thanks to Sue and Tom for their help ...
Posted by Doug Burns Comments: (10) Trackbacks: (2)

Trackbacks
Trackback specific URI for this entry

PingBack
Weblog: coskan.wordpress.com
Tracked: Jul 03, 16:29
PingBack
Weblog: coskan.wordpress.com
Tracked: Jul 03, 16:32

Comments
Display comments as (Linear | Threaded)

#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.


Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
BBCode format allowed
 
 

Statistics on Partitioned Tables

Contents

Part 1 - Default options - GLOBAL AND PARTITION
Part 2 - Estimated Global Stats
Part 3 - Stats Aggregation Problems I
Part 4 - Stats Aggregation Problems II
Part 5 - Minimal Stats Aggregation
Part 6a - COPY_TABLE_STATS - Intro
Part 6b - COPY_TABLE_STATS - Mistakes
Part 6c - COPY_TABLE_STATS - Bugs and Patches
Part 6d - COPY_TABLE_STATS - A Light-bulb Moment
Part 6e - COPY_TABLE_STATS - Bug 10268597

Comments

Doug Burns about 10053 Trace Files - Different Plan in Different Environments
Tue, 02.04.2013 08:57
You're welcome. Now I just nee d to pull my finger out and ac tually come up [...]
Howard Rogers about 10053 Trace Files - Different Plan in Different Environments
Mon, 01.04.2013 23:08
Makes a big difference, so tha nks for that! With two brow ser windows, o [...]
stelioscharalambides.com about 10053 Trace Files
Sat, 30.03.2013 16:28

Upcoming Presentations

Bookmark

Open All | Close All

Syndicate This Blog

  • XML RSS 2.0 feed
  • ATOM/XML ATOM 1.0 feed
  • XML RSS 2.0 Comments
  • Feedburner Feed

Powered by

Serendipity PHP Weblog

Show tagged entries

xml 11g
xml ACE
xml adaptive thresholds
xml ASH
xml Audit Vault
xml AWR
xml Blogging
xml conferences
xml Cuddly Toys
xml Database Refresh
xml DBMS_STATS
xml Direct Path Reads
xml Fun
xml grid control
xml hotsos 2010
xml listener
xml Locking
xml oow
xml oow2009
xml optimiser
xml OTN
xml Parallel
xml Partitions
xml Patching
xml swingbench
xml The Reality Gap
xml time matters
xml ukoug
xml ukoug2009
xml Unix/Shell
xml Useful Links

Disclaimer

For the avoidance of any doubt, all views expressed here are my own and not those of past or current employers, clients, friends, Oracle Corporation, my Mum or, indeed, Flatcat. If you want to sue someone, I suggest you pick on Tigger, but I hope you have a good lawyer. Frankly, I doubt any of the former agree with my views or would want to be associated with them in any way.

Design by Andreas Viklund | Conversion to s9y by Carl