My Oracle Support Banner

SP2-0310 SQL*Plus Does Not Ignore Quoted '@' Character (Doc ID 746513.1)

Last updated on FEBRUARY 26, 2019

Applies to:

SQL*Plus - Version 10.2.0.3 and later
Information in this document applies to any platform.
This problem can occur on any platform.
*** Checked for relevance on 26-Feb-2019 ****

Symptoms

When trying to INSERT or UPDATE a table with SQL where the first character on a new line is the '@' character (within quotes), SQL*Plus ignores this character as a value and instead tries to execute a file.

For example:

SQL> insert into dept values (67, 'Support', 'abc
  2  @def)
SP2-0310: unable to open file "def).sql"

This problem only occurs if the '@' character is the first character on a new line.  If the character is placed anywhere else, then the error does not occur.

For example

SQL> insert into dept values (67, 'Support', 'abc@
  2  def');

1 row created.

SQL> 

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
References


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