How to reload the SYS.DBMS_STATS package into the database
Recreate the SYS.DBMS_STATS package by running the following scripts.
SQL> connect / as sysdba
Drop the SYS.DBMS_STATS package:
SQL> drop package DBMS_STATS;
Recreate the SYS.DBMS_STATS package:
1) Release 9.2, 10.1 and 10.2:
SQL> @?/rdbms/admin/dbmsstat.sql
SQL> @?/rdbms/admin/prvtstas.plb
SQL> @?/rdbms/admin/prvtstat.plb
2) Release 11.1 and 11.2:
SQL> @?/rdbms/admin/dbmsstat.sql
SQL> @?/rdbms/admin/prvtstas.plb
SQL> @?/rdbms/admin/prvtstai.plb
SQL> @?/rdbms/admin/prvtstat.plb
In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.