Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: PLS-00103: Encountered the symbol "" when expecting one of the following
Paul Brownjohn <Paul-no-spam-_at_brownjohn.co.uk> wrote in
news:421edf3d_at_news.vo.lu:
> DA Morgan wrote:
>>> IIRC the keyword DECLARE is redundant in trigger bodies, as it is in >>> procedure bodies. >>> -- >>> Sybrand Bakker, Senior Oracle DBA
> > > > > I don't think I have made the problem clear... > the trigger code that results from running the script is OK. If I copy > the trigger that the script creates and execute it, the result is a > valid trigger that does what I want. So the actual details of the > trigger code are not the problem. > > The problem is that when I run the script...it creates the triggers > but they are all invalid. If I then attempt a re-compile in situ > (using Toad) I get the error. However if I copy the code from Toad > ('Create Trigger etc...') and run it in Toad or SQL+ or whatever it > creates a valid trigger that works. > > I have searched the internet and found some references to incompletely > applied patches associated with similar behavior so I brought the code > home and ran the whole sequence of operations on my system at home > (systems at work are Unix, I don't know what flavour, whilst my home > system runs on Windows). The result was still exactly the same. So I > guess the problem has to be in the script code. None of the DBAs at > work have an answer and its certainly beyond me. > > Cheers > > Paul BJ
Privs acquired via a ROLE work OK via SQL*Plus, but do not exist within PL/SQL procedures. Received on Fri Feb 25 2005 - 09:45:34 CST
![]() |
![]() |