begin DBMS_STATS .GATHER_TABLE_STATS(null,'XXX',granularity => 'DEFAULT',force=> true); end;
select owner,TABLE_NAME, PARTITION_NAME, OBJECT_TYPE, NUM_ROWS, BLOCKS, SAMPLE_SIZE,
to_char(LAST_ANALYZED,'YYYY/MM/DD HH24:MI:SS') LAST_ANALYZED, GLOBAL_STATS, USER_STATS, STALE_STATS
from dba_TAB_STATISTICS where TABLE_NAME IN('CMN_DRAFT')
NUM_ROWS<>SAMPLE_SIZE
;
select *From sales;
select *From sales partition (P02);
select *from SYS."_user_stat" where C1 IN('SALES');