Heat Maps – 12c Edition
Over the last few months, I’ve been slowly playing with Oracle Database 12c and various features within it. One such feature has been the heat maps. I was curious about heat maps during beta testing but didn’t have a chance to test it while there. Since beta testing, I’ve been extremely busy with work items and project. I’ve finally had a day where I could quickly test the heat map option. What turns it on, turns it off and how is it used. Like many of my other posts, hopefully, this will give you some insight to what it does and how it can be used.
To turn on heat maps is simple! Much simpler than I had expected. If you want to turn on heat maps it can be done either at the system or session level with a simple ALTER SYSTEM or ALTER SESSION command. The parameter that needs to be used is HEAT_MAP. How much simpler can it be?
alter system set heat_map=on scope=both;
or
alter session set heat_map=on;
To turn heat maps off is just a simple. Just change ON to OFF.
Once you have heat maps turned on how can we tell if they are being used. There are a series of views that can be used to track the statistics on heat maps. These views consist of V$*, ALL*, DBA* and USER* views. The view names to correspond with these views are *HEAT_MAP_SEGMENT, *_HEAT_MAP_SEQ_HISTOGRAM, DBA_HEATMAP_TOP_OBJECTS, and DBA_HEATMAP_TOP_TABLESPACES. the DBA_HEATMAP_TOP_OBJECTS view displays information related to the last 1000 objects and the DBA_HEATMAP_TOP_TABLESPACE shows information for the top 100 tablespaces;
Since we know the views that we can use to identify heat map information, lets take a look at an example or two. The examples which I’m providing here are ran against a traditional 12c database (Non-CDB). I’m going to turn on heat maps for the whole instance first.
[oracle@oel6 Desktop]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Sun Sep 1 12:19:36 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing optionsSQL> show parameter heat_map;
NAME TYPE VALUE
------------------------
heat_map string OFFSQL> alter system set heat_map=ON scope=both;
System altered.
SQL> show parameter heat_map;
NAME TYPE VALUE
------------------------
heat_map string ON
Heat maps have been turned on at the system level now. Using the scope=BOTH option set the HEAT_MAP parameter both in memory and in the SPFILE, preventing the need to bounce the database. Lets take a look at the V$HEAT_MAP_SEGMENT view now. For this example, we will use the example schema SCOTT.
Notice that when running a query against the V$HEAT_MAP_SEGMENT view for the first time, there is nothing in the view.
SQL> SELECT SUBSTR(OBJECT_NAME,1,20), SUBSTR(SUBOBJECT_NAME,1,20), TRACK_TIME, SEGMENT_WRITE,
FULL_SCAN, LOOKUP_SCAN FROM V$HEAT_MAP_SEGMENT; 2no rows selected
Lets run a select statement against the table SCOTT.EMP then run the same query against the V$HEAT_MAP_SEGMENT view again.
SQL> select * from scott.emp;
rows returned
SQL> SELECT SUBSTR(OBJECT_NAME,1,20), SUBSTR(SUBOBJECT_NAME,1,20), TRACK_TIME, SEGMENT_WRITE,
FULL_SCAN, LOOKUP_SCAN FROM V$HEAT_MAP_SEGMENT; 2no rows selected
Wait a minute, what happen, why didn’t work? The parameter is set to ON? Ok, lets bounce the database and try again.
SQL> select * from scott.emp;
rows returned
SQL> SELECT SUBSTR(OBJECT_NAME,1,20), SUBSTR(SUBOBJECT_NAME,1,20), TRACK_TIME, SEGMENT_WRITE,
FULL_SCAN, LOOKUP_SCAN FROM V$HEAT_MAP_SEGMENT; 2SUBSTR(OBJECT_NAME,1 SUBSTR(SUBOBJECT_NAM TRACK_TIM SEG FUL LOO
-------------------- -------------------- --------- --- --- ---
TSM_SRC$ 01-SEP-13 NO NO NO
SYS_IOT_TOP_19282 01-SEP-13 NO NO NO
AQ$_ALERT_QT_L 01-SEP-13 NO NO NO
EMP 01-SEP-13 NO YES NO
SYS_IOT_TOP_17632 01-SEP-13 NO NO NO
AQ$_STREAMS_QUEUE_TA 01-SEP-13 NO NO NO
TSM_DST$ 01-SEP-13 NO NO NO
CONFIG$ 01-SEP-13 NO NO NO
SYS_IOT_TOP_16945 01-SEP-13 NO NO NO
WRM$_SNAPSHOT 01-SEP-13 NO NO NO
AQ$_ORDERS_QUEUETABL 01-SEP-13 NO NO NOSUBSTR(OBJECT_NAME,1 SUBSTR(SUBOBJECT_NAM TRACK_TIM SEG FUL LOO
-------------------- -------------------- --------- --- --- ---
HEAT_MAP_STAT$ 01-SEP-13 NO NO NO
SYS_IOT_TOP_19065 01-SEP-13 NO NO NO
AQ$_SYS$SERVICE_METR 01-SEP-13 NO NO NO
AQ$_WM$EVENT_QUEUE_T 01-SEP-13 NO NO NO
XDB$SCHEMA_URL 01-SEP-13 NO NO NO
AQ$_CHANGE_LOG_QUEUE 01-SEP-13 NO NO NO
SYS_IOT_TOP_92365 01-SEP-13 NO NO NO
I_HEATMAPSTAT$ 01-SEP-13 NO NO NO
SYS_IOT_TOP_92369 01-SEP-13 NO NO NO20 rows selected.
Notice, that after the bounce of the database and selecting everything from SCOTT.EMP we now have information in the V$HEAT_MAP_SEGMENT view. You are probably wondering, why are there 20 object the view is tracking when I only selected from SCOTT.EMP? You have to remember that heat maps are used to provided data access tracking at the segment level and data modification tracking at the segment and row level. Performing a select from SCOTT.EMP, the heat map view shows all the segments that SCOTT.EMP touches; in this case 20 different objects.
I see heat maps being helpful in a few different stages of the development lifecycle. For a DBA that is coming into a new environment and knows nothing of the environment, heat maps are going to provide a way for them to quickly identify what pieces of the application/database is being used. For developers it is going to show them what they are frequently hitting and what they may want to look at as they develop. Overall, heat maps are going to become a valuable tool for everyone to use at some stage in the development process.
Enjoy!
twitter: @curtisbl
blog: http://dbasolved.com
Bobby Curtis
I’m Bobby Curtis and I’m just your normal average guy who has been working in the technology field for awhile (started when I was 18 with the US Army). The goal of this blog has changed a bit over the years. Initially, it was a general blog where I wrote thoughts down. Then it changed to focus on the Oracle Database, Oracle Enterprise Manager, and eventually Oracle GoldenGate.
If you want to follow me on a more timely manner, I can be followed on twitter at @dbasolved or on LinkedIn under “Bobby Curtis MBA”.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I absolutely love your blog and find nearly all of your post’s
to be what precisely I’m looking for. can you offer guest writers to
write content available for you? I wouldn’t mind composing a post or
elaborating on a number of the subjects you write concerning here.
Again, awesome weblog!
my web page … eharmony special coupon code 2025
Hi there, I wish for to subscribe for this web
site to get newest updates, so where can i do it please help out.
my web page vpn
Thank you, your article surprised me, there is such an excellent point of view. Thank you for sharing, I learned a lot.
Hi there! I could have sworn I’ve been to this site before but after browsing through some
of the post I realized it’s new to me. Anyhow, I’m definitely delighted I found it and I’ll be book-marking and checking
back often! https://tinyurl.com/2ab5s5qz gamefly
magnificent post, very informative. I’m wondering why the opposite specialists
of this sector don’t realize this. You should continue your writing.
I am confident, you have a huge readers’ base already!
What is vpn https://tinyurl.com/2xsenm6a
Your article helped me a lot, is there any more related content? Thanks!
What’s up to all, it’s genuinely a pleasant for me to visit this site, it includes precious Information.
Very good post! We are linking to this particularly great
article on our website. Keep up the good writing.
Thank you for the good writeup. It in fact was a amusement account it.
Look advanced to far adsed agreeable from you!
By the way, how could we communicate? https://Glassi-Info.Blogspot.com/2025/08/deposits-and-withdrawals-methods-in.html
It’s nearly impossible to find experienced people on this topic,
but you seem like you kow what you’re talking about! Thanks https://jobsleed.com/companies/tonybet/
I always spent my half an hour to read this webpage’s posts everyday along with a cup of
coffee. https://tinyurl.com/yvodnsan eharmony special coupon code 2025
casinos in windsor canada, free spins no deposit usa 888 and
live dealer blackjack canada, or canadian roulette
winning numbers
Feel free to visit my page :: graton casino
rewards login (Wanda)
best usa online casino real money, no deposit sign up bonus casinos usa and instant payout Seven Clans Casino Newkirk uk, or online usa poker
best usa online casinos that payout, legitimate online
pokies australia and online slots free bonus no deposit uk, or australia
comanche casino promotions lasseters
Howdy! This article couldn’t be written much better! Going through this post reminds me
of my previous roommate! He constantly kept preaching about this.
I’ll send this information to him. Fairly certain he will have a very good read.
I appreciate you for sharing!
Feel free to surf to my webpage http://winkler-martin.de/messages/61849.html
top new united statesn games to make real money online casino, best
payout online casino united states and jackpot casino australia,
or does united kingdom have casinos
captain cooks goldie’s shoreline casino shoreline wa; Demetra, united kingdom review, does
canada have slot machines and canada bingo sites, or uk bingo call
yukon gold cash frenzy casino cash out (Ethel) app, ainsworth poker machines australia and united statesn online poker rooms, or how many casinos are in usa
Excellent breakdown of the topic. Enjoy star sports live cricket — previews and post‑match analysis. smooth HD streams. interviews, key moments, stats and tables. commentary in select languages.
merkur sportwetten
Feel free to visit my website; Wett Strategien Die Funktionieren
the blackjacks homepage canada, 50 free spins
no deposit 2021 nz and is playing poker for money illegal usa, or the top online pokies and casinos in united states
Look at my web page :: game world casino Zagreb
sportwetten strategie immer gewinnen
my blog basketball pro a Wetten
profi sportwetten vorhersagen
Take a look at my web blog Online Wett
esc wettquoten
Feel free to visit my web site … sportwetten Kombi tipps
wie funktionieren handicap wetten
Feel free to surf to my web site: beste App für sportwetten
bedeutung handicap wetten dass tickets gewinnen (Eli)
sportwette kreuzworträtsel
My web page … lay wetten anbieter
wett tipps heute net
My web page; sportwetten online paypal
hohe quoten wetten
Also visit my web-site: sportwetten Reload bonus
was bedeutet kombiwette
Here is my site … futsal live wetten
live wetten deutschland
My web page :: österreichische Wettanbieter
gute wett tipps
Feel free to visit my web-site sportwetten bonus angebote (Sonia)
Sportwetten HöChster bonus bonus freispielen
sportwetten online testsieger
My webpage Live Wetten Bonus
erfolgreiche wettstrategie
my blog post … Wettanbieter Vergleichen
tippen sportwetten
My homepage :: wetten vorhersagen app
wette gegen euro
my web blog :: wetten dass live im internet (Roseanne)
wettanbieter esports
Also visit my web blog – wetten Online paypal
halbzeit endergebnis wetten
Feel free to visit my homepage: beste quoten online sportwetten
wette gewinnen
my website :: quoten wetten dass
handicap Wetten bwin (https://loogi.Es/ufc-tippen/) gewinn ideen
ungarn schweiz Wetten Prognosen Heute
sportwetten verluste zurückholen
My web site … Kombiwette Rechner
tipps und tricks Sportwetten ergebnisse Gestern
wett tipps heute net
my website sichere wetten finden, Elena,
wettstrategie kleine quoten
my blog post … sportwetten Bonus ohne einzahlung neu
handicap bedeutung wetten
Also visit my blog wettbüro bonn; https://Www.Studioincontroluce.it/2025/10/14/was-online-wetten-heute-eishockey-vorhersagen/,
pferderennen bad harzburg wetten
Visit my page … gratiswette