Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: reading unix host variables within PL/SQL
rob joss wrote:
>
> I have not been able to find a way of reading unix host variables from
> either SQLPLUS or within PL/SQL.
>
> Does anyone how to do this?
>
> Thanks
[oracle]: cat /tmp/var.sql
set verify off
prompt
prompt Variable1 -> &1
prompt Variable2 -> &2
prompt
select '&1' Variable1, '&2' Variable2 from dual;
exit;
[pythia:oracle]: sqlplus -s / @/tmp/var.sql FIRST_VARIABLE
SECOND_VARIABLE
Variable1 -> FIRST_VARIABLE
Variable2 -> SECOND_VARIABLE
VARIABLE1 VARIABLE2
-------------- ---------------
FIRST_VARIABLE SECOND_VARIABLE
[oracle]:
mailto:brian.maclean_at_teldta.com Received on Mon Jun 16 1997 - 00:00:00 CDT
![]() |
![]() |