Subdirectories In SQLPATH Are Not Being Searched For SQL Scripts. Get Error: SP2-0310: Unable to Open File "xyz.sql" (Doc ID 1524210.1)

Last updated on JUNE 20, 2017

Applies to:

SQL*Plus - Version 11.2.0.3 and later
Information in this document applies to any platform.
SP2-0310: unable to open file "xyz.sql"

Symptoms

The SQLPATH environment variable is set to parent directories, as per example:

          SQLPATH=/opt/oracle:/opt/ora_work

 There are SQL scripts in a deep directory, as per example:
          /opt/oracle/temp/test/maintenance.

When try to run one of the scripts in the maintenance directory, the following error is raised:

SP2-0310: unable to open file "xyz.sql"

 
SQLPATH subdirectories are not being searched for SQL scripts.

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