My Oracle Support Banner

SP2-0310: Unable to Open File "<script>.sql" when the SQL Script is under a Subdirectories In SQLPATH (Doc ID 1524210.1)

Last updated on JULY 10, 2020

Applies to:

SQL*Plus - Version to 18.5
Information in this document applies to any platform.


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 test directory, the following error is raised:

SP2-0310: unable to open file "<script>.sql"

SQLPATH sub-directories are not being searched for SQL scripts.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.