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: CREATE TABLE using DBMS_SQL

Re: CREATE TABLE using DBMS_SQL

From: Dennis Wetherell <dwether_at_mail.arco.com>
Date: 1998/02/11
Message-ID: <01bd372a$c8822b50$aed0e288@ato-10111>#1/1

Bradley,

I suspect the problem is that the compiling ID has the create table privilege granted through a role. Privileges granted through a role do not work when invoked from a stored procedure.

I just ran into a similar error using dbms_sql and got around it by making sure that the necessary privilege was granted explicitly to the compiling ID.

Bradley Safer <bradley.safer_at_hbo.com> wrote in article <34E1E14B.F49E6642_at_hbo.com>...
> From page 10-2 of the Oracle7 Server Application Developer's Guide:
> "Additionally, you can parse any data manipulation language (DML) or
> data definition language (DDL) statement using the DBMS_SQL package."
>
> When I make calls to the following procedure I get: "ORA-01031
> Insufficient Privileges" however, when issuing the DDL contained in
> "createString" at the SQL*Plus command line under the same id it works
> fine:
Received on Wed Feb 11 1998 - 00:00:00 CST

Original text of this message

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