Home » RDBMS Server » Server Administration » Privilege to run dbms_stats package
Privilege to run dbms_stats package [message #60526] Thu, 12 February 2004 05:39 Go to next message
Veera Nallamilli
Messages: 1
Registered: February 2004
Junior Member
What privilege is needed to run dbms_Stats.gather_table_stats

to update table statistics for a different schema ?

I know that I can use either 'sys' or 'system'  ..

 

Thanks
Re: Privilege to run dbms_stats package [message #60528 is a reply to message #60526] Thu, 12 February 2004 08:37 Go to previous message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
"analyze any"

SQL> create user test identified by test default tablespace users;     

User created.

SQL> grant create session,analyze any to test;

Grant succeeded.

SQL> connect test/test
Connected.
SQL> execute dbms_stats.gather_table_stats('SCOTT','EMP');

PL/SQL procedure successfully completed.



-Thiru
Previous Topic: Very Urgent Help needed - Arabic support in Forms6i& reports6i
Next Topic: ROWID
Goto Forum:
  


Current Time: Fri Sep 20 10:42:32 CDT 2024