Topic: Database Administration >> DBMS_STATS
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| sathya |
Posted: Feb 28, 2008 11:59:03 AM |
Total Post: 2
Joined: Feb, 2008
|
Hi,
I am trying to gather stats for all tables in the database using a procedure.There are 2 schemas in the database eg.A and B.I have defined the procedure (in which i call DBMS_STATS.gather_table_stats) , in schema A.I have granted execute privilege on this procedure to schema B.When I connect as user B and run the the procedure defined in A , the procedure executes , but the gather_table_stats returns the error 'Object does not exist or insufficient privilege to analyse'. The object in fact exists.
Am i missing any privileges ?
|
|
|
robertoDBA |
| Posted: Feb 29, 2008 07:03:44 PM | |
|
Total Post: 1
Joined: Feb, 2008
|
Why you not execute the DBMS_STATS with system user and generating statistics fot both schemas
exec dbms_stats.gather_schema_stats(
ownname=> '"USERA"' ,
options=> 'GATHER AUTO');
exec dbms_stats.gather_schema_stats(
ownname=> '"USERB"' ,
options=> 'GATHER AUTO');
Regards
|
|
|
|
|
sathya |
| Posted: Mar 03, 2008 11:17:57 AM | |
|
Total Post: 2
Joined: Feb, 2008
|
Hi , Thanks a lot. This worked out.
Regards,
Sathya
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 335 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|