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 and later
Information in this document applies to any platform.
SP2-0310: unable to open file "xyz.sql"


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


 There are SQL scripts in a deep directory, as per example:

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.


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