RMOUG – Graham Wood 25+ years at Oracle

Graham’s presentation on the “Hidden” Features of the Oracle Database:

Since, these presentations aren’t generally published, I took notes, not guaranteed to be correct.

Graham Wood Hidden Features

Free Features

dbms_monitor.session_trace_enable  10g

plan_stat   11g argument added to dbms_monitor.session_trace_enable 

dump plan when cursor is closed

now, after the first execution, never, all_executions, they dump row source statistics

cursor mapping broken 11gr1, statement text printed on every execute

long cursor numbers 11gR2, not so human readable

TKPROF enhancements

                Prints sql ID and plan hash for each statement

                Reports First, Avg, Max from multiple row source dunmps

                But not CLOSE … DOH!

Enable trace foe individual statements

                Alter session set events ‘sql_trace [sql:…]

Getting sql info V$SQLstat (10g), doesn’t use any latches

                Using V$SQL can make latch problems worse

DBMS_XPLAN.DISPLAY_CURSOR,

EXPLAIN_PLAN doesn’t work correctly, so use DBMS_XPLAN

Select * from table (dbms_xplan.display_cursor (“atnoianf82398nhfa’, NULL, ‘ADVANCED’));

Select * from table (dbms_xplan.display_cursor (format=>’ALLSTATS LAST’))

Use the CARDINALITY HINT to check the actual plan

Select /*+ gather_plan_statistics +/

Set a parameter for running an individual statement

SELECT /* + OPT_PARAM(‘star_transformation’….

_optimizer_ignore_hints=TRUE, useful for testing

Optimizer Statistics

Pending Statistics

                Separates stats collection from stats publishing

                Capture stats as pending

                Test using pending stats

                Publish once verified

Controlled by parameter – optimizer_use_pending_statistics

                Determines if the optimizer will use pending stats

Set to FALSE by default in 11g

                Use dbms_stats.set_*_stats

                Very useful for min max values

Setting Statistics

Dbms_stats.datearray(to_date(‘01/01/1999’, ‘MM/DD/YYYY)’, sysdate)

Dbms_stats.set_column_stats(‘scott’,’emp’,’hiredate’,srec=>sr);

 

 

Gather incremental stats in 11g uses “synopsis”. Make sure to clear all the stats and use one pass to create the “SYNOPSIS”.

LISTAGG – Analytic Query

First_value, nth value, last value

External Tables

External Table Preprocessor

Stop use SQL Loader – user External tables  – parallel loads with a degree of parallelism

                The use of a “preprocessor” allows for uncompressing zip files

                External tables allow us to filter the data before loading the data.

 

Sqlplus –prelim / as sysdba   gives access to in memory structures with no SQL access, no latches or SQL allowed.

Aren’t Free

AWR captures top 5

dbms_workload_repository.modify_snapshot_settings (topsql=>200)

dbms_workload_repository.add_colored_sql(‘sql_id’) to capture marked SQL, this marks the SQL

 

Reporting

AWR SQL report

AWR Diff Report

AWR RAC report

ASH report any time period, instance or filtered, filtering at session level is like SQL trace

                Use ADDM report!

Check Cardinality using SQL Monitor, key to work out why the execution plan may not be optimal.

I Love the UKOUG

i-am-speaking-at-ukoug-2011-copyI’m at the UKOUG in Birmingham, England and I had a wonderful time. I presented at the UKOUG on how to “Tune Packaged Applications”, like EBS and Demantra.

I’ve never been to a foriegn country where they spoke mostly English. The English people are great, very direct, but not as harshly direct as the Dutch or Germans (my grandmother was very German). My wife wants me to bring chocolates, so I went to the store and bought whatever looked good and different from what we have in the US. I’ll try it all out when I get home.

I’m speaking at RMOUG

The Big Picture of the R12.1.3 Upgrade

It’s coming! Don’t close your eyes. Face it head on. Ease your worries by attending this walkthrough of an upgrade from Release 11.5.10.2 to Release 12.1.3. We’ll describe the tried and true tips and techniques when we upgrade – everything from “oops – did you know about these extra patches?” to ways to decrease your down time.

The Big Picture shows at a high level the tasks and challenges of the R12.1.3 upgrade. The Big Picture describes how to get started, how to motivate business users to upgrade, and whether to re-implement or upgrade. It covers the technical upgrade steps with a few functional steps; understanding these steps helps all team members work toward a better upgrade.

Connection Point Atlanta November 2011

Tuesday November 15th

Today I had a very busy day. I presented “The Big Picture” after the keynote. The next hour I was on the OAUG Fusion Council – Fusion Applications Panel Disscusions, with John Stouffer and Alyssa Johnson.

Then, I summarized Nadia’s Co-Existence presentation, from the Best of OOW Panel with Bill Dunham and Alyssa Johnson, and finished the day with the “Release 12.1.3 Technical Upgrade Overview” presentation.

Connection Point – Atlanta

I’m speaking at the Atlanta Connection Point next week on Nov15th and 16th.

I have two presentations:

The R12.1.3 Technical Upgrade Overview

and,

 The Big Picture of the R12.1 Upgrade

It’s coming! Don’t close your eyes. Face it head on. Ease your worries by attending this walkthrough of an upgrade from Release 11.5.10.2 to Release 12.1.3. We’ll describe the tried and true tips and techniques when we upgrade – everything from “oops – did you know about these extra patches?” to ways to decrease your down time.

The Big Picture shows at a high level the tasks and challenges of the R12.1.3 upgrade. The Big Picture describes how to get started, how to motivate business users to upgrade, and whether to re-implement or upgrade. It covers the technical upgrade steps with a few functional steps; understanding these steps helps all team members work toward a better upgrade.