Home » RDBMS Server » Performance Tuning » FND_STATS.GATHER_SCHEMA_STATISTICS
FND_STATS.GATHER_SCHEMA_STATISTICS [message #65597] Thu, 04 November 2004 02:20 Go to next message
Leonie
Messages: 9
Registered: November 2004
Junior Member
I am trying to use the standard Oracle procedure
FND_STATS.GATHER_SCHEMA_STATISTICS on our Warehouse instance.
When I run the code in SQLPlus logged in as APPS user, it works fine and
gathers the statistics for the ENI schema tables;
exec APPS.FND_STATS.GATHER_SCHEMA_STATISTICS('eni',10,null,'NOBACKUP',null)
But when I run this code logged in as OWBRUN user (which is what I need to run
it as)
in SQLPlus or if I setup a custom Concurrent Program to run it
I get the following error;
SQL> exec
APPS.FND_STATS.GATHER_SCHEMA_STATISTICS('eni',10,null,'NOBACKUP',null)
BEGIN APPS.FND_STATS.GATHER_SCHEMA_STATISTICS('eni',10,null,'NOBACKUP',null);

END;
*
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "APPS.FND_STATS", line 425
ORA-06512: at "APPS.FND_STATS", line 386
ORA-06512: at line 1
I have granted OWBRUN execute privelege on APPS.FND_STATS and SYS.DBMS_STATS
as I can see it uses this.
What am I missing??
Re: FND_STATS.GATHER_SCHEMA_STATISTICS [message #65599 is a reply to message #65597] Thu, 04 November 2004 02:58 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10694
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
login as user OWBRUN.
try to run a simple analyze command over a table in schema ENI. Else give necasary privs.
Re: FND_STATS.GATHER_SCHEMA_STATISTICS [message #65600 is a reply to message #65599] Thu, 04 November 2004 03:23 Go to previous messageGo to next message
Leonie
Messages: 9
Registered: November 2004
Junior Member
Just tried this, normal analyse works ok though.
Re: FND_STATS.GATHER_SCHEMA_STATISTICS [message #65602 is a reply to message #65600] Thu, 04 November 2004 03:34 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10694
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
would the version be 8.1.7.1 /8.1.7.2 ?
if so, seems that there is a bug involved when switching between the calling user
and the actual object owner.

I cannot reproduce the case in 9i. (I dont have a 8i databases right now)
Re: FND_STATS.GATHER_SCHEMA_STATISTICS [message #65603 is a reply to message #65602] Thu, 04 November 2004 04:03 Go to previous messageGo to next message
Leonie
Messages: 9
Registered: November 2004
Junior Member
Hi, no we are on 9.
Re: FND_STATS.GATHER_SCHEMA_STATISTICS [message #65607 is a reply to message #65603] Thu, 04 November 2004 04:24 Go to previous message
Mahesh Rajendran
Messages: 10694
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Please post the thread again.
May be someone can give a better response...
Previous Topic: 8i Inserts + Updates SLOW !
Next Topic: database doesnt start
Goto Forum:
  


Current Time: Sun Sep 20 16:06:22 CDT 2020