Last updated on OCTOBER 28, 2016
Applies to:SQL*Plus - Version: 10.2.0.3
This problem can occur on any platform.
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.
SQL> insert into dept values (67, 'Support', 'abc
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.
SQL> insert into dept values (67, 'Support', 'abc@
1 row created.
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