My Oracle Support Banner

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 FEBRUARY 22, 2019

Applies to:

SQL*Plus - Version 10.1.0.2 and later
Information in this document applies to any platform.
*** Checked for relevance on Feb-22-2019 ****

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  comments in SQL*Plus.

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!


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