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!

Encountered the symbol "end-of-file"

4321362Sep 4 2020 — edited Sep 4 2020

Hello,  I am new to PL/SQL.   What is wrong with my code ? I keep getting this error in a script and don't know why.  I tried with and without semi-colon, nothing works.   Note: This code is not part of a stored procedure.  Running this code in DBeaver

ERROR [HY000] [Oracle][ODBC][Ora]ORA-06550: line 1, column 27:

PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following::= ; not null default character

Command Failed.

DECLARE

     v_test varchar2(15);

BEGIN

     v_test := 'sdfsdfsdf';

     DBMS_OUTPUT.PUT_LINE(v_test);

END;

This post has been answered by Paulzip on Sep 4 2020
Jump to Answer
Comments
Post Details
Added on Sep 4 2020
5 comments
6,006 views