![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Can I access environment variables from sqlplus in OS-neutral fashion? I couldn't find anything in the official documentation, but I came across a post on experts-exchange that suggested I could access environment variables in an sqlplus script as follows: SET FEEDBACK OFF; @ %TEMP%/gen.sql @ %TEMP%/gen_ja.sql SET FEEDBACK ON; Turns out it works fine on Windows, but Unix requires the traditional '$...' format. @ $TEMP/gen.sql I'd like to keep my scripts OS-neutral and stay away from SED simply to substitute '$TEMP' with '%TEMP%' and such. any suggestions? I'm running 8.1.7 thanks, bill milbratz |
![]() |
| Thread Tools | |
| Display Modes | |
| |