610 pts.
 Error(7,30): PLS-00103: Encountered the symbol “OUT” when expecting one of the following
I am getting this eror when i compile my procedure with OUT Parameter ,it has got several OUT param ,but only this particular line pops up err msg Error(7,30): PLS-00103: Encountered the symbol "OUT" when expecting one of the following: := . ) , @ % default character The symbol "," was substituted for "OUT" to continue. Can someone help me on this ??

Software/Hardware used:
ASKED: December 3, 2008  5:16 AM
UPDATED: February 1, 2011  2:49 PM

Answer Wiki:
Could you please paste here (discuss section) your code ? We need to look at it in order to be able to help. Your database version would be useful as well.
Last Wiki Answer Submitted:  December 3, 2008  8:25 pm  by  carlosdl   63,535 pts.
All Answer Wiki Contributors:  carlosdl   63,535 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Want to know the solution for the same as i too face same sort of issue

 10 pts.

 

Balajidev, if you have the same problem, then the same answer applies. There is no way we can provide a solution without looking at the code.

 63,535 pts.

 

I am attempting to copy a Blob from one database to another and I get the following error/

SQL> Declare
2 tpsr Blob;
3 spsr blob;
4 Begin
5 Select ’8502′ into tpsr from ca90joetmp.spec_form_psr where spec_form_id = ’90710′;
6 Select ’8502′ into tpsr from specdev_mst.spec_form_psr where spec_form_id = ’29401′;
7 DBMS_LOB.COPY (
8 tpsr IN OUT NOCOPY BLOB,
9 spsr IN BLOB,
10 amount IN INTEGER,
11 dest_offset IN INTEGER := 1,
12 src_offset IN INTEGER := 1);
13 end;
14 /
tpsr IN OUT NOCOPY BLOB,
*
ERROR at line 8:
ORA-06550: line 8, column 15:
PLS-00103: Encountered the symbol “OUT” when expecting one of the following:
(

 15 pts.

 

Hi Bobf.

You use the IN, OUT and NOCOPY keywords when declaring a procedure, not when calling it.

In your case, the call to dbms_lob.copy should be something like this:

dbms_lob.copy(tpsr,spsr,amount,dest_offset,src_offset);

But if you are going to use the default values (1) for dest_offset and src_offset, this would suffice:

dbms_lob.copy(tpsr,spsr,amount);

If the variables being passed to the procedure are not declared or contain invalid values you will get more errors.

 63,535 pts.

 

IN THIS PROCEDURE IAM GETTING ERR MSG THAT”ENCOUNTERED THE SYMBOL “DECLARE” WHEN EXPECTING ONE OF THE FOLLOWING:” BUT IAM USED THE DECLARE STATEMENT WITH ; AND WITHOUT ; BUT IAM GETTING SAME ERR MSG

create or replace procedure t5 as
declare no1=1;
while(no1<500)
begin
print no1
no1:=no1+1
if no1=500
EXIT;
end;

 10 pts.

 

RAM13INDIAN, you code has many errors. I think you need to search the web for the basics on PL/SQL before trying to write a procedure.

Also, if you need help, please create a new question, so your problem gets the attention it deserves.

 63,535 pts.