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.