Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to gather table stats for tables in a different schema

816802Mar 5 2013 — edited Mar 5 2013
Hi All,

I have a table present in one schema and I want to gather stats for the table in a different schema.

I gave GRANT ALL ON SCHEMA1.T1 TO SCHEMA2;

And when I tried to execute the command to gather stats using

DBMS_STATS.GATHER_TABLE_STATS (OWNNAME=>'SCHMEA1',TABNAME=>'T1');

The function is failing.

Is there any way we can gather table stats for tables in one schema in an another schema.

Thanks,
MK.
This post has been answered by Solomon Yakobson on Mar 5 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2013
Added on Mar 5 2013
1 comment
865 views