How to fix the Oracle error QSM-00796: the specified SQL statement cannot be stored in the workload because table string does not have valid statistics?

In this post, you’ll learn more about the Oracle ErrorQSM-00796: the specified SQL statement cannot be stored in the workload because table string does not have valid statistics with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

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

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

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

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

You can fix this error in Oracle by following the below steps

Gather statistics for the referenced table and retry the operation.

Tags :

Leave Your Comment