Oracle Error QSM-00792: the specified SQL statement cannot be stored in the workload because one or more tables have missing statistics

Oracle Error Message

QSM-00792: the specified SQL statement cannot be stored in the workload because one or more tables have missing statistics

Reason for the Error

The user attempted to add a workload statement that contains a table without statistics. Access Advisor requires all referenced tables to have valid statistics.

Solution

Validate the workload statement and retry the operation.