-- delete statistics for database
begin
DBMS_STATS.DELETE_DATABASE_STATS;
end;
--delete statistics schema
exec DBMS_STATS.DELETE_SCHEMA_STATS('PROD1');
exec dbms_stats.delete_schema_stats('SYS');
delete statistics Table
begin
DBMS_STATS.DELETE_TABLE_STATS (
ownname => 'PROD1',
tabname => 'SITE',
partname => NULL,
stattab => NULL,
statid => NULL,
cascade_parts => TRUE,
cascade_columns => TRUE,
cascade_indexes => true,
statown => NULL,
no_invalidate => FALSE);
end;
Search This Blog
Total Pageviews
Sunday, 2 October 2011
Is my schema columns have histograms calculated ??
histogram schema
select * from DBA_TAB_HISTOGRAMS
where endpoint_number > 1 and owner='PROD1'
select * from DBA_TAB_HISTOGRAMS
where endpoint_number > 1 and owner='PROD1'
Subscribe to:
Posts (Atom)
Oracle DBA
anuj blog Archive
- ▼ 2011 (362)