Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Getting values into SQLPLUS from Unix
<amerar_at_iwc.net> ha scritto nel messaggio
news:1134662664.740210.169590_at_o13g2000cwo.googlegroups.com...
> Using the shell variables, how do I get SQLPLUS to recognize them?
SCHEMA="SCOTT"
MV="MV_1"
sqlplus /nolog <<EOF
connect / as sysdba
ALTER SESSION SET CURRENT_SCHEMA=${SCHEMA};
exec dbms_snapshot.refresh(UPPER('${SCHEMA}'.'${MV}'));
exit
EOF
-- Regards, Dimitre RadoulovReceived on Thu Dec 15 2005 - 10:14:52 CST
![]() |
![]() |