Database Tuning (MOSC)

MOSC Banner

Do Locking and Unlocking Statistics without gathering statistics can invalidate dependent cursor

Hello,

I have a big historical table and we locked the statistics to maintain the execution plan of the queries dependent to it. the value of no_invalidate is set to TRUE.

i migrated the DB from 11g to 19c and maintained to keep this job. All stats are also exported and imported to the new db and locked.

we unlocked the stats using dbms_stats.unlock_table_stats to update the column "date_time_stamp" to current date using dbms_stats.set_column_stat.

however we noticed a sudden slow in behavior of one call on this historical table and found out the cursor was marked for purge and a new cursor is generated right exactly at the time the unlock stats happened.

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