Running DBMS_STATS for a particular set of tables in a schema
We have DBMS_STATS scheduled for a schema to run on a daily basis and it takes around 3-4 hrs to complete. We just have only one active schema for the whole database.
One of our critical batch process hangs whenever we run it before the regular schedule of DBMS_STATS as the tables referred by the process gets updated a lot but it runs to success when we run it imeediately after the regular schedule of DBMS_STATS. For some business reasons we could not wait for the DBMS_STATS to complete daily before running the batch process and also we could not move the DBMS_STATS from the current schedule time. So we are planning to gather DBMS_STATS only for the set of tables referred by batch process before running it.