When I have two sql-files, one of them in a sub-directory
main_test.sql
sub/sub_test.sql
and sub_test.sql
calls @../main_test.sql
(or @@../main_test.sql
) then this works fine when executing it from the sub-directory
sub> sqlplus xxx @ sub_test.sql
But when I call
sub> cd ..
> sqlplus xxx @ sub/sub_test.sql
this results in
SP2-0310: unable to open file "../main_test.sql"
since the path is evaluated from my working directory, not the directory of the sql-file I call.
Is there a way to use relative paths starting from the directory of file containing the call?