Mini How To Find The Locked Statistics in Oracle

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Mini How-to: Find the locked statistics in Oracle Task You would like to find locked statistics in Oracle

database. Solution You could find this with the following SQL:
SELECT * FROM DBA_TAB_STATISTICS WHERE TABLE_NAME = ' My_Table_Name ';

My_Table_Name is the name of the table which you would like to check whether the statistics are locked. There are three views you could use depends on your desire:
DBA_TAB_STATISTICS displays optimizer statistics for all tables in the database. USER_TAB_STATISTICS displays optimizer statistics for the tables owned by the current user. This view does not display the OWNER column. ALL_TAB_STATISTICS displays optimizer statistics for the tables accessible to the current

user. In an SAP system you can use the report RSORADJV for this purpose or use SQL*Plus at OS level.

From SAP it could be checked with transaction DB20.

You might also like