Last updated on OCTOBER 27, 2016
Applies to:SQL*Plus - Version 188.8.131.52 to 184.108.40.206 [Release 11.1]
Information in this document applies to any platform.
Given two sql scripts, main_script.sql and script1.sql.
script1.sql is called within main_script.sql using the @@ notation in order to inherit the path used to call main_script.sql.
If the path provided to main_script.sql contains spaces, main_script.sql executes successfully, but script1.sql will fail to execute throwing:
An exemplification of the issue:
Considering the following two scripts:
select dname as dept_main_script from dept;
select dname as dept_script_1 from dept;
- Both scripts are saved in "/test scripts"
(note that this folder name contains a space)
- Steps to test the issue:
1. Connect as SCOTT using SQL*PLUS.
2. Execute @"/test scripts/main_script.sql" in SQL*PLUS.
3. The parent script is executed successfully but then an error is encountered when the inner script is executed:
SP2-0310: unable to open file "/test.sql"
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms