why don't you use dbms_utility.analyze_schema ???
for your problem, I guess the user hasn't been granted execute on the DBMS_STATS package ...