SQL Code Developed On Customer End(Or SQL Developer) Can't Be Executed On SQL Plus (Doc ID 1920670.1)

Last updated on OCTOBER 27, 2016

Applies to:

Oracle SQL Developer - Version 1.1 and later
Information in this document applies to any platform.

Symptoms

On : 1.1 version, PL/SQL Editor

When attempting to run a SQL Script that was built in SQL Developer that has a "--" comment in a Create or replace.
the following error occurs.

ERROR
-----------------------
SP2-0734: unknown command beginning "LEFT OUTER..." - rest of line ignored.

SP2-0734: unknown command beginning "ON F4101_O..." - rest of line ignored.

SP2-0042: unknown command "|| '-'" - rest of line ignored.

SP2-0734: unknown command beginning "|| SUBSTR ..." - rest of line ignored.

SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.

SP2-0042: unknown command "|| '-'" - rest of line ignored.

SP2-0734: unknown command beginning "|| SUBSTR ..." - rest of line ignored.

SP2-0734: unknown command beginning "LEFT OUTER..." - rest of line ignored.

SP2-0734: unknown command beginning "ON F41002_..." - rest of line ignored.

SP2-0734: unknown command beginning "AND F41002..." - rest of line ignored.

SP2-0734: unknown command beginning "AND F41002..." - rest of line ignored.

SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. run a script in in SQL Plus that has a create or replace with a -- comment


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms