Database Tuning (MOSC)

MOSC Banner

SQL Statement In Procedure within Package Is Slow Accross DBLink

edited Jun 25, 2012 5:10AM in Database Tuning (MOSC) 6 commentsAnswered
As the subject states i have an issue where an index is not being used when a procedure in a package is run accross a dblink. 

I have traced the sessions both locally on the instance and created a procedure to trace the dblink session.  Both trace files have been run through tkprof and results are as below.

I have tries to create a sql baseline of the correct execution plan, however it appears to be being ignored, any ideas?

TKPROF of SQL Over DBLink********************************************************************************SQL ID: 3sf5fyatf1jud Plan Hash: 3038238297SELECT /*+ DRIVING_SITE(ai) INDEX (ai IDX_AGREEMENT_INV_AR) */

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