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.

Posted in 11g Database, Oracle User Groups | Comments Off

TruTek Consulting is “Key” to Upgrade Success

115102 Upgrade Client in PA going Live on R1213 – Utility company

“I think all of TruTek’s assistance and especially the upgrade class were key to making this project successful.” Dan 2-15-12

115102 Upgrade Client in CA going live on R1213 – Research Organization

“This latest upgrade test on the new production hardware went very well.  I don’t see any problem getting the  upgrade done over a 3 day weekend.  I have you guys to thank for that.”  Terry 1-31-12

Posted in Uncategorized | Comments Off

Migrating to OATM

OATM
Don’t migrate CTXSYS schema to the  APPS_TS_TX_DATA tablespace. This will prevent you from using Cross Platform Transportable Tablespaces on 11i with 10gR2,  MOS Note 454574.1
Leave CTXSYS in it’s own tablespace as a default database schema.

The Oracle Applications Tablespace Model (OATM) introduces a new consolidated tablespace model in Oracle Applications, that uses 12 locally managed tablespaces for all products, including the temporary tablespace, system tablespace, and undo segments. In this revised Oracle Applications Tablespace Model, each Oracle Applications database object is mapped to a tablespace based on its Input/Output characteristics. This new model allows for easier maintenance, reduces space usage, and allows for potential run-time performance gains.
 
In this two day class we will:
1- Review OATM Model for Oracle Applications 11i
2- Install OATM migration utility
3- Run OATM migration utility
4- Review the parameters needed while starting OATM utility
5- Examine the OATM Menu Structure
6- Perform Additional Post Migration Steps
 
Combine this class with the “Database Migration from 32 bit to 64 bit, using DataPump and Transportable Tablespaces” class for 5 days of training.

 

Posted in Uncategorized | Comments Off

Slow TNS connections due to Network issue

Using OEL and 11g, an old / invalid DNS ip address in the first line of resolv.conf adds 60 seconds to each connection, causes very slow LOCAL=NO connections. The ip address in resolv.conf are checked from the top down. If the first IP Address is BAD, it waits 60 seconds to timeout. During the EBS 1211 MP it adds about 35 hours with 125K jobs, for a total of 53 hours. It runs in 18 hours using the correct DNS server in resolv.conf. It happens that the DB and AS are on the same server and should logically use a BEQUETH connection to eliminate the network performance issue.

Posted in Performance Tuning, R12.1 Upgrade, Uncategorized | Tagged , , | Comments Off

I Love the UKOUG

I’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.

Posted in Oracle User Groups | Comments Off

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.

Posted in Oracle User Groups | Tagged , , , | Comments Off

OAUG Connection Point Atlanta 2011 Nov 15-16

OAUG deserves a big “THANKS” from the Atlanta area BI and EBS upgrade customers. OAUG has recognized that travel budgets for training have deminished, and has therefore, brought the proverbial mountain to the users. Good job OAUG for recognizing the needs of the users.

Great Sessions. On Tuesday, the keynote featured Ognjen Pavlovic from Oracle, speaking on the EBS: Vision, Strategy and Roadmap.

I presented “The Big Picture: Upgrading to R12.1.3″ at 9:45. After my presentation, I was asked to fill in for a missing panelist, on the OAUG Fusion Council – Fusion Applications Panel Discussion. The next session was the Best of OOW Panel – Four Presentation We Can’t Stop Talking About. I summarized Nadia’s presentation from OOW on Co-Existence if Fusion with EBS. Bill Dunham summarized Sara Woodhull presentation. In my opinion, Nadia and Sara have the two most important presentations from OOW. Alyssa Johnson summarized the EBS Vision, Strategy and Roadmap presentation from OOW.

In the last session of the day on Tuesday, I presented the “Release 12.1.3 Technical Upgrade Overview”. This is my favorite presentation because I go into alot of details about what breaks in the upgradee and why. I also present my opinion on hardware options.

On Wednesday morning, I went to Barb Matthews’ presentation on “Lessons Learned from the R12.1 Upgrade”. This presentation is based on my upcoming article in OAUG Insight magazine, that Barb helped write.

Then, I went to Donna Campbell’s presentation on “What you need to know about Identifying Customizations, before Upgrading to Release 12.1.3. This was co-presented by Barb Matthews, with an interesting story of a customization that she wrote years ago.

This is a picture of the Release 12.1 Upgrade Panel, with Anne Carlson, Mike Swing and Bill Dunham shown.

R12.1 Upgrade Panel

Posted in E Business Suite | Comments Off

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.

Posted in Oracle User Groups | Comments Off

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.

 

Posted in E Business Suite, Oracle User Groups, R12.1 Upgrade | Comments Off

Recent email asks, “Why not wait for 12.2 to upgrade from 11.5.10.2″

One of the important things to consider with 11.5.10.2 is support. I think Extended Support ends Nov 2013 and without support I’m sure your business will want to upgrade.

You could wait for 12.2, but I wouldn’t want to implement a product with a brand new application server, until a few bugs settle out. 12.2 will use Weblogics.

The 12.1 upgrade is a functional upgrade and the 12.2 is a tech stack upgrade, probably with 11.2.0.3 for the DB. The big deal is WLS and the administration of possibly much more complicated configurations.

At OOW, a development manager at Oracle said that all the platforms, Peoplesoft, JDEdwards all have to run on WLS before they can attempt a “fusion” of the products. This seems a bit obvious, but illustrates the fact that Oracle will be really pushing us hard to 12.2.

If you really want to take on the complexity of educating your users in a completely new way of accounting and trying to resolve new undocumented AS issues at the same time by doing a 12.2 upgrade, good luck.

I think the more sensible approach would be to upgrade to 12.1.3 and then 2 years later upgrade to 12.2. Since, it’s primarily a tech stack upgrade with bug fixes, the users should not need to be retrained.

Posted in R12.1 Upgrade, Uncategorized | Comments Off