Oracle Error QSM-00796: the specified SQL statement cannot be stored in the workload because table string does not have valid statistics

Oracle Error Message

QSM-00796: the specified SQL statement cannot be stored in the workload because table string does not have valid statistics

Reason for the Error

The user attempted to add a workload statement that references a table with missing statistics.

Solution

Gather statistics for the referenced table and retry the operation.