引发硬解析的情况:
突然出现了新的执行计划表明sql进行了重新硬解析(注意重新硬解析不一定
产生新的执行计划)
BEGIN
DBMS_STATS.GATHER_TABLE_STATS(ownname => 'TEST',
tabname => 'TEST',
estimate_percent => 100,
method_opt => 'for all columns size repeat',
no_invalidate => TRUE,
degree => 8,
cascade => TRUE);
END;
-- no_invalidate - Do not invalide the dependent cursors if set to TRUE.
-- The procedure invalidates the dependent cursors immediat