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: dynamic SQL question

Re: dynamic SQL question

From: Arjan van Bentem <avbentem_at_DONT-YOU-DAREdds.nl>
Date: 1999/01/07
Message-ID: <369509c2$0$24719@newton>#1/1

steve_young wrote
>SQL> execute exec('create table t(f integer)');
>ORA-01031: insufficient privileges

The Oracle user that issues this exec('create table t(f integer)') simply has not the proper privilges to do so. Note that users should get those privileges explicitly (like: grant create table to scott) and not by a role if you need them in stored procedures. Oracle uses early binding for stored procedures but can not determine if a role has changed when running a stored procedure, so explicit grants are needed.

Arjan. Received on Thu Jan 07 1999 - 00:00:00 CST

Original text of this message

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