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: Permissions problem using DBMS_SQL Package

Re: Permissions problem using DBMS_SQL Package

From: Didier LENQUETTE <didier.lenquette_at_steria.fr>
Date: Mon, 18 Oct 1999 17:47:10 GMT
Message-ID: <y2JO3.54$p%6.1786510@France.EU.net>


Hi bevets !

When you run PL/SQL role are desactivated ! Grant the appropriate privilege to the user belonging the procedure (or package) executing your dynamic SQL!
For your problem, GRANT CREATE TABLE TO your_user !

Regards

bevets <bevets_at_mylaptop.com> a écrit dans le message : 7udik3$fca$1_at_uranium.btinternet.com...
> Can anyone help please???
>
> I've compiled my own package procedure CREATE_COPY_TABLE containing a call
> to DBMS_SQL.PARSE. The statement being parsed is CREATE TABLE fred AS
> SELECT * FROM joe - i.e. making a copy of table joe.
> I've then written a second, anonymous block which calls my procedure, and
> run it from the same userid that created the procedure, but when I run it
I
> get:
>
> ORA-01031: insufficient privileges
>
> Everything is using the same userID and I can execute the exact same
'ceate
> table' statement directly from SQL*Plus without problems, so why doesn't
it
> work as part of the procedure?
> Can anyone explain this mystery to me please and how I can solve it?
> Thanks.
> (PS. It's Personal Oracle 8.0.4 on Windows 98. The user ID has Connect,
> Resource and DBA privileges.)
>
>
Received on Mon Oct 18 1999 - 12:47:10 CDT

Original text of this message

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