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

Last updated on OCTOBER 28, 2016

Applies to:

SQL*Plus - Version: 10.2.0.3
This problem can occur on any platform.

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

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