Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Please help! ORA-01031: insufficient privileges

Re: Please help! ORA-01031: insufficient privileges

From: Sybrand Bakker <oradba_at_sybrandb.demon.nl>
Date: Mon, 10 Dec 2001 22:43:50 +0100
Message-ID: <h3ba1ugnl0rr381p10il4vvmef6fq2sefg@4ax.com>


On Mon, 10 Dec 2001 15:55:50 -0500, "Syltrem" <syltrem_at_videotron.spammenot.ca> wrote:

>In a PL/SQL procedure created under user ABC I do:
>execute immediate 'alter index ABC.MY_INDEX rebuild online';
>And I get this:
>ERROR at line 1:
>ORA-01031: insufficient privileges
>ORA-06512: at "ABC.MY_PROCEDURE", line 33
>
>What is the problem? The table and the index are owned by ABC. I can do it
>at the SQL> prompt when connected as ABC or SYS.
>I know there is this problem about having privileges set by a role instead
>of a direct grant, but in this case the object belong to ABC and ABC
>executes the procedure. I have tried:
>grant all on idx_rebuild_info to sys;
>but that does not help either.
>
>What am I doing wrong?
>
>Thanks!

Please visit
http://osi.oracle.com/~tkyte/Misc/RolesAndProcedures.html

Hth

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Mon Dec 10 2001 - 15:43:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US