Issue
During the execution of the Gather Schema Statistics concurrent program, the log file reported that certain tables had locked statistics, such as:
-
WF_NOTIFICATION_OUT -
WF_NOTIFICATION_IN
This prevented the program from collecting fresh statistics.
Cause
The Gather Schema Statistics process failed because:
-
Some tables had their statistics locked, and
-
The FND_STATS_HIST table contained large volumes of data, impacting performance.
How to Identify Locked Statistics
Use the query below to find tables with locked statistics:
This will list all objects where statistics are currently locked.
Solution
1. Unlock All Tables in a Schema
If many tables are locked, you can unlock the entire schema at once:
2. Unlock Statistics for a Specific Table
To unlock statistics for a single table, run:
Example:
No comments:
Post a Comment