Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

Stats With Histogram

Trying to run schema stats and get histogram.
If i run :
DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'SYS', cascade=>TRUE,  method_opt=>'FOR ALL  COLUMNS SIZE 1');
it completes successfully.  If i change SIZE to 256

ORA-20000: Cannot parse for clause: FOR ALL COLUMNS SIZE 256 ORA-06512: at "SYS.DBMS_STATS", line 25335 ORA-06512: at "SYS.DBMS_STATS", line 25414 ORA-06512: at "SYS.DBMS_STATS", line 25367 ORA-06512: at line 3

How do i get stats with histogram for sys?
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xoxomos
xoxomos

ASKER

Right!  256 INDEED:-(
Avatar of xoxomos

ASKER

Thanks again
No problem.

Just remember:  The online docs are always your friend.
Avatar of xoxomos

ASKER

yes, i read the '.........between 1 and 25', then filled in 6 from a very old habit.
thanks again