Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Oracle 11g SQL*plus script generates ORA-06650 "end-of-file" #31

Open
GoogleCodeExporter opened this issue Oct 7, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

I have the following SQL*Plus script:

DECLARE
  -- --------------------------------------------------------------------------
  -- Proc to do inserts into AOR Table
  -- --------------------------------------------------------------------------
  PROCEDURE sync_aor (
            i_aor_id      casm_owner.aor.aor_id%TYPE
          , i_aor_name    casm_owner.aor.aor_name%TYPE
  ) IS
  BEGIN
      MERGE INTO casm_owner.aor        aor
            USING (SELECT i_aor_id    AS aor_id
                        , i_aor_name  AS aor_name
                     FROM dual) sq
               ON (sq.aor_id = aor.aor_id)
             WHEN MATCHED THEN
                  -- basically a dummy statement here.  Don't need to do
anything
                  -- if we have a match.  Just leave this as it is.
                  UPDATE SET aor.aor_name = sq.aor_name
             WHEN NOT MATCHED THEN
                  -- Record doesn't exists so add it to the table
                  INSERT (aor_id, aor_name, created_dt, created_by)
                    VALUES(sq.air_id, sq.aor_name, SYSTIMESTAMP, USER);
  END;
BEGIN
  --AOR's from the casm development client
  sync_aor('E85E6CEB1AF28590092FBADAAC4C8FB0','Work Flow Test');
END;
/


Somehow, the script fails when I try to run it using this utility.  It
thinks the semi-colon(;) at the end of the INSERT is not there.  Therefore
it generates the error:  

Caused by: java.sql.SQLException: ORA-06550: line 1, column 568:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the
following:

Original issue reported on code.google.com by globobla...@gmail.com on 28 Jan 2010 at 7:40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant