ORA-24237: object id argument passed to DBMS_UTILITY.INVALIDATE is not legal
FranklinFaces.com
FranklinFaces.com - Oracle & SQL Server Database Forums for all IT Professionals
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



ORA-24237: object id argument passed to... Expand / Collapse
Author
Message
Posted 1/8/2010 6:56:38 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 1/26/2010 1:58:14 PM
Posts: 131, Visits: 377
I wanted to compile schema as sys and was getting this error .  Couldn't figure it out and then finally i did after some research. 

 

SQL> conn / as sysdba

Connected.

SQL> exec dbms_utility.compile_schema('SERVICEACCT');

BEGIN dbms_utility.compile_schema('SERVICEACCT'); END;

 

*

ERROR at line 1:

ORA-20000:

ORA-06512: at "SYS.DBMS_UTILITY", line 347

ORA-24237: object id argument passed to DBMS_UTILITY.INVALIDATE is not legal

ORA-06512: at line 1

 

Cause

SYS does not have the required privileges to run the procedure.

Solution

To check whether SYS has the required privileges, run the following query connected as SYS:

SQL> select username, privilege from user_sys_privs order by privilege;

If SYS does not have the following privileges, then grant them to SYS directly:

CREATE ANY DIMENSION
CREATE ANY EVALUATION CONTEXT
CREATE ANY INDEX
CREATE ANY INDEXTYPE
CREATE ANY LIBRARY
CREATE ANY MATERIALIZED VIEW
CREATE ANY OPERATOR
CREATE ANY PROCEDURE
CREATE ANY RULE
CREATE ANY RULE SET
CREATE ANY SYNONYM
CREATE ANY TRIGGER
CREATE ANY TYPE
CREATE ANY VIEW

 

 

hope this helps

Post #176
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: silencer

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:03am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.172. 9 queries. Compression Disabled.