Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ora-06550 pls-00103 encountered the symbol end-of-file

MGhobashiSep 23 2014 — edited Sep 29 2014

hii

the below procedure compiles fine,

CREATE OR REPLACE PROCEDURE BG.FIND_DUP (EMP_CODE NUMBER,MAIN_EMP_CODE NUMBER) IS

   CURSOR C1 IS

  

   SELECT TABLE_NAME FROM USER_TAB_COLUMNS

   WHERE COLUMN_NAME ='EMP_CODE'

   AND UPPER(TABLE_NAME)<> UPPER('PA_EMP_MERGE');

  

   V_T_NAME VARCHAR2(2000);

   RESULT VARCHAR2(1000);

  

   BEGIN

   OPEN C1 ;

  LOOP

   FETCH C1 INTO V_T_NAME;

   EXIT WHEN C1%NOTFOUND;

  

  

   RESULT := 'UPDATE '||V_T_NAME||' SET EMP_CODE='||EMP_CODE||' WHERE EMP_CODE='||MAIN_EMP_CODE||';';

  

  

    EXECUTE IMMEDIATE RESULT;

  

   END LOOP;

   CLOSE C1;

   END;

-----------------------------------------------------------------------------------------------------------------------

but when i try to execute it give me

ORA-06550: line 1, column 26:

PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:

   ; <an identifier> <a double-quoted delimited-identifier>

The symbol ";" was substituted for "end-of-file" to continue.

-- Im using oracle 10g

This post has been answered by Frank Kulash on Sep 23 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2014
Added on Sep 23 2014
6 comments
4,252 views