Path: news.easynews.com!easynews!peer1-sjc1.usenetserver.com!usenetserver.com!iad-peer.news.verio.net!news.verio.net!newsfeed.vmunix.org!news2.euro.net!transit.news.xs4all.nl!not-for-mail
From: Geert Roelof <grploeg@xs4all.nl>
Newsgroups: comp.databases.oracle.misc,comp.databases.oracle.server,comp.databases.oracle.tools
Subject: Execute immediate problem
Date: Thu, 06 Jun 2002 00:57:50 +0200
Organization: XS4ALL Internet BV
Lines: 27
Message-ID: <3CFE976E.8040103@xs4all.nl>
NNTP-Posting-Host: a80-126-12-196.adsl.xs4all.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news1.xs4all.nl 1023317589 14304 80.126.12.196 (5 Jun 2002 22:53:09 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 5 Jun 2002 22:53:09 GMT
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-GB; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-gb
Xref: easynews comp.databases.oracle.misc:82554 comp.databases.oracle.server:149672 comp.databases.oracle.tools:51664
X-Received-Date: Wed, 05 Jun 2002 15:50:36 MST (news.easynews.com)

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

