Author Archives: Bobby

About Bobby

I live in Chandler, Arizona with my wife and three daughters. I work for US Foods, the second largest food distribution company in the United States. I have worked in the Information Technology field since 1989. I have a passion for Oracle database performance tuning because I enjoy challenging technical problems that require an understanding of computer science. I enjoy communicating with people about my work.

Exadata presentation

Slides for a presentation on Exadata that I did at work: https://www.bobbydurrettdba.com/uploads/ExadataDistinctives.ppt Hopefully I balanced out the good and bad.  Exadata has some good features but we have hit a large number of bugs.  Given adequate testing you could benefit … Continue reading

Posted in Uncategorized | Leave a comment

Autotask clients fall into OTHER_GROUPS on custom plans

The autotask clients run in their own resource consumer groups.  So, stats, space, and SQL tuning tasks have some consumer groups that you have to include in your own plans if your plan will be active while the window for these tasks … Continue reading

Posted in Uncategorized | Leave a comment

Resource Manager wait events

You many wonder why you should care about Oracle Resource Manager wait events.  You should care because every Oracle 11g database uses Resource Manager by default during the maintenance windows.  So, even if you have not intentionally configured RM you may … Continue reading

Posted in Uncategorized | Leave a comment

Oracle blog aggregators

Found a couple of Oracle blog aggregators.  These sites combine the many Oracle DBA blogs into single sites. http://www.orafaq.com/ http://orana.info/ – NO LONGER EXISTS It looks like Oracle has an aggregator for their own employees: https://blogs.oracle.com/ Pretty cool. – Bobby

Posted in Uncategorized | Leave a comment

DBA_HIST_ACTIVE_SESS_HISTORY

I’ve been using the view DBA_HIST_ACTIVE_SESS_HISTORY to investigate problems lately.  I’ve found this useful for both performance problems and hangs.  I’ve done some more complicated things, but I find that just dumping out every column of the view for a … Continue reading

Posted in Uncategorized | 2 Comments

How to show currently active events

Found a helpful PL/SQL block in this presentation: http://www.sagelogix.com/idc/groups/public/documents/sagelogix-presentation/sage016048.pdf – NO LONGER EXISTS This shows you which events are set – i.e. by an alter system set events command.  I modified this to have a larger range of event values … Continue reading

Posted in Uncategorized | Leave a comment

DBMS_SPACE.SPACE_USAGE

Found a cool package and procedure while working on a problem today. DBMS_SPACE.SPACE_USAGE This takes a segment and shows how many blocks are free or partially filled. In our case we hit a bug which resulting in tons of unformatted … Continue reading

Posted in Uncategorized | Leave a comment

11g stats not gathered on empty subpartitions

See this testcase run on 11.2.0.3: https://www.bobbydurrettdba.com/uploads/emptystats.zip If you have a subpartitioned table – at least of the type that I tested – the Oracle delivered stats job will leave the statistics empty (NULL) for empty subpartitions instead of setting … Continue reading

Posted in Uncategorized | Leave a comment

Maximum active sessions exceeded

Here is a new script and example output: https://www.bobbydurrettdba.com/uploads/maxactive.zip Use this query if you are using resource manager and have set a maximum number of active sessions.  This SQL reports the instance number and resource consumer group that have exceeded … Continue reading

Posted in Uncategorized | Leave a comment

FINAL_BLOCKING_INSTANCE and FINAL_BLOCKING_SESSION

Discovered these columns on the v$session and gv$session views: FINAL_BLOCKING_INSTANCE and FINAL_BLOCKING_SESSION These appear to be new in 11.2.  I checked an 11.1.0.7 instance and they weren’t there.  They were there in an 11.2.0.1 instance.  Interestingly an early version of … Continue reading

Posted in Uncategorized | Leave a comment