SQL Statement In Procedure within Package Is Slow Accross 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) */