Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: execute immediate insufficient privilege error
On Aug 10, 8:59 am, Faraz <sarfarazla..._at_gmail.com> wrote:
> HI all,
> I am trying to rebuild an index in a procdeure but some how getting
> the error below
> ERROR at line 1:
> ORA-01031: insufficient privileges
> ORA-06512: at "SCHD.CLEANUP", line 33
> ORA-06512: at line 1
>
> the owner of package and the index is the same user who invokes the
> procedure to do this task.
>
> any help will be appreciated.
Privileges granted through roles don't propagate to a stored procedure unless that procedure is compiled with authid current_user. This privilege is, most likely, granted through a role and not directly.
David Fitzjarrell Received on Fri Aug 10 2007 - 09:08:38 CDT
![]() |
![]() |