My Oracle Support Banner

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

Last updated on APRIL 26, 2021

Applies to:

Oracle SQL Developer - Version 1.1 and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A 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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.