Configuring an Oracle Database to have a ‘self-cleaning’ PLAN_TABLE
On the database server, go to $ORACLE_HOME/rdbms/admin copy utlxplan.sql to utlxplan.sql.original – you don’t want to lose the original Oracle script. Edit utlxplan.sql and change it to the following...