Database Tuning (MOSC)

MOSC Banner

DBMS_REDEFINITION changed the plan statistics of oracle table with foreign key constraint to primary

edited Jun 9, 2011 11:15PM in Database Tuning (MOSC) 1 comment
Hi All,
This caught us unaware in our production environment.
Unfortunately the table that started Full Table Scans after the Select query's next hard parse contains 32 millions rows.
The sessions accumulated and the instance ran out of memory.

We are using oracle10g, 10.2.0.4.0

The redefinition was implemented on a Sunday morning and by 9:00 am Monday I had a serious issue on my hands.
The select statements running full table scans all referenced the redefined table primary key (WHERE LARGE_TBL.foreign_id = REDEF_TBL.id)

We used the RESTORE statistics for the large table, NO_INVALIDATE => FALSE.
And implemented SQL Profiles to reduce the cost of the Select statements to get the production system running again.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center