I am using SQL * Plus with the following command line:
sqlplus user/ pw@TNS @test.sql foo
The contents of test.sql
should be:
SET VERIFY ON DEFINE argone='&&1' SELECT '&argone' FROM dual; EXIT SQL.sqlcode
Results:
- When the SQL * Plus executable is located in
C:\Program Files\Oracle Client\whatever\sqlplus.exe
, then &&1
evaluates to Files\Oracle
. - When the SQL * Plus executable is located in
C:\Oracle\Client\10.2.xx\bin
, then &&1
evaluates to foo
.
Has anyone encountered this problem and had a way around it?
source share