Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: STUN_ORA - Messages for Function Group STUN_ORA (Oracle Statistics)
Message number: 012
Message text: No statistical data exists for this statement
The system was unable to find an entry that contained all statistical
records in an internal table.
After displaying the message, the system continues processing.
This is due to a temporaray problem or an internal error.
Restart the database and try to reproduce the error. If you can
reproduce the error, contact SAP support.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
STUN_ORA012
- No statistical data exists for this statement ?The SAP error message "STUN_ORA012 No statistical data exists for this statement" typically occurs in the context of Oracle databases when there is an attempt to retrieve statistical data for a SQL statement that has not been executed or for which no statistics have been collected. This can happen in various scenarios, such as when using the SQL Performance Analyzer or when trying to analyze the performance of a specific SQL statement.
Cause:
- No Execution History: The SQL statement has not been executed, so there are no statistics available.
- Statistics Not Collected: The database may not have collected statistics for the SQL statement, which can happen if the statement is new or infrequently executed.
- Database Configuration: The database may not be configured to collect statistics automatically, or the statistics collection job may not have run recently.
- SQL Plan Management: If the SQL plan management feature is used, it may not have any plans available for the statement.
Solution:
- Execute the SQL Statement: Ensure that the SQL statement has been executed at least once. This will allow the database to collect execution statistics.
- Collect Statistics: Use the
DBMS_STATS
package to manually collect statistics for the relevant tables or schemas. For example:EXEC DBMS_STATS.GATHER_TABLE_STATS('schema_name', 'table_name');
- Check Automatic Statistics Gathering: Ensure that the automatic statistics gathering job is enabled and running. You can check the status of the job in the DBA_SCHEDULER_JOBS view.
- Review SQL Plan Management: If using SQL Plan Management, ensure that the SQL statement is included in the SQL plan baseline.
- Use AWR Reports: If you have access to AWR (Automatic Workload Repository) reports, you can analyze the performance of SQL statements and see if there are any recommendations for gathering statistics.
Related Information:
By following these steps, you should be able to resolve the "STUN_ORA012 No statistical data exists for this statement" error and improve the performance analysis of your SQL statements in SAP.
Get instant SAP help. Sign up for our Free Essentials Plan.
STUN_ORA011
Position the cursor on a line in the list
What causes this issue? You have not selected a line in the list.System Response The system continues with the function after the message.How to fix...
STUN_ORA010
Unable to execute EXPLAIN for SQL statement
What causes this issue? The system was unable to generate an Explain Plan for the SQL statement you selected.System Response After the error message...
STUN_ORA013
No SQL statement exists
What causes this issue? While trying to retrieve the complete SQL Statement, the system determined that the statement has a null length. Assume that ...
STUN_ORA014
You have not defined a recording point
What causes this issue? You are attempting to analyze a shared SQL area after setting a recording point. However, you have not defined a recording po...
Click on this link to search all SAP messages.