Multi-Line or Single Line Comment without a Leading Space /* ... */ is Interpreted as a Rerun Instead of a Comment

(Doc ID 225924.1)

Last updated on NOVEMBER 15, 2017

Applies to:

SQL*Plus - Version 10.1.0.2 and later
Information in this document applies to any platform.

Symptoms

In SQL*Plus, using a Comment without a leading space after the "/*" causes it to execute instead of recognizing it as a Comment.

For Example:

Do a select statement like:

 Here the above comment is ignored and the "/" is interpreted as "Run". As a result, the 'Select * from emp' statement is re-run.

Multi-line Example:

/*Comment 1
Comment 2
Comment 3
*/

Changes

Using multiline comments in SQL*Plus.

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