Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: HELP! SP compiles but won't run

Re: HELP! SP compiles but won't run

From: Ed prochak <ed.prochak_at_alltel.com>
Date: 23 Mar 2002 08:52:45 -0800
Message-ID: <e51b160.0203230852.3e809594@posting.google.com>


RTFM. The syntax is

BEGIN
  p(1);
END
/

The error told you it was looking for the semicolon (;)

Alternate syntax for a procedure is:

EXEC p(1);

Which gets translated to the BEGIN/END pair as required.

Ed Prochak
Magic Interface, Ltd
tomg_at_asdsoftware.com (Tom Galczynski) wrote in message news:<689741.0203222151.10280349_at_posting.google.com>...
> Thomas, thank you! I appreciate your help. Now my problem is, I can
> compile your procedure in SQL Worksheet without error. However, when
> I go to run it by entering the following line in SQL Worksheet
>
> BEGIN p(1)
>
> I get the following result:
>
> ORA-06550: line 3, column 0:
> PLS-00103: Encountered the symbol "end-of-file" when expecting one of
> the following:
>
> := . ( % ;
>
> I am using Oracle 8.0. Is "BEGIN p(1)" correct syntax? Is there
> anything else I need to do in order to be able to run this properly?
> This is the first time I've tried to use a stored procedure to return
> a value so I'm sure it's something basic I am missing.
>
> Cheers,
> Tom G.
>
Received on Sat Mar 23 2002 - 10:52:45 CST

Original text of this message

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