Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Execute immediate problem
Hi,
I guess it depends not on script size, but on user priviligies. Be sure that
user has enough privilegies
to perform script actions and these privs must be granted directly, not
through roles.
Regards,
-- Roman Mirzaitov Brainbench MVP for Oracle Administration www.brainbench.com "Geert Roelof" <grploeg_at_xs4all.nl> wrote in message news:3CFE976E.8040103_at_xs4all.nl...Received on Thu Jun 06 2002 - 00:03:48 CDT
> Hello,
>
> I build a pl/sql procedure which generates pl/sql. I use a dummy script
> and some variables. Those variables are the replace and the whole
> generated pl/sql code is executed by using EXECUTE IMMEDIATE (V_SCRIPT)
>
> V_Script is defined as varchar2(32767)
>
> The following problem occurs. When I generate a script which is less
> then 2000 characters long everything works fine. But when i generate a
> script which is larger then 2000 characters it fails with the error: Not
> enough privileges. (?) I check the code and its correct, but i cannot
> get it into the database with an execute immediate.
>
> The documentation states that execute immediate can handle scripts as
> large as 32K so what is happening here?
>
> Does anyone out there have a clue?
>
> Any suggestions are welcome
>
> Thanks in advance
>
> G.R. van der Ploeg
> Senior developer
> Geove/RZG
>