Oracle® Health Sciences Translational Research Center Installation Guide Release 3.1 E66212-06 |
|
![]() Previous |
![]() Next |
This section discusses Oracle statistics.
Following are the options used while collecting statistics:
Auto sample size
Statistics collected only at object level, partition statistics are not collected
Block sample is used to get a good spread
Histogram considerations left for Oracle to decide
DBMS_SCHEMA_STATS used. You may also consider DBMS_TABLE_STATS similar options used as follows:
exec dbms_stats.gather_schema_stats (ownname=> '<OWNER>', method_opt=> 'for all columns size auto', cascade=>true, block_sample => true, granularity => 'GLOBAL', estimate_percent=> dbms_stats.auto_sample_size, options => 'GATHER STALE')
Note:
|
Use the following script to find all the tables in the ODB schema that need to have statistics collected for them.
Note: Any table that is excluded from this script should have the statistics deleted and locked if they were collected by some other step. |
select table_name from user_tables where iot_type is null and substr(table_name,1,9) <> 'W_EHA_STG' and substr(table_name,-4) <> '_STG'