Jack Wang
2003-12-30 05:55:57 UTC
Oracle 9203 on W2K with SP4
I wonder what are privileges required for
dbms_stats.gather_schema_stats(ownname=>'someone else', cascade=>true)?
A user with the privileges of 'create session' and 'analyze any' was able to
dbms_stats.gather_schema_stats(ownname=>'someone else'). What is required
for the cascade=>true bit?
Given 'select any table' still produces
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_STATS", line 9357
ORA-06512: at "SYS.DBMS_STATS", line 9839
ORA-06512: at "SYS.DBMS_STATS", line 10023
ORA-06512: at "SYS.DBMS_STATS", line 10077
ORA-06512: at "SYS.DBMS_STATS", line 10054
ORA-06512: at line 1
Any help is appreciated.
- Jack
I wonder what are privileges required for
dbms_stats.gather_schema_stats(ownname=>'someone else', cascade=>true)?
A user with the privileges of 'create session' and 'analyze any' was able to
dbms_stats.gather_schema_stats(ownname=>'someone else'). What is required
for the cascade=>true bit?
Given 'select any table' still produces
ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS.DBMS_STATS", line 9357
ORA-06512: at "SYS.DBMS_STATS", line 9839
ORA-06512: at "SYS.DBMS_STATS", line 10023
ORA-06512: at "SYS.DBMS_STATS", line 10077
ORA-06512: at "SYS.DBMS_STATS", line 10054
ORA-06512: at line 1
Any help is appreciated.
- Jack